web/views/edit_multiple.pt
changeset 0 b97547f5f1fa
equal deleted inserted replaced
-1:000000000000 0:b97547f5f1fa
       
     1 <!-- rows are precomputed first to consume error messages if necessary -->
       
     2 <form method="post" id="entityForm" onsubmit="return validateForm('entityForm', null);"
       
     3       action="%(action)s"
       
     4       tal:define="rows python:[self.edit_form(e) for e in rset.entities()]"
       
     5       >
       
     6   <div tal:replace="structure self/error_message"/>
       
     7   <div id="progress" tal:content="progress">validating changes...</div>
       
     8   <fieldset>
       
     9   <input type="hidden" name="__errorurl" value="#"
       
    10          tal:attributes="value req/url;" />
       
    11   <input type="hidden" name="__form_id" value="#"
       
    12 	 tal:attributes="value python:self.id"/>
       
    13   <input type="hidden" name="__redirectvid" value="primary"
       
    14 	 tal:attributes="value python:req.form.get('__redirectvid', 'list');"/>
       
    15   <input type="hidden" name="__redirectrql" value="#"
       
    16 	 tal:attributes="value python:req.form.get('__redirectrql', rset.printable_rql());"/>
       
    17   <table class="listing">
       
    18     <tr class="header">
       
    19       <th align="left"><input type="checkbox" onclick="setCheckboxesState('eid', this.checked)" value="" title="toggle check boxes" /></th>
       
    20       <tal:th tal:iter="rdef python:sampleentity.relations_by_category('primary', 'add')">
       
    21 	<th tal:condition="python: rdef[0].type != 'eid'"
       
    22             tal:content="python: rdef[0].display_name(req, rdef[-1])"/>
       
    23       </tal:th>
       
    24     </tr>
       
    25     <tr tal:iter="row rows" tal:attributes="class python: repeat['row'].getOdd() and 'even' or 'odd'" tal:content="structure row"/>
       
    26   </table>
       
    27   <table width="100%%">
       
    28     <tr>
       
    29       <td align="left">
       
    30 	<input class="validateButton" type="submit"  value="#"
       
    31 	       tal:attributes="value okbuttonmsg; title okbuttontitle;"/>
       
    32 	<input class="validateButton" type="reset" name="__action_cancel" value="#"
       
    33 	       tal:attributes="value  cancelbuttonmsg; title cancelbuttontitle;"/>
       
    34       </td>
       
    35     </tr>
       
    36   </table>
       
    37   </fieldset>
       
    38 </form>