Mercurial > libervia-templates
view sat_templates/default/merge-request/discover.html @ 153:b84d20af0ed3
macros (field, form, textbox): general improvments:
- use a generic "field" macro for most fields
- added "required" class on input labels if suitable
- extra kw args are used as input field attributes. Same thing for forms
- better handling of id if label is missing
- added blog_text macro in textbox for basic text blog input
- textbox is more customisable (class and textarea class can be specified)
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 21 Jun 2018 01:09:00 +0200 |
parents | 33c7ce833d3f |
children | 954759f0e8fa |
line wrap: on
line source
{% extends 'base/base.html' %} {% import 'components/block.html' as block with context %} {% import 'components/images.html' as images with context %} {% import 'components/avatar.html' as avatar with context %} {% import 'input/form.html' as form with context %} {% import 'input/field.html' as field with context %} {% block body %} {{ icon_defs('merge') }} <p class="instructions--head"> {% trans %} Please select a merge-requests handler {% endtrans %} </p> {% if mr_handlers is defined %} <div class="disco_tickets"> {{block.disco_icon_grid(mr_handlers, 'merge')}} </div> {% endif %} {% call form.form(class="form_single") %} {{ field.text("jid", _("handler jid"), required=true)}} {{ field.submit(_("Access")) }} {% endcall %} {% endblock body %}