source: telemeta/templates/dictionary_edit.html @ 7b2ff59

cremcrem2devdev2diademsdj1.6feature/breadcrumbsfeature/ts-0.5feature/ts-0.5.4feature/writecacheformagenericinstru_searchlamlam2mapsv3mergenlivemultiproductionrelease/1.4.4sabiodsecurityserversocialstoragetelecastertestvideo
Last change on this file since 7b2ff59 was 7b2ff59, checked in by olivier <>, 7 years ago

use named urls, add paging to collection, and others

  • Property mode set to 100644
File size: 1.2 KB
Line 
1{% extends "admin.html" %}
2
3{% block tabcontents %}
4    <h4>Manage {{ dictionary_name_plural|capfirst }}</h4>
5
6
7
8 <form class="addnew" id="addenum" method="post"
9        action="{% url telemeta-dictionary-add dictionary_id %}">
10  <fieldset>
11   <legend>Add {{ dictionary_name|capfirst }}</legend>
12   <div class="field">
13    <label>Value: <input type="text" name="value"></label>
14
15   </div>
16   <div class="buttons">
17    <input type="submit" name="add" value="Add">
18   </div>
19  </fieldset>
20 </form>
21 {% if dictionary_values %}
22 <form method="POST" action="{% url telemeta-dictionary-update dictionary_id %}">
23  <table class="listing">
24   <thead>
25    <tr><th class="sel">&nbsp;</th><th>Value</th>
26
27    </tr>
28   </thead><tbody>
29    {% for record in dictionary_values %}
30    <tr>
31     <td><input type="checkbox" name="sel" value="{{record.id}}" /></td>
32     <td><a href="{% url telemeta-dictionary-record-edit dictionary_id,record.id %}">
33        {{record.value}}</a></td>
34    </tr>
35    {% endfor %}
36    </tbody>
37  </table>
38  <div class="buttons">
39   <input type="submit" name="remove" value="Remove selected items" />
40  </div>
41 </form>
42 {% else %}
43    <p class="help">This dictionary is empty.</p>
44 {% endif %}
45
46  <br style="clear: right"/>
47
48{% endblock %}
Note: See TracBrowser for help on using the repository browser.