Ignore:
Timestamp:
12 Apr 2011, 11:42:30 (13 years ago)
Author:
Henrik Bettermann
Message:

Use simple table layout with remove buttons for faculty container. Open a warning message before removing faculties.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/facultycontainerpage.pt

    r5917 r5929  
    1   <h2>Faculties</h2>
     1<h2>Faculties</h2>
    22
    3   <div tal:condition="python: not len(context.keys())">
    4     There are no faculties registered yet.
    5   </div>
     3<div tal:condition="python: not len(context.keys())">
     4There are no faculties registered yet.
     5</div>
    66
    7   <div name="thefacultytable" tal:condition="python: len(context.keys())">
    8     <div tal:replace="structure view/table/renderHTML" />
    9   </div>
     7<table class="zebra">
     8  <thead>
     9    <tr>
     10      <th>Code</th>
     11      <th>Title</th>
     12      <th>&nbsp;</th>
     13    </tr>
     14  </thead>
     15  <tbody>
     16    <tr tal:repeat="value context/values"
     17        tal:attributes="class python: repeat['value'].odd() and 'odd' or 'even'">
     18      <td> <a tal:attributes="href value/__name__"> <span tal:content="value/code">Name</span></a></td>
     19      <td tal:content="value/title">Title</td>
     20      <td class="text-right">
     21      <form method="post">
     22         <input type="hidden" name="code"
     23                 tal:attributes="value value/__name__"/>
     24         <input type="submit" name="delete" value="remove"
     25                onclick="return confirmPost('All departments and courses of this faculty will be removed too. Are you sure?')">
     26      </form>
     27       
     28      </td>
     29    </tr>
     30  </tbody>
     31</table>
Note: See TracChangeset for help on using the changeset viewer.