Ignore:
Timestamp:
25 Aug 2011, 12:01:37 (13 years ago)
Author:
Henrik Bettermann
Message:

Add students_catalog and search facilities.

Location:
main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/studentscontainerpage.pt

    r6622 r6626  
    11<h2 tal:content="view/label">Title</h2>
     2<form method="POST">
    23
    3 <form method="POST">
    4 <table class="zebra" tal:condition="layout/isAuthenticated">
    5   <tbody>
    6     <tal:block repeat="widget view/widgets">
    7       <tr>
    8         <td class="fieldname">
    9           <tal:block replace="python:widget.label"/>:
    10         </td>
    11         <td class="field">
    12           <tal:block tal:replace="structure widget" />
    13         </td>
    14       </tr>
    15     </tal:block>
    16       <tr>
    17         <td>
    18             <div class="actionButtons" tal:condition="view/availableActions">
    19                 <span tal:repeat="action view/actions" tal:omit-tag="">
    20                     <input tal:replace="structure action/render"/>
    21                 </span>
    22             </div>
    23         </td>
    24       </tr>
    25   </tbody>
    26 </table>
     4<br />
     5
     6  <input type="submit" name="search" value="Search" />
     7  for students
     8
     9  <select name="searchtype">
     10    <option value="student_id">with id</option>
     11    <option value="name">with name</option>
     12  </select>
     13
     14  <input type="text" name="searchterm" />
     15
     16  <p>&nbsp;</p>
     17  <div tal:condition="view/hitlist">
     18    <h3>Search Results</h3>
     19    <input type="hidden" name="old_searchterm"
     20         tal:attributes="value view/searchterm" />
     21    <input type="hidden" name="old_searchtype"
     22         tal:attributes="value view/searchtype" />
     23    <table class="display dataTableManage">
     24      <thead>
     25        <tr>
     26          <th>Student Id</th><th>Name</th>
     27        </tr>
     28      </thead>
     29      <tbody>
     30        <tr tal:repeat="item view/hitlist">
     31          <td tal:content="item/student_id">A123456</td>
     32          <td tal:content="item/name">Bob</td>
     33        </tr>
     34      </tbody>
     35    </table>
     36  </div>
    2737</form>
Note: See TracChangeset for help on using the changeset viewer.