Changeset 7876 for main/waeup.kofa/trunk/src/waeup
- Timestamp:
- 14 Mar 2012, 08:03:54 (13 years ago)
- 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 4 4 </td> 5 5 <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> 13 11 </td> 14 12 </tr> -
main/waeup.kofa/trunk/src/waeup/kofa/students/browser_templates/fileupload.pt
r7811 r7876 4 4 </td> 5 5 <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: 31 28 </span> 29 <span tal:replace="viewlet/max_upload_size">10 KB</span> 32 30 <br /> 33 31 </td> -
main/waeup.kofa/trunk/src/waeup/kofa/students/browser_templates/imageupload.pt
r7828 r7876 4 4 </td> 5 5 <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: 25 22 </span> 23 <span tal:replace="viewlet/max_upload_size">10 KB</span> 26 24 </td> 27 25 </tr> -
main/waeup.kofa/trunk/src/waeup/kofa/students/browser_templates/studycoursepage.pt
r7811 r7876 9 9 </td> 10 10 <td tal:on-error="default"> 11 <div class="widget"tal:content="structure widget">11 <div tal:content="structure widget"> 12 12 <input type="text" /> 13 13 </div> … … 19 19 Study Mode: 20 20 </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 24 24 </div> 25 25 </td> … … 29 29 Department: 30 30 </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)" 33 33 tal:content="view/department/longtitle"> 34 34 DEPARTMENT … … 40 40 Faculty: 41 41 </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)" 44 44 tal:content="view/faculty/longtitle"> 45 45 FACULTY -
main/waeup.kofa/trunk/src/waeup/kofa/students/browser_templates/studylevelpage.pt
r7811 r7876 9 9 </td> 10 10 <td tal:on-error="default"> 11 <div class="widget"tal:content="structure widget">11 <div tal:content="structure widget"> 12 12 <input type="text" /> 13 13 </div> -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r7843 r7876 473 473 self.assertEqual(self.browser.url, student_path + '/studycourse') 474 474 self.assertFalse('CERT1' in self.browser.contents) 475 self.assertMatches('...<div class="widget">Nothing</div>...',475 self.assertMatches('...<div>Nothing</div>...', 476 476 self.browser.contents) 477 477 -
main/waeup.kofa/trunk/src/waeup/kofa/students/viewlets.py
r7873 r7876 369 369 grok.view(StudentBaseDisplayFormPage) 370 370 grok.require('waeup.handleStudent') 371 text = _('Edit base data')371 text = _('Edit') 372 372 target = 'edit_base' 373 373
Note: See TracChangeset for help on using the changeset viewer.