Ignore:
Timestamp:
13 May 2011, 15:25:22 (14 years ago)
Author:
Henrik Bettermann
Message:

Rename ApplicantsRootEditPage? to ApplicantsRootManageFormPage?.
Rename AddApplicantsContainer? to ApplicantsContainerAddFormPage?.
Change from base class WAeUPPage to WAeUPEditFormPage and WAeUPAddFormPage respectively.

Location:
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates
Files:
1 added
1 deleted
3 edited

Legend:

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

    r6063 r6069  
    77<table class="zebra">
    88  <tbody>
    9       <tr>
    10         <td class="fieldname">
    11           Type (Code):
    12         </td>
    13         <td class="field">
    14           <input tal:replace="context/__name__" />
    15         </td>
    16       </tr> 
    179    <tal:block repeat="widget view/widgets">
    1810      <tal:condition condition="python:widget.name not in ['form.description','form.title']">
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/applicantsrooteditpage.pt

    r5860 r6069  
    1 <form method="POST">
    2   <table>
     1<h2 i18n:translate=""
     2tal:condition="view/label"
     3tal:content="view/label">Label</h2>
     4
     5<div class="form-status"
     6tal:define="status view/status"
     7tal:condition="status">
     8
     9<div i18n:translate="" tal:content="view/status">
     10  Form status summary
     11</div>
     12
     13<ul class="errors" tal:condition="view/errors">
     14  <li tal:repeat="error view/error_views">
     15     <span tal:replace="structure error">Error Type</span>
     16  </li>
     17</ul>
     18</div>
     19
     20
     21<form action="." tal:attributes="action request/URL" method="POST"
     22      class="edit-form" enctype="multipart/form-data">
     23
     24<div id="tabs">
     25<ul>
     26  <li><a href="#tab-1"><span tal:content="view/subunits">Contents</span></a></li>
     27</ul>
     28   
     29<div id="tab-1">
     30  <h3 tal:content="view/subunits">Applicants Containers</h3>
     31  <table class="zebra">
    332    <thead>
    433      <tr>
    5         <th>&nbsp;</th><th>Name</th><th>Title</th>
     34        <th>&nbsp;</th><th>Code</th><th>Title</th>
    635      </tr>
    736    </thead>
    837    <tbody>
    9       <tr tal:repeat="entry view/getApplications"
    10           tal:attributes="class python: repeat['entry'].odd() and 'odd' or 'even'">
    11         <td>
    12           <input type="checkbox" name="entries"
    13                  tal:attributes="value entry/name" />
    14         </td>
    15         <td>
    16           <a href=""
    17              tal:attributes="href entry/url"
    18              tal:content="entry/name"
    19              >Some Entry</a>
    20         </td>
    21         <td>
    22           <span tal:define="name entry/name">
    23             <span tal:content="python: context[name].title">Title</span>
    24           </span>
    25         </td>
     38      <tr tal:repeat="ac context/values">
     39        <td>
     40          <input type="checkbox"
     41                 name="val_id"
     42                 tal:attributes="value ac/__name__" />
     43        </td>
     44        <td>
     45          <a tal:attributes="href python: view.url(ac)"
     46             tal:content="ac/__name__">
     47                ID
     48          </a>
     49        </td>
     50        <td>
     51          <span tal:content="ac/title">
     52           ID
     53          </span>
     54        </td>
    2655      </tr>
    2756    </tbody>
    2857  </table>
    29   <input type="submit" name="DELETE" value="Delete selected" />
    30   <input type="reset" name="RESET" value="Reset" />
    31   <input type="submit" name="CANCEL" value="Cancel" />
    32 </form>
     58 
     59    <div id="actionsView">
     60        <span class="actionButtons" tal:condition="view/availableActions">
     61            <span tal:repeat="action view/actions"
     62                  tal:omit-tag="">
     63              <input tal:condition="python:action.label in view.taboneactions"
     64                     tal:replace="structure action/render"/>
     65            </span>
     66        </span>
     67    </div>     
     68 
     69</div>
     70</div>
     71</form>
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/applicantsrootpage.pt

    r6067 r6069  
     1<h2 i18n:translate=""
     2tal:condition="view/label"
     3tal:content="view/label">Label</h2>
     4
    15<table class="display dataTable">
    26  <thead>
    37    <tr>
    4       <th>Name</th><th>Title</th>
     8      <th>Code</th><th>Title</th>
    59    </tr>
    610  </thead>
     
    1115        <a href=""
    1216           tal:attributes="href python:view.url(entry)"
    13            tal:content="entry/name"
     17           tal:content="entry/__name__"
    1418           >Name</a>
    1519      </td>
Note: See TracChangeset for help on using the changeset viewer.