Ignore:
Timestamp:
23 Jun 2011, 07:06:33 (14 years ago)
Author:
Henrik Bettermann
Message:

Remove actionsView css attribute and rework page templates with tables.

Location:
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/applicantscontaineraddpage.pt

    r6345 r6460  
    4141  </table>
    4242
    43   <div id="actionsView">
    44     <span class="actionButtons" tal:condition="view/availableActions">
    45       <input tal:repeat="action view/actions"
     43  <span class="actionButtons" tal:condition="view/availableActions">
     44    <input tal:repeat="action view/actions"
    4645             tal:replace="structure action/render"
    4746             />
    48     </span>
    49   </div>
     47  </span>
    5048</form>
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/applicantscontainermanagepage.pt

    r6383 r6460  
    5454        </tbody>
    5555      </table>
    56       <div id="actionsView">
    57         <span class="actionButtons" tal:condition="view/availableActions">
    58           <span tal:repeat="action view/actions" tal:omit-tag="">
    59             <input tal:condition="python:action.label in view.taboneactions"
    60                    tal:replace="structure action/render"/>
    61           </span>
    62         </span>
    63       </div>
     56    <span class="actionButtons" tal:condition="view/availableActions">
     57      <span tal:repeat="action view/actions" tal:omit-tag="">
     58        <input tal:condition="python:action.label in view.taboneactions"
     59               tal:replace="structure action/render"/>
     60      </span>
     61    </span>
    6462    </div>
    6563    <div id="tab-2"> <h3>Applicants</h3>
     
    9088        </tbody>
    9189      </table><br /><br />
    92       <div id="actionsView">
    93         <span class="actionButtons" tal:condition="view/availableActions">
    94           <span tal:repeat="action view/actions" tal:omit-tag="">
    95             <input tal:condition="python:action.label in view.tabtwoactions"
    96                    tal:replace="structure action/render"/>
    97           </span>
     90      <span class="actionButtons" tal:condition="view/availableActions">
     91        <span tal:repeat="action view/actions" tal:omit-tag="">
     92          <input tal:condition="python:action.label in view.tabtwoactions"
     93                 tal:replace="structure action/render"/>
    9894        </span>
    99       </div>
     95      </span>
    10096    </div>
    10197    <div id="tab-3"> <br />
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/applicantsrootmanagepage.pt

    r6184 r6460  
    1010  </ul>
    1111</div>
    12 <form action="." tal:attributes="action request/URL" method="POST"
    13       class="edit-form" enctype="multipart/form-data">
     12<form action="." tal:attributes="action request/URL" method="POST"  class="edit-form" enctype="multipart/form-data">
    1413  <div id="tabs">
    1514    <ul>
     
    4241        <tbody>
    4342          <tr tal:repeat="entry context/values"         class="gradeB"> <td>
    44               <input type="checkbox" name="val_id"
    45                      tal:attributes="value entry/__name__" /> </td>
     43              <input type="checkbox" name="val_id"   tal:attributes="value entry/__name__" /> </td>
    4644            <td tal:content="entry/year">Year </td> <td>
    47               <a href=""         tal:attributes="href python:view.url(entry)"
    48                  tal:content="entry/__name__">Code</a> </td>
     45              <a href=""         tal:attributes="href python:view.url(entry)"   tal:content="entry/__name__">Code</a> </td>
    4946            <td tal:content="entry/title">Title </td>
    5047          </tr>
    5148        </tbody>
    5249      </table>
    53       <div id="actionsView">
    54         <span class="actionButtons" tal:condition="view/availableActions">
    55           <span tal:repeat="action view/actions" tal:omit-tag="">
    56             <input tal:condition="python:action.label in view.taboneactions"
    57                    tal:replace="structure action/render"/>
    58           </span>
     50      <span class="actionButtons" tal:condition="view/availableActions">
     51        <span tal:repeat="action view/actions" tal:omit-tag="">
     52          <input tal:condition="python:action.label in view.taboneactions"   tal:replace="structure action/render"/>
    5953        </span>
    60       </div>
     54      </span>
    6155    </div>
    6256    <div id="tab-2"> <br />
    63         <table class="display dataTableManage">
    64             <thead>
    65                 <tr>
    66                     <th>&nbsp;
    67                     </th>
    68                     <th>User Id
    69                     </th>
    70                     <th>Name
    71                     </th>
    72                     <th>Local Role
    73                     </th>
    74                 </tr>
    75             </thead>
    76             <tbody>
    77                 <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeB">
    78                     <td>
    79                         <input type="checkbox" name="role_id" tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" />
    80                     </td>
    81                     <td tal:content="entry/user_name"> USERNAME
    82                     </td>
    83                     <td tal:content="entry/user_title"> USERTITLE
    84                     </td>
    85                     <td tal:content="entry/local_role_title"> LOCAL ROLE
    86                     </td>
    87                 </tr>
    88             </tbody>
    89         </table> <br /><br />
    90         <div class="actionButtons" tal:condition="view/availableActions">
    91             <span tal:repeat="action view/actions" tal:omit-tag="">
    92                 <input tal:condition="python:action.label in view.tabtwoactions1" tal:replace="structure action/render"/>
    93             </span>
    94         </div> <br /><br />
    95         <table class="zebra">
    96             <tr>
    97                 <td>
    98                     <select id="user" name="user">
    99                         <option tal:repeat="user view/getUsers" tal:attributes="value user/name">
    100                         <span tal:replace="user/val/description">USERTITLE
    101                         </span>
    102                         </option>
    103                     </select>
    104                 </td>
    105                 <td>
    106                     <select id="local_role" name="local_role">
    107                         <option tal:repeat="localrole view/getLocalRoles" tal:attributes="value localrole/name">
    108                         <span tal:replace="localrole/title">LOCALROLETITLE
    109                         </span>
    110                         </option>
    111                     </select>
    112                 </td>
    113                 <td>
    114                     <div class="actionButtons" tal:condition="view/availableActions">
    115                         <span tal:repeat="action view/actions" tal:omit-tag="">
    116                             <input tal:condition="python:action.label in view.tabtwoactions2" tal:replace="structure action/render"/>
    117                         </span>
    118                     </div>
    119                 </td>
    120             </tr>
    121         </table>
     57      <table class="display dataTableManage">
     58        <thead>
     59          <tr>
     60            <th>&nbsp;
     61            </th>
     62            <th>User Id
     63            </th>
     64            <th>Name
     65            </th>
     66            <th>Local Role
     67            </th>
     68          </tr>
     69        </thead>
     70        <tbody>
     71          <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeB">  <td>
     72              <input type="checkbox" name="role_id" tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" />  </td>
     73            <td tal:content="entry/user_name"> USERNAME   </td>
     74            <td tal:content="entry/user_title"> USERTITLE   </td>
     75            <td tal:content="entry/local_role_title"> LOCAL ROLE   </td>
     76          </tr>
     77        </tbody>
     78      </table>
     79      <div class="actionButtons" tal:condition="view/availableActions">
     80        <span tal:repeat="action view/actions" tal:omit-tag="">
     81          <input tal:condition="python:action.label in view.tabtwoactions1" tal:replace="structure action/render"/>
     82        </span>
     83      </div> <br /><br />
     84      <table class="zebra">
     85        <tr> <td>
     86            <select id="user" name="user">
     87              <option tal:repeat="user view/getUsers" tal:attributes="value user/name">
     88              <span tal:replace="user/val/description">USERTITLE
     89              </span>
     90              </option>
     91            </select> </td> <td>
     92            <select id="local_role" name="local_role">
     93              <option tal:repeat="localrole view/getLocalRoles" tal:attributes="value localrole/name">
     94              <span tal:replace="localrole/title">LOCALROLETITLE
     95              </span>
     96              </option>
     97            </select> </td> <td>
     98            <div tal:condition="view/availableActions">
     99              <span tal:repeat="action view/actions" tal:omit-tag="">
     100                <input tal:condition="python:action.label in view.tabtwoactions2" tal:replace="structure action/render"/>
     101              </span>
     102            </div> </td>
     103        </tr>
     104      </table>
    122105    </div>
    123106  </div>
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/form_edit.pt

    r6355 r6460  
    6767  </p>
    6868
    69   <div id="actionsView">
    70     <span class="actionButtons" tal:condition="view/availableActions">
    71       <input tal:repeat="action view/actions"
    72              tal:replace="structure action/render"
    73              />
    74     </span>
    75   </div>
     69  <span class="actionButtons" tal:condition="view/availableActions">
     70    <input tal:repeat="action view/actions"
     71           tal:replace="structure action/render"
     72           />
     73  </span>
    7674</form>
Note: See TracChangeset for help on using the changeset viewer.