source: telemeta/templates/telemeta_default/mediaitem_copy.html @ 75617ad

cremcrem2devdev2diademsdj1.6feature/breadcrumbsfeature/ts-0.5feature/ts-0.5.4feature/writecacheformagenericinstru_searchlamlam2mapsv3mergenlivemultiproductionrelease/1.4.4sabiodsecurityserversocialstoragetelecastertestvideo
Last change on this file since 75617ad was 75617ad, checked in by yomguy <yomguy@…>, 3 years ago

100 of last revisions in RSS, fix save buttons for item, remove TELEMETA_OAI_HOST_NAME global parameter, add TELEMETA_DESCRIPTION and parsing it to each page title

  • Property mode set to 100644
File size: 1.9 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 field in form %}
27        {% if not field.html_name == "copied_from_item" %}
28        <tr>
29            <tr><td class="error">{{ field.errors }}</td></tr>
30            <td>{{ field.label_tag }}:</td>
31             {% if field.html_name == "collection" %}
32              <td>&nbsp;{% trans "Title" %} : {{ item.collection.title }}<br />
33                  &nbsp;{% trans "Code" %} : {{ item.collection.code }}<br />
34                  {{ field }}</td>   
35             {% else %}
36              <td>{{ field }}</td>
37             {% endif %}
38        </tr>
39        {% endif %}
40       {% endfor %}
41       </table>
42       <div align="center" style="margin-top:3ex;">
43           <a href="{% url telemeta-item-detail item.public_id %}" class="component_icon button icon_cancel">{% trans "Cancel" %}</a>
44         <a href="#" class="component_icon button icon_save"
45            onclick="document.getElementById('_mediaItemCopyForm').submit(); return false;">{% trans "Save" %}</a>
46       </div>
47     </form>
48    </div>
49  {% endblock infos %} 
50{% endblock %}
51
52{% block delete %}
53{% endblock %}
54
Note: See TracBrowser for help on using the repository browser.