Mercurial > p > roundup > code
changeset 6094:dd6a54d8a22a
jinja2: updated style for "Make a copy" and File selector buttons
| author | Christof Meerwald <cmeerw@cmeerw.org> |
|---|---|
| date | Thu, 13 Feb 2020 19:51:45 +0000 |
| parents | ee3497c573ab |
| children | 3ada6a3f48e1 |
| files | share/roundup/templates/jinja2/html/issue.item.edit.html share/roundup/templates/jinja2/html/layout/edit.tmpl |
| diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/share/roundup/templates/jinja2/html/issue.item.edit.html Thu Feb 13 12:08:10 2020 +0000 +++ b/share/roundup/templates/jinja2/html/issue.item.edit.html Thu Feb 13 19:51:45 2020 +0000 @@ -25,7 +25,7 @@ <div class="form-actions"> {{ context.submit(html_kwargs={"class": "btn btn-primary"})|u|safe }} {% if context.id %} - <a href='{{ context.copy_url() }}'>{% trans %}Make a copy{% endtrans %}</a> + <a class="btn btn-outline-primary" href="{{ context.copy_url() }}">{% trans %}Make a copy{% endtrans %}</a> {% endif %} </div> <input type="hidden" name="@template" value="item">
--- a/share/roundup/templates/jinja2/html/layout/edit.tmpl Thu Feb 13 12:08:10 2020 +0000 +++ b/share/roundup/templates/jinja2/html/layout/edit.tmpl Thu Feb 13 19:51:45 2020 +0000 @@ -24,7 +24,7 @@ <label class="col-form-label" for="{{ id }}">{{ i18n.gettext(text)|u|safe }}</label> </dt> <dd class="col col-8 col-md-9 col-lg-8"> - <input class="form-control" name="{{ name }}" id="{{ id }}" type="file" {%- if required %}required="required"{% endif %} /> + <input class="form-control btn btn-sm btn-outline-secondary" name="{{ name }}" id="{{ id }}" type="file" {%- if required %}required="required"{% endif %} /> </dd> </div> {% endmacro -%}
