source: telemeta/templates/telemeta/mediaitem_copy.html @ 5addd73

cremcrem2crem3devdev2diademsdj1.6feature/breadcrumbsfeature/ts-0.5feature/ts-0.5.4feature/writecachegenericlamlam2mapsv3mergenlivemultirelease/1.4.4sabiodsearchserverstoragetelecaster
Last change on this file since 5addd73 was 5addd73, checked in by yomguy <yomguy@…>, 3 years ago

fix item copy with format

  • Property mode set to 100644
File size: 2.1 KB
Line 
1{% extends "telemeta/mediaitem_detail.html" %}
2{% load telemeta_utils %}
3{% load i18n %}
4
5{% block head_title %}{% trans "Item" %}- {{ block.super }}{% endblock %}
6
7{% block extra_javascript %}
8{% endblock %}
9
10{% block title %}
11 <img src="{% url telemeta-images "item.png" %}" alt="item" style="vertical-align:middle" /> Item : NEW
12{% endblock %}
13
14{% block title_buttons %}
15    {% if user.is_authenticated and perms.telemeta.add_mediaitem %}
16    <a href="{% url telemeta-item-detail item.public_id %}" class="component_icon button icon_cancel">{% trans "Cancel" %}</a>
17    {% endif %}
18{% endblock %}
19
20{% block content %}
21  {% block infos %}
22    <div class="infos">
23     <form enctype="multipart/form-data" id="_mediaItemCopyForm" method="post" action="">{% csrf_token %}
24     <ul>{% for error in form.non_field_errors %}<li class="error">{{ error }}</li>{% endfor %}</ul>
25      <table>
26      {% for form in forms %}
27       {% for field in form %}
28            <tr>
29            {% if field.html_name in hidden_fields %}
30                <td>{{ field.label_tag.as_hidden }}{{ field.as_hidden }}</td>
31            {% else %}
32                <tr><td class="error">{{ field.errors }}</td></tr>
33                <td>{{ field.label_tag }}:</td>
34                    {% if field.html_name == "collection" %}
35                    <td>&nbsp;{% trans "Title" %} : {{ item.collection.title }}<br />
36                        &nbsp;{% trans "Code" %} : {{ item.collection.code }}<br />
37                        {{ field }}</td>
38                    {% else %}
39                    <td>{{ field }}</td>
40                    {% endif %}
41            {% endif %}
42            </tr>
43       {% endfor %}
44       {% endfor %}
45       </table>
46       <div align="center" style="margin-top:3ex;">
47           <a href="{% url telemeta-item-detail item.public_id %}" class="component_icon button icon_cancel">{% trans "Cancel" %}</a>
48         <a href="#" class="component_icon button icon_save"
49            onclick="document.getElementById('_mediaItemCopyForm').submit(); return false;">{% trans "Save" %}</a>
50       </div>
51     </form>
52    </div>
53  {% endblock infos %}
54{% endblock %}
55
56{% block delete %}
57{% endblock %}
58
Note: See TracBrowser for help on using the repository browser.