Mercurial > p > roundup > code
view share/roundup/templates/jinja2/html/file.item.html @ 8566:e4191aa7b402 default tip
doc: issue2551415 correct doc for change input->input_payload
in 2.5 the rest interface changed a variable name from input to
input_payload. An earlier commit changed the rest docs. This commit
adds an item for it to the upgrading 2.4.0->2.5.0 section. Also cross
reference added to the rest docs with the updated examples.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Thu, 09 Apr 2026 00:19:06 -0400 |
| parents | ee3497c573ab |
| children |
line wrap: on
line source
{% extends 'layout/page.html' %} {% import 'layout/view.tmpl' as view with context -%} {% import 'layout/edit.tmpl' as edit with context -%} {% block head_title %} {% trans %}File display{% endtrans %} {% endblock %} {% block page_header %} {% trans %}File display{% endtrans %} {% endblock %} {% block content %} {% include 'layout/permission.html' %} {% if context.is_view_ok() %} <form method="POST" enctype="multipart/form-data" action='{{ context.designator() }}'> <dl class="row row-cols-1 row-cols-lg-2 no-gutters"> {% if context.is_edit_ok() %} {{ edit.field_small('Name', 'name', 'name', required=True) }} {{ edit.field_small('Content Type', 'type', 'type', required=True) }} {% else %} {{ view.field_small('Name', 'name') }} {{ view.field_small('Content Type', 'type') }} {% endif %} </dl> <input type="hidden" name="@template" value="item"> <input type="hidden" name="@required" value="name,type"> {% if '@multilink' in request.form %} <input type="hidden" name="@multilink" value='{{ request.form["@multilink"].value()|u }}'> {% endif %} {% if context.is_edit_ok() %} <div class='form-actions'> {{ context.submit(html_kwargs={'class': 'btn btn-primary'})|u|safe }} </div> {% endif %} </form> {% endif %} {% if context.id and context.is_view_ok() %} <div> <a class="btn btn-success" href="file{{ context.id }}/{{ context.name.plain()|u }}">{% trans %}Download{% endtrans %}</a> </div> {% endif %} <div class='vspace-five'></div> {{ context.history()|u|safe }} {% endblock %}
