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">
3 <meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
4 <title>Topic edit template</title>
7 <body i18n:domain="plinn">
8 <div metal:fill-slot="header">
9 <div metal:use-macro="here/widgets/macros/generic_header"/>
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>
20 <span tal:repeat="criterion criteria" tal:omit-tag="">
21 <span tal:define="editform string:criterion/${criterion/getEditForm}" tal:replace="structure python:path(editform)">
26 <input type="submit" name="editCriteria" value="Save" i18n:attributes="value" />
27 <input type="submit" name="deleteCriteria" value="Remove selected" i18n:attributes="value" />
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">
33 <th i18n:translate="">Name:</th>
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>
41 <th i18n:translate="">Type:</th>
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>
51 <input type="submit" name="addCriterion" value="Add" i18n:attributes="value" />