"Fossies" - the Fresh Open Source Software Archive

Member "roundup-2.0.0/share/roundup/templates/jinja2/html/file.item.html" (29 Feb 2020, 1639 Bytes) of package /linux/www/roundup-2.0.0.tar.gz:


The requested HTML page contains a <FORM> tag that is unusable on "Fossies" in "automatic" (rendered) mode so that page is shown as HTML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 {% extends 'layout/page.html' %}
    2 {% import 'layout/view.tmpl' as view with context -%}
    3 {% import 'layout/edit.tmpl' as edit with context -%}
    4 
    5 {% block head_title %}
    6   {% trans %}File display{% endtrans %}
    7 {% endblock %}
    8 
    9 {% block page_header %}
   10   {% trans %}File display{% endtrans %}
   11 {% endblock %}
   12 
   13 {% block content %}
   14 
   15   {% include 'layout/permission.html' %}
   16 
   17   {% if context.is_view_ok() %}
   18     <form method="POST"
   19       enctype="multipart/form-data" action='{{ context.designator() }}'>
   20 
   21       <dl class="row row-cols-1 row-cols-lg-2 no-gutters">
   22         {% if context.is_edit_ok() %}
   23         {{ edit.field_small('Name', 'name', 'name', required=True) }}
   24         {{ edit.field_small('Content Type', 'type', 'type', required=True) }}
   25         {% else %}
   26         {{ view.field_small('Name', 'name') }}
   27         {{ view.field_small('Content Type', 'type') }}
   28         {% endif %}
   29       </dl>
   30 
   31       <input type="hidden" name="@template" value="item">
   32       <input type="hidden" name="@required" value="name,type">
   33       {% if '@multilink' in request.form %}
   34         <input type="hidden" name="@multilink"
   35           value='{{ request.form["@multilink"].value()|u }}'>
   36       {% endif %}
   37       {% if context.is_edit_ok() %}
   38       <div class='form-actions'>
   39         {{ context.submit(html_kwargs={'class': 'btn btn-primary'})|u|safe }}
   40       </div>
   41       {% endif %}
   42     </form>
   43   {% endif %}
   44 
   45   {% if context.id and context.is_view_ok() %}
   46     <div>
   47       <a class="btn btn-success" href="file{{ context.id }}/{{ context.name.plain()|u }}">{% trans %}Download{% endtrans %}</a>
   48     </div>
   49   {% endif %}
   50 
   51   <div class='vspace-five'></div>
   52   {{ context.history()|u|safe }}
   53 
   54 {% endblock %}