Changeset 7876 for main


Ignore:
Timestamp:
14 Mar 2012, 08:03:54 (13 years ago)
Author:
Henrik Bettermann
Message:

Clean-up css and labels.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/students
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser_templates/filedisplay.pt

    r7459 r7876  
    44  </td>
    55  <td>
    6     <span class="widget">
    7       <a tal:attributes="href viewlet/download_name"
    8          tal:content="viewlet/download_name"
    9          target="image">
    10         LINK
    11       </a>
    12     </span>
     6    <a tal:attributes="href viewlet/download_name"
     7       tal:content="viewlet/download_name"
     8       target="image">
     9      LINK
     10    </a>
    1311  </td>
    1412</tr>
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser_templates/fileupload.pt

    r7811 r7876  
    44  </td>
    55  <td>
    6     <span class="widget">
    7       <tal:file tal:condition="viewlet/file_exists">
    8         <a tal:attributes="href viewlet/download_name"
    9            tal:content="viewlet/title"
    10            target="image">
    11           LINK
    12         </a>
    13       </tal:file>
    14       <br />
    15       <input type="file" tal:attributes="name viewlet/input_name"/>
    16       <br /><br />
    17       <input type="submit" tal:condition="viewlet/file_exists"
    18              tal:attributes="id python:('delete_%s' % viewlet.input_name);
    19                 name python:('delete_%s' % viewlet.input_name);
    20                 value viewlet/delete_button"
    21              class="btn error" />
    22       <input type="submit"
    23                tal:attributes="id python:('upload_%s' % viewlet.input_name);
    24                   name python:('upload_%s' % viewlet.input_name);
    25                   value viewlet/upload_button"
    26                class="btn primary" />
    27       <span i18n:translate="">
    28         Max. file size:
    29       </span>
    30       <span tal:replace="viewlet/max_upload_size">10 KB</span>
     6    <tal:file tal:condition="viewlet/file_exists">
     7      <a tal:attributes="href viewlet/download_name"
     8         tal:content="viewlet/title"
     9         target="image">
     10        LINK
     11      </a>
     12    </tal:file>
     13    <br />
     14    <input type="file" tal:attributes="name viewlet/input_name"/>
     15    <br /><br />
     16    <input type="submit" tal:condition="viewlet/file_exists"
     17           tal:attributes="id python:('delete_%s' % viewlet.input_name);
     18              name python:('delete_%s' % viewlet.input_name);
     19              value viewlet/delete_button"
     20           class="btn error" />
     21    <input type="submit"
     22             tal:attributes="id python:('upload_%s' % viewlet.input_name);
     23                name python:('upload_%s' % viewlet.input_name);
     24                value viewlet/upload_button"
     25             class="btn primary" />
     26    <span i18n:translate="">
     27      Max. file size:
    3128    </span>
     29    <span tal:replace="viewlet/max_upload_size">10 KB</span>
    3230    <br />
    3331  </td>
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser_templates/imageupload.pt

    r7828 r7876  
    44  </td>
    55  <td>
    6     <span class="widget">
    7       <img align="middle" height="125px"
    8            tal:attributes="src viewlet/download_name" />
    9       <input type="submit" tal:condition="viewlet/file_exists"
    10        tal:attributes="id python:('delete_%s' % viewlet.input_name);
    11           name python:('delete_%s' % viewlet.input_name)"
    12        value="Delete" class="btn error" />
    13       <br /><br />
    14       <input type="file" tal:attributes="name viewlet/input_name"/>
    15       <br /><br />
    16       <input type="submit"
    17                tal:attributes="id python:('upload_%s' % viewlet.input_name);
    18                   name python:('upload_%s' % viewlet.input_name);
    19                   value viewlet/upload_button"
    20                value="Upload" class="btn primary" />
    21       <span i18n:translate="">
    22         Max. file size:
    23       </span>
    24       <span tal:replace="viewlet/max_upload_size">10 KB</span>
     6    <img align="middle" height="125px"
     7         tal:attributes="src viewlet/download_name" />
     8    <input type="submit" tal:condition="viewlet/file_exists"
     9     tal:attributes="id python:('delete_%s' % viewlet.input_name);
     10        name python:('delete_%s' % viewlet.input_name)"
     11     value="Delete" class="btn error" />
     12    <br /><br />
     13    <input type="file" tal:attributes="name viewlet/input_name"/>
     14    <br /><br />
     15    <input type="submit"
     16             tal:attributes="id python:('upload_%s' % viewlet.input_name);
     17                name python:('upload_%s' % viewlet.input_name);
     18                value viewlet/upload_button"
     19             value="Upload" class="btn primary" />
     20    <span i18n:translate="">
     21      Max. file size:
    2522    </span>
     23    <span tal:replace="viewlet/max_upload_size">10 KB</span>
    2624  </td>
    2725</tr>
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser_templates/studycoursepage.pt

    r7811 r7876  
    99        </td>
    1010        <td tal:on-error="default">
    11           <div class="widget" tal:content="structure widget">
     11          <div tal:content="structure widget">
    1212            <input type="text" />
    1313          </div>
     
    1919            Study Mode:
    2020        </td>
    21         <td class="field">
    22           <div class="widget" tal:content="view/current_mode">
    23             <input type="text" />
     21        <td>
     22          <div tal:content="view/current_mode">
     23          CURRENTMODE
    2424          </div>
    2525        </td>
     
    2929            Department:
    3030        </td>
    31         <td class="field">
    32           <a tal:attributes="href python: view.url(view.department)" class="widget"
     31        <td>
     32          <a tal:attributes="href python: view.url(view.department)"
    3333               tal:content="view/department/longtitle">
    3434            DEPARTMENT
     
    4040            Faculty:
    4141        </td>
    42         <td class="field">
    43           <a tal:attributes="href python: view.url(view.faculty)" class="widget"
     42        <td>
     43          <a tal:attributes="href python: view.url(view.faculty)"
    4444               tal:content="view/faculty/longtitle">
    4545            FACULTY
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser_templates/studylevelpage.pt

    r7811 r7876  
    99        </td>
    1010        <td tal:on-error="default">
    11           <div class="widget" tal:content="structure widget">
     11          <div tal:content="structure widget">
    1212            <input type="text" />
    1313          </div>
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py

    r7843 r7876  
    473473        self.assertEqual(self.browser.url, student_path + '/studycourse')
    474474        self.assertFalse('CERT1' in self.browser.contents)
    475         self.assertMatches('...<div class="widget">Nothing</div>...',
     475        self.assertMatches('...<div>Nothing</div>...',
    476476                           self.browser.contents)
    477477
  • main/waeup.kofa/trunk/src/waeup/kofa/students/viewlets.py

    r7873 r7876  
    369369    grok.view(StudentBaseDisplayFormPage)
    370370    grok.require('waeup.handleStudent')
    371     text = _('Edit base data')
     371    text = _('Edit')
    372372    target = 'edit_base'
    373373
Note: See TracChangeset for help on using the changeset viewer.