Quelques préparatifs avant l'implémentation de l'envoi du rappel.
[Plinn.git] / skins / content / topic_edit_template.pt
1 <html xmlns:tal="http://xml.zope.org/namespaces/tal" xmlns:metal="http://xml.zope.org/namespaces/metal" metal:use-macro="container/main_template/macros/master">
2 <head>
3 <meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
4 <title>Topic edit template</title>
5 </head>
6
7 <body i18n:domain="plinn">
8 <div metal:fill-slot="header">
9 <div metal:use-macro="here/widgets/macros/generic_header"/>
10 </div>
11 <div metal:fill-slot="main" tal:omit-tag="">
12 <form tal:define="criteria here/listCriteria" method="post"
13 tal:condition="criteria"
14 tal:attributes="action string:${here/absolute_url}/topic_edit_form" >
15 <div tal:condition="options/showAcCriteria">
16 <span i18n:translate="" tal:omit-tag="">Reuse criteria from parent:</span>
17 <label><input type="radio" name="acquireCriteria:boolean" tal:attributes="checked here/acquireCriteria" value="True"/><span i18n:translate="" tal:omit-tag="">yes</span></label>
18 <label><input type="radio" name="acquireCriteria:boolean" tal:attributes="checked not:here/acquireCriteria" value="False"/><span i18n:translate="" tal:omit-tag="">no</span></label>
19 </div>
20 <span tal:repeat="criterion criteria" tal:omit-tag="">
21 <span tal:define="editform string:criterion/${criterion/getEditForm}" tal:replace="structure python:path(editform)">
22 criterion edit form
23 </span>
24 </span>
25 <br />
26 <input type="submit" name="editCriteria" value="Save" i18n:attributes="value" />
27 <input type="submit" name="deleteCriteria" value="Remove selected" i18n:attributes="value" />
28 </form>
29 <form action="." method="post" tal:attributes="action string:${here/absolute_url}/topic_edit_form">
30 <h2 i18n:translate="">New criterion:</h2>
31 <table class="TwoColumnForm">
32 <tr>
33 <th i18n:translate="">Name:</th>
34 <td>
35 <select name="field" tal:define="fields here/listAvailableFields">
36 <option value="" tal:attributes="value field" tal:content="string:catalog_index_$field" tal:repeat="field fields" i18n:translate="">Field</option>
37 </select>
38 </td>
39 </tr>
40 <tr>
41 <th i18n:translate="">Type:</th>
42 <td>
43 <select name="criterion_type" tal:define="types here/listCriteriaTypes">
44 <option value="" tal:attributes="value type/name" tal:content="type/name" tal:repeat="type types" i18n:translate="">Type</option>
45 </select>
46 </td>
47 </tr>
48 <tr>
49 <td><br/></td>
50 <td>
51 <input type="submit" name="addCriterion" value="Add" i18n:attributes="value" />
52 </td>
53 </tr>
54 </table>
55 </form>
56 </div>
57 </body>
58
59 </html>