Changeset 486 for WAeUP_SRP/trunk/skins/waeup_student
- Timestamp:
- 6 Sep 2006, 10:09:39 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 13 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/application_form.pt
-
Property
svn:keywords
set to
Id
-
Property
svn:keywords
set to
-
WAeUP_SRP/trunk/skins/waeup_student/application_pin_form.pt
-
Property
svn:keywords
set to
Id
r484 r486 1 <tal:block define="rendered_main options/rendered _main;1 <tal:block define="rendered_main options/rendered; 2 2 portal_status_message options/psm; 3 3 data_storage options/ds; … … 6 6 > 7 7 <metal:block define-macro="edit_form"> 8 <metal:block use-macro="here/content_lib_master/macros/master">8 <metal:block use-macro="here/content_lib_master/macros/master"> 9 9 <metal:block fill-slot="header" 10 10 tal:define="creation creation|nothing; -
Property
svn:keywords
set to
-
WAeUP_SRP/trunk/skins/waeup_student/apply_admission.py
-
Property
svn:keywords
set to
Id
r484 r486 1 1 ##parameters=REQUEST 2 # $Id : apply_admission.py 173 2005-11-15 16:28:29Z joachim$2 # $Id$ 3 3 """ 4 4 process the Application Form -
Property
svn:keywords
set to
-
WAeUP_SRP/trunk/skins/waeup_student/bell.png
-
Property
svn:keywords
set to
Id
-
Property
svn:keywords
set to
-
WAeUP_SRP/trunk/skins/waeup_student/layout_application_create.pt
-
Property
svn:keywords
set to
Id
r481 r486 1 1 <tal:block define="global creation python:1; 2 2 global formaction string:apply_admission" /> 3 <metal:block use-macro="here/layout_ student_edit/macros/default_edit" />3 <metal:block use-macro="here/layout_application_edit/macros/default_edit" /> -
Property
svn:keywords
set to
-
WAeUP_SRP/trunk/skins/waeup_student/layout_application_edit.pt
-
Property
svn:keywords
set to
Id
r482 r486 1 1 <!-- a layout_lib macro --> 2 <!-- $Id : layout_lib_default_edit.pt 34052 2006-03-06 14:59:24Z atchertchian$ -->2 <!-- $Id$ --> 3 3 <metal:block define-macro="default_edit" 4 4 tal:define="layout options/layout; 5 ds options/datastructure; 6 dm ds/getDataModel; 7 formaction formaction|string:student_edit; 8 creation creation|nothing; 9 metadata metadata|nothing; 10 type_name request/type_name|nothing; 11 ti python:type_name and getattr(here.portal_types,type_name,None) or getattr(here.portal_types,here.portal_type,None); 12 creation_form python:ti and ti.getActionById('create', 'cpsdocument_create_form') or 'cpsdocument_create_form' ; 13 edit_form python:ti and ti.getActionById('edit', 'cpsdocument_edit_form') or 'cpsdocument_edit_form'; 14 metadata_form python:ti and ti.getActionById('metadata', 'cpsdocument_metadata') or 'cpsdocument_metadata'; 15 formaction formaction|python: test(creation, creation_form, 16 test(metadata, metadata_form, 17 edit_form)); 18 first_layout options/first_layout|python:0; 19 last_layout options/last_layout|python:0; 20 is_flexible options/is_flexible; 21 cpsmcat nocall:here/translation_service; 22 "> 5 ds options/datastructure; 6 dm ds/getDataModel; 7 formaction formaction|string:student_edit; 8 creation creation|nothing; 9 metadata metadata|nothing; 10 type_name request/type_name|nothing; 11 ti python:type_name and getattr(here.portal_types,type_name,None) or getattr(here.portal_types,here.portal_type,None); 12 cpsmcat nocall:here/translation_service; 13 "> 23 14 24 <tal:block condition="python:1 or first_layout"> 25 <tal:block 26 content="structure string:<form id='editForm' action='${formaction}' method='post' 27 enctype='multipart/form-data' class='workflow'> 28 <div class='group'><div class='documentFields'>" /> 29 <input type="hidden" name="type_name" value="." 30 tal:condition="creation" tal:attributes="value request/type_name" /> 31 </tal:block> 32 33 <table width="100%" cellpadding="2" cellspacing="2" summary="Form layout" 34 tal:condition="layout/rows"> 35 <tr tal:repeat="row layout/rows" valign="top"> 36 <td tal:repeat="cell row" 37 tal:attributes="colspan cell/ncols"> 38 <tal:block define="widget cell/widget; 39 wid widget/getWidgetId; 40 err python:ds.getError(wid); 41 err_mapping python:ds.getErrorMapping(wid); 42 is_required widget/is_required|nothing; 43 tooltip_id python:wid + '_help'; 44 widget_css_class cell/widget_css_class|nothing; 45 widget_css_class python:test(is_flexible, 'group', widget_css_class); 46 css_class python:test(err, 'row error', 47 test(is_flexible, 'group', 'row'))"> 48 <div tal:attributes="class widget_css_class; 49 id python:widget.getHtmlWidgetId()+'_widget'; 50 "> 51 <div class="label" tal:condition="widget/label_edit" 52 tal:attributes="class python:test(is_required, 'label required', 53 'label')"> 54 <label i18n:translate="" tal:condition="widget/is_i18n" 55 tal:content="widget/label_edit" 56 tal:attributes="for cell/widget_input_area_id|nothing;">label</label> 57 <label tal:condition="not:widget/is_i18n" 58 tal:content="widget/label_edit" 59 tal:attributes="for cell/widget_input_area_id|nothing;">label</label> 60 </div> 61 <button type="button" class="tooltipControl" 62 tal:condition="widget/help" 63 tal:attributes="onclick python:'toggleElementVisibility(\'%s\')' % tooltip_id;"> ? </button> 64 <div class="field"> 65 <div tal:replace="structure cell/widget_rendered"/> 66 </div> 67 <div class="tooltipArea" style="visibility: hidden;" 68 tal:condition="widget/help" 69 tal:attributes="id tooltip_id; 70 onclick python:'showElement(false, \'%s\')' % tooltip_id;"> 71 <tal:block i18n:translate="" tal:condition="widget/is_i18n" 72 tal:content="widget/help">i18_key-help_for_this_field</tal:block> 73 <tal:block tal:condition="not:widget/is_i18n" 74 tal:content="widget/help">This is the help for this field</tal:block> 75 </div> 76 <tal:block condition="err"> 15 <form action="" id="editForm" method="post" 16 enctype="multipart/form-data" class="workflow" 17 tal:attributes="action formaction" 18 > 19 <table width="200" cellpadding="2" cellspacing="2" summary="Form layout" 20 tal:condition="layout/rows"> 21 <tr tal:repeat="row layout/rows" valign="top"> 22 <td tal:repeat="cell row" 23 tal:attributes="colspan cell/ncols"> 24 <tal:block define="widget cell/widget; 25 wid widget/getWidgetId; 26 err python:ds.getError(wid); 27 err_mapping python:ds.getErrorMapping(wid); 28 is_required python: widget.is_required and creation and ('create' not in widget.readonly_layout_modes); 29 tooltip_id python:wid + '_help'; 30 widget_css_class cell/widget_css_class|nothing; 31 css_class python:test(err, 'row error','row')" 32 > 33 <div tal:attributes="class widget_css_class; 34 id python:widget.getHtmlWidgetId()+'_widget';" 35 > 36 <div class="label" tal:condition="widget/label_edit" 37 tal:attributes="class python:test(is_required, 'label required','label')"> 38 <label tal:content="widget/label_edit" 39 tal:attributes="for cell/widget_input_area_id|nothing;">label</label> 40 </div> 41 <button type="button" class="tooltipControl" 42 tal:condition="widget/help" 43 tal:attributes="onclick python:'toggleElementVisibility(\'%s\')' % tooltip_id;"> ? </button> 44 <div class="field"> 45 <div tal:replace="structure cell/widget_rendered"/> 46 </div> 47 <div class="tooltipArea" style="visibility: hidden;" 48 tal:condition="widget/help" 49 tal:attributes="id tooltip_id; 50 onclick python:'showElement(false, \'%s\')' % tooltip_id;" 51 > 52 <tal:block tal:content="widget/help">This is the help for this field 53 </tal:block> 54 </div> 55 <tal:block condition="err"> 77 56 <tal:block define="msg python:cpsmcat(err, mapping=err_mapping)"> 78 57 <br /><em style="color: red" 79 tal:content="msg">err</em>58 tal:content="msg">err</em> 80 59 </tal:block> 81 </tal:block> 82 <div style="float: right;" tal:condition="is_flexible"> 83 <input type="button" value="button_move_up" 84 tal:condition="not:repeat/row/start" 85 tal:attributes="name string:uprow_${repeat/row/index}; 86 onclick python:'CPSFlexibleEdit.buttonClick(this, \'\')'" 87 class="context moveUp" i18n:attributes="value" /> 88 <input type="button" value="button_move_down" 89 tal:condition="not:repeat/row/end" 90 tal:attributes="name string:downrow_${repeat/row/index}; 91 onclick python:'CPSFlexibleEdit.buttonClick(this, \'\')'" 92 class="context moveDown" i18n:attributes="value" /> 93 <input type="button" value="button_delete" 94 class="destructive" i18n:attributes="value" 95 tal:attributes="name string:deleterow_${repeat/row/index}; 96 onclick python:'CPSFlexibleEdit.buttonClick(this, \'%s\')' % 97 (cpsmcat('description_confirm_delete'), )" /> 60 </tal:block> 98 61 </div> 99 </div> 100 </tal:block> 101 </td> 102 </tr> 103 </table> 104 105 <tal:block condition="python:0 and is_flexible"> 106 <div tal:define="flexible_widgets options/flexible_widgets"> 107 <input type="hidden" name="layout_id" value="." 108 tal:attributes="value layout/layout_id" /> 109 <tal:select condition="python:len(flexible_widgets)>1"> 110 <select name="widget_type"> 111 <tal:block repeat="widget options/flexible_widgets"> 112 <option value="." 113 tal:condition="widget/is_i18n" 114 i18n:translate="" 115 tal:attributes="value widget/getWidgetId" 116 tal:content="widget/title_or_id">Type</option> 117 <option value="." 118 tal:condition="not:widget/is_i18n" 119 tal:attributes="value widget/getWidgetId" 120 tal:content="widget/title_or_id">Type</option> 121 </tal:block> 122 </select> 123 <input type="button" id="addwidget_button" 124 name="addwidget_button" value="button_add" 125 class="context" 126 i18n:attributes="value" 127 tal:attributes="onclick python:'CPSFlexibleEdit.buttonClick(this, \'\')'" /> 128 </tal:select> 129 <tal:button condition="python:len(flexible_widgets) == 1"> 130 <tal:block define="widget python:flexible_widgets[0]"> 131 <input type="hidden" name="widget_type" 132 tal:attributes="value widget/getWidgetId"> 133 <input type="submit" name="addwidget_button" 134 id="addwidget_button" 135 tal:define="button_add python:cpsmcat('button_add'); 136 widget_title python:cpsmcat(widget.title_or_id())" 137 tal:attributes="value string:${button_add} ${widget_title}" 138 class="context" /> 139 </tal:block> 140 </tal:button> 141 </div> 142 </tal:block> 143 144 <tal:block condition="python: 1 or last_layout"> 145 <tal:block content="structure string:</div>" /> 146 <metal:block define-slot="additional_content" /> 147 148 <tal:block condition="nothing"> 149 <div class="tooltipArea" style="visibility: hidden;" 150 id="transition_comments_help" 151 onclick="showElement(false, 'transition_comments_help')" 152 i18n:translate="help_transition_comments_modification"> 153 In this filed you can give the reason of the modification that you are doing on this document. 154 Your comments may be used to notify other users. 155 </div> 156 <dl> 157 <dt><label for="comments" 158 i18n:translate="transition_comments_modification">Reason of the modification</label> 159 <button type="button" class="tooltipControl" 160 onclick="toggleElementVisibility('transition_comments_help')"> ? </button> 161 </dt> 162 <dd> 163 <textarea name="comments" id="comments" cols="60" rows="3" 164 tal:content="nothing"> 165 </textarea> 166 </dd> 167 </dl> 168 </tal:block> 62 </tal:block> 63 </td> 64 </tr> 65 </table> 169 66 170 67 <input type="submit" class="standalone" name="cpsdocument_edit_button" … … 180 77 value="apply" 181 78 i18n:attributes="value" tal:condition="creation" /> 182 <tal:block content="structure string:</div></form>" />183 </tal:block>184 79 80 </form> 185 81 </metal:block> -
Property
svn:keywords
set to
-
WAeUP_SRP/trunk/skins/waeup_student/layout_check_pin_create.pt
-
Property
svn:keywords
set to
Id
-
Property
svn:keywords
set to
-
WAeUP_SRP/trunk/skins/waeup_student/layout_student_create.pt
-
Property
svn:keywords
set to
Id
-
Property
svn:keywords
set to
-
WAeUP_SRP/trunk/skins/waeup_student/layout_student_edit.pt
-
Property
svn:keywords
set to
Id
r482 r486 1 1 <!-- a layout_lib macro --> 2 <!-- $Id : layout_lib_default_edit.pt 34052 2006-03-06 14:59:24Z atchertchian$ -->2 <!-- $Id$ --> 3 3 <metal:block define-macro="default_edit" 4 4 tal:define="layout options/layout; -
Property
svn:keywords
set to
-
WAeUP_SRP/trunk/skins/waeup_student/scratch_card_batch_create_do.py
-
Property
svn:keywords
set to
Id
r442 r486 1 1 ##parameters=type_name, datamodel 2 # $Id : cpsdocument_create_do.py 34091 2006-03-06 18:37:08Z atchertchian$2 # $Id$ 3 3 """ 4 4 Create an empty object in the context according to the datamodel. -
Property
svn:keywords
set to
-
WAeUP_SRP/trunk/skins/waeup_student/scratch_card_batch_created.py
-
Property
svn:keywords
set to
Id
r442 r486 1 1 ##parameters= 2 # $Id : cpsdocument_create_do.py 34091 2006-03-06 18:37:08Z atchertchian$2 # $Id$ 3 3 4 4 return -
Property
svn:keywords
set to
-
WAeUP_SRP/trunk/skins/waeup_student/student.gif
-
Property
svn:keywords
set to
Id
-
Property
svn:keywords
set to
-
WAeUP_SRP/trunk/skins/waeup_student/student_edit.py
-
Property
svn:keywords
set to
Id
r483 r486 8 8 ##title= 9 9 ## 10 # $Id : cpsdocument_edit.py 33302 2006-02-22 15:57:11Z tziade$10 # $Id$ 11 11 """ 12 12 Called when a document form is posted. … … 30 30 31 31 # Check flexible controls 32 context.editLayouts(REQUEST=REQUEST)32 #context.editLayouts(REQUEST=REQUEST) 33 33 34 34 # Validate the document and write it if it's valid -
Property
svn:keywords
set to
-
WAeUP_SRP/trunk/skins/waeup_student/student_edit_form.pt
-
Property
svn:keywords
set to
Id
-
Property
svn:keywords
set to
-
WAeUP_SRP/trunk/skins/waeup_student/students_folder.gif
-
Property
svn:keywords
set to
Id
-
Property
svn:keywords
set to
Note: See TracChangeset for help on using the changeset viewer.