Refactor attachment form generation a bit
[cds-indico.git] / indico / modules / attachments / templates / add_link.html
blobc0d2d28e376a929f39467458efc8312d45b4f958
1 {% from 'forms/_form.html' import form_header, form_footer, form_rows, form_row %}
3 {%- block content %}
4 {{ form_header(form)}}
5 {{ form_row(form.link_url, widget_attrs={'placeholder': 'Example: http://www.example.com/YourPDFFile.pdf'}) }}
6 {{ form_rows(form, skip=('link_url', 'folder', 'protected', 'acl')) }}
7 {{ form_row(form.folder) }}
8 {{ form_row(form.protected) }}
9 {{ form_row(form.acl) }}
10 {% call form_footer(attach_form) %}
11 <input class="i-button big highlight" type="submit" value="{% trans %}Submit{% endtrans %}">
12 <button class="i-button big" data-button-back>{% trans %}Cancel{% endtrans %}</button>
13 {% endcall %}
14 <script>
15 $('#folder').nullableselector();
16 aclIfProtected($('#protected'), $('#acl'));
17 </script>
18 {%- endblock %}