Changeset 6345


Ignore:
Timestamp:
11 Jun 2011, 05:59:01 (13 years ago)
Author:
Henrik Bettermann
Message:

Fix useless python:hint condition in manage and add form templates which had been copied from megrok.layout.

Display description field attribute which should only be used in edit and add forms.

Adjust description of code fields.

Location:
main/waeup.sirp/trunk/src/waeup/sirp
Files:
7 edited

Legend:

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

    r6344 r6345  
    1717  <table class="zebra">
    1818    <tbody>
    19         <tal:block repeat="widget view/widgets">
     19      <tal:block repeat="widget view/widgets">
    2020        <tr>
    21           <td class="label" tal:define="hint widget/hint">
    22             <label tal:condition="python:hint"
    23                    tal:attributes="for widget/name">
    24               <span class="required" tal:condition="widget/required"
    25               >*</span><span i18n:translate=""
    26                              tal:content="widget/label">label</span>
    27             </label>
    28             <label tal:condition="python:not hint"
    29                    tal:attributes="for widget/name">
    30               <span class="required" tal:condition="widget/required"
    31               >*</span><span i18n:translate=""
    32                              tal:content="widget/label">label</span>:
     21          <td class="label">
     22            <label tal:attributes="for widget/name">
     23              <span class="required" tal:condition="widget/required">*</span>
     24              <span i18n:translate="" tal:content="widget/label">label</span>:
    3325            </label>
    3426          </td>
    3527          <td class="field">
    36             <div class="widget" tal:content="structure widget">
     28            <span class="widget" tal:content="structure widget">
    3729              <input type="text" />
    38             </div>
    39             <div class="error" tal:condition="widget/error">
     30            </span>
     31            <tal:error tal:condition="widget/error">
    4032              <span tal:replace="structure widget/error">error</span>
    41             </div>
     33            </tal:error>
     34            <tal:hint tal:condition="widget/hint">
     35              <span class="hint" tal:content="structure widget/hint">hint</span>
     36            </tal:hint>
    4237          </td>
    4338        </tr>
    44         </tal:block>
     39      </tal:block>
    4540    </tbody>
    4641  </table>
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/applicantscontainermanagepage.pt

    r6344 r6345  
    3333          <tal:block repeat="widget view/widgets">
    3434            <tr>
    35               <td class="label" tal:define="hint widget/hint">
    36                 <label tal:condition="python:hint" tal:attributes="for widget/name">
    37                   <span class="required" tal:condition="widget/required" >*
    38                   </span>
    39                   <span i18n:translate="" tal:content="widget/label">label
    40                   </span>:
     35              <td class="label">
     36                <label tal:attributes="for widget/name">
     37                  <span class="required" tal:condition="widget/required">*</span>
     38                  <span i18n:translate="" tal:content="widget/label">label</span>:
    4139                </label>
    42                 <label tal:condition="python:not hint" tal:attributes="for widget/name">
    43                   <span class="required" tal:condition="widget/required" >*
    44                   </span>
    45                   <span i18n:translate="" tal:content="widget/label">label
    46                   </span>:
    47                 </label> </td>
     40              </td>
    4841              <td class="field">
    49                 <div class="widget" tal:content="structure widget">
     42                <span class="widget" tal:content="structure widget">
    5043                  <input type="text" />
    51                 </div>
    52                 <div class="error" tal:condition="widget/error">
    53                   <span tal:replace="structure widget/error">error
    54                   </span>
    55                 </div> </td>
     44                </span>
     45                <tal:error tal:condition="widget/error">
     46                  <span tal:replace="structure widget/error">error</span>
     47                </tal:error>
     48                <tal:hint tal:condition="widget/hint">
     49                  <span class="hint" tal:content="structure widget/hint">hint</span>
     50                </tal:hint>
     51              </td>
    5652            </tr>
    5753          </tal:block>
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/certificatemanagepage.pt

    r6344 r6345  
    2626      <tal:block repeat="widget view/widgets">
    2727        <tr>
    28           <td class="label" tal:define="hint widget/hint">
    29         <label tal:condition="python:hint"
    30                tal:attributes="for widget/name">
    31           <span class="required" tal:condition="widget/required"
    32                 >*</span><span i18n:translate=""
    33                 tal:content="widget/label">label</span>
    34         </label>
    35         <label tal:condition="python:not hint"
    36                tal:attributes="for widget/name">
    37           <span class="required" tal:condition="widget/required"
    38                 >*</span><span i18n:translate=""
    39                 tal:content="widget/label">label</span>
    40         </label>:
     28          <td class="label">
     29            <label tal:attributes="for widget/name">
     30              <span class="required" tal:condition="widget/required">*</span>
     31              <span i18n:translate="" tal:content="widget/label">label</span>:
     32            </label>
    4133          </td>
    4234          <td class="field">
    43         <div class="widget" tal:content="structure widget">
    44           <input type="text" />
    45         </div>
    46         <div class="error" tal:condition="widget/error">
    47           <span tal:replace="structure widget/error">error</span>
    48         </div>
     35            <span class="widget" tal:content="structure widget">
     36              <input type="text" />
     37            </span>
     38            <tal:error tal:condition="widget/error">
     39              <span tal:replace="structure widget/error">error</span>
     40            </tal:error>
     41            <tal:hint tal:condition="widget/hint">
     42              <span class="hint" tal:content="structure widget/hint">hint</span>
     43            </tal:hint>
    4944          </td>
    5045        </tr>
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/default_waeup_edit_form.pt

    r6344 r6345  
    1919      <tal:block repeat="widget view/widgets">
    2020        <tr>
    21           <td class="label" tal:define="hint widget/hint">
    22             <label tal:condition="python:hint"
    23                    tal:attributes="for widget/name">
    24               <span class="required" tal:condition="widget/required"
    25               >*</span><span i18n:translate=""
    26                              tal:content="widget/label">label</span>:
    27             </label>
    28             <label tal:condition="python:not hint"
    29                    tal:attributes="for widget/name">
    30               <span class="required" tal:condition="widget/required"
    31               >*</span><span i18n:translate=""
    32                              tal:content="widget/label">label</span>:
     21          <td class="label">
     22            <label tal:attributes="for widget/name">
     23              <span class="required" tal:condition="widget/required">*</span>
     24              <span i18n:translate="" tal:content="widget/label">label</span>:
    3325            </label>
    3426          </td>
    3527          <td class="field">
    36             <div class="widget" tal:content="structure widget">
     28            <span class="widget" tal:content="structure widget">
    3729              <input type="text" />
    38             </div>
    39             <div class="error" tal:condition="widget/error">
     30            </span>
     31            <tal:error tal:condition="widget/error">
    4032              <span tal:replace="structure widget/error">error</span>
    41             </div>
     33            </tal:error>
     34            <tal:hint tal:condition="widget/hint">
     35              <span class="hint" tal:content="structure widget/hint">hint</span>
     36            </tal:hint>
    4237          </td>
    4338        </tr>
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/departmentmanagepage.pt

    r6344 r6345  
    2828            <table class="zebra">
    2929                <tbody>
    30                     <tal:block repeat="widget view/widgets">
    31                         <tr>
    32                             <td class="label" tal:define="hint widget/hint">
    33                                 <label tal:condition="python:hint" tal:attributes="for widget/name">
    34                                     <span class="required" tal:condition="widget/required">*
    35                                     </span>
    36                                     <span i18n:translate="" tal:content="widget/label">label
    37                                     </span>
    38                                 </label>
    39                                 <label tal:condition="python:not hint" tal:attributes="for widget/name">
    40                                     <span class="required" tal:condition="widget/required">*
    41                                     </span>
    42                                     <span i18n:translate="" tal:content="widget/label">label
    43                                     </span>
    44                                 </label>:
    45                             </td>
    46                             <td class="field">
    47                                 <div class="widget" tal:content="structure widget">
    48                                     <input type="text" />
    49                                 </div>
    50                                 <div class="error" tal:condition="widget/error">
    51                                     <span tal:replace="structure widget/error">error
    52                                     </span>
    53                                 </div>
    54                             </td>
    55                         </tr>
    56                     </tal:block>
     30                  <tal:block repeat="widget view/widgets">
     31                    <tr>
     32                      <td class="label">
     33                        <label tal:attributes="for widget/name">
     34                          <span class="required" tal:condition="widget/required">*</span>
     35                          <span i18n:translate="" tal:content="widget/label">label</span>:
     36                        </label>
     37                      </td>
     38                      <td class="field">
     39                        <span class="widget" tal:content="structure widget">
     40                          <input type="text" />
     41                        </span>
     42                        <tal:error tal:condition="widget/error">
     43                          <span tal:replace="structure widget/error">error</span>
     44                        </tal:error>
     45                        <tal:hint tal:condition="widget/hint">
     46                          <span class="hint" tal:content="structure widget/hint">hint</span>
     47                        </tal:hint>
     48                      </td>
     49                    </tr>
     50                  </tal:block>
    5751                </tbody>
    5852            </table>
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/facultymanagepage.pt

    r6344 r6345  
    2424            <table class="zebra">
    2525                <tbody>
    26                     <tal:block repeat="widget view/widgets">
    27                         <tr>
    28                             <td class="label" tal:define="hint widget/hint">
    29                                 <label tal:condition="python:hint" tal:attributes="for widget/name">
    30                                     <span class="required" tal:condition="widget/required" >*
    31                                     </span>
    32                                     <span i18n:translate="" tal:content="widget/label">label
    33                                     </span>
    34                                 </label>
    35                                 <label tal:condition="python:not hint" tal:attributes="for widget/name">
    36                                     <span class="required" tal:condition="widget/required" >*
    37                                     </span>
    38                                     <span i18n:translate="" tal:content="widget/label">label
    39                                     </span>
    40                                 </label>:
    41                             </td>
    42                             <td class="field">
    43                                 <div class="widget" tal:content="structure widget">
    44                                     <input type="text" />
    45                                 </div>
    46                                 <div class="error" tal:condition="widget/error">
    47                                     <span tal:replace="structure widget/error">error
    48                                     </span>
    49                                 </div>
    50                             </td>
    51                         </tr>
    52                     </tal:block>
     26                  <tal:block repeat="widget view/widgets">
     27                    <tr>
     28                      <td class="label">
     29                        <label tal:attributes="for widget/name">
     30                          <span class="required" tal:condition="widget/required">*</span>
     31                          <span i18n:translate="" tal:content="widget/label">label</span>:
     32                        </label>
     33                      </td>
     34                      <td class="field">
     35                        <span class="widget" tal:content="structure widget">
     36                          <input type="text" />
     37                        </span>
     38                        <tal:error tal:condition="widget/error">
     39                          <span tal:replace="structure widget/error">error</span>
     40                        </tal:error>
     41                        <tal:hint tal:condition="widget/hint">
     42                          <span class="hint" tal:content="structure widget/hint">hint</span>
     43                        </tal:hint>
     44                      </td>
     45                    </tr>
     46                  </tal:block>
    5347                </tbody>
    5448            </table>
  • main/waeup.sirp/trunk/src/waeup/sirp/university/interfaces.py

    r6296 r6345  
    2020    code = schema.TextLine(
    2121        title = u'Code',
    22         description = u'Abbreviated code of the faculty',
    2322        default = u'NA',
    2423        required = True,
     
    4948    code = schema.TextLine(
    5049        title = u'Code',
    51         description = u'Abbreviated code of the faculty',
     50        description = u'This code will become part of the URL.',
    5251        default = u'NA',
    5352        required = True,
     
    7170        title = u'Code',
    7271        default = u'NA',
    73         description = u'Abbreviated code of the department',
    7472        required = True,
    7573        readonly = True,
     
    102100    code = schema.TextLine(
    103101        title = u'Code',
    104         default = u'NA',
    105         description = u'Abbreviated code of the department',
     102        description = u'This code will become part of the URL.',
     103        default = u'NA',
    106104        required = True,
    107105        readonly = False,
     
    125123        title = u'Code',
    126124        default = u'NA',
    127         description = u'Abbreviated code of the course',
    128125        required = True,
    129126        readonly = True,
     
    165162    code = schema.TextLine(
    166163        title = u'Code',
    167         default = u'NA',
    168         description = u'Abbreviated code of the course',
     164        description = u'Enter unique course code which will become part of the URL.',
     165        default = u'NA',
    169166        required = True,
    170167        readonly = False,
     
    179176        title = u'Code',
    180177        default = u'NA',
    181         description = u'Abbreviated code of the certificate.',
    182178        required = True,
    183179        readonly = True,
     
    231227        title = u'Code',
    232228        default = u'NA',
    233         description = u'Abbreviated code of the certificate.',
     229        description = u'Enter unique certificate code which will become part of the URL.',
    234230        required = True,
    235231        readonly = False,
Note: See TracChangeset for help on using the changeset viewer.