Ignore:
Timestamp:
21 Oct 2005, 16:26:43 (19 years ago)
Author:
joachim
Message:

=more enhancements

Location:
waeup_product/trunk/skins
Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • waeup_product/trunk/skins/waeup_default/getWAeUPLayouts.py

    r68 r76  
    202202###)
    203203
     204firstname = { ###(
     205            'type': 'String Widget',
     206            'data': {
     207                'title': 'First Name',
     208                'fields': ('firstname',),
     209                'is_required': False,
     210                'label': 'first name',
     211                'label_edit': 'first name',
     212                'description': 'First Name',
     213                'help': 'First name',
     214                'is_i18n': False,
     215                'display_width': 40,
     216                },
     217            }
     218middlename = {
     219            'type': 'String Widget',
     220            'data': {
     221                'title': '',
     222                'fields': ('middlename',),
     223                'is_required': False,
     224                'label': 'middle name',
     225                'label_edit': 'middle name',
     226                'description': '',
     227                'help': 'middle name',
     228                'is_i18n': False,
     229                'readonly_layout_modes': (),
     230                'hidden_layout_modes': (),
     231                'hidden_readonly_layout_modes': (),
     232                'hidden_empty': True,
     233                'hidden_if_expr': '',
     234                'css_class': '',
     235                'widget_mode_expr': '',
     236                'display_width': 40,
     237                'size_max': 0,
     238                },
     239            }
     240
     241lastname = {
     242            'type': 'String Widget',
     243            'data': {
     244                'title': '',
     245                'fields': ('lastname',),
     246                'is_required': False,
     247                'label': 'surname',
     248                'label_edit': 'surname',
     249                'description': '',
     250                'help': 'Surname',
     251                'is_i18n': False,
     252                'readonly_layout_modes': (),
     253                'hidden_layout_modes': (),
     254                'hidden_readonly_layout_modes': (),
     255                'hidden_empty': False,
     256                'hidden_if_expr': '',
     257                'css_class': '',
     258                'widget_mode_expr': '',
     259                'display_width': 40,
     260                'size_max': 0,
     261            },
     262        }
     263sex = {
     264            'type': 'Boolean Widget',
     265            'data': {
     266                'title': '',
     267                'fields': ('sex',),
     268                'is_required': False,
     269                'label': 'sex',
     270                'label_edit': 'sex',
     271                'label_false': 'male',
     272                'label_true': 'female',
     273                'description': '',
     274                'help': '',
     275                'is_i18n': False,
     276                'readonly_layout_modes': (),
     277                'hidden_layout_modes': (),
     278                'hidden_readonly_layout_modes': (),
     279                'hidden_empty': False,
     280                'hidden_if_expr': '',
     281                'css_class': '',
     282                'widget_mode_expr': '',
     283                'display_width': 20,
     284                'size_max': 0,
     285            }
     286        }
     287           
     288###)
     289
    204290student_personal_layout = { ###(
    205291    'widgets': {
    206         'firstname': {
    207             'type': 'String Widget',
    208             'data': {
    209                 'title': '',
    210                 'fields': ('firstname',),
    211                 'is_required': False,
    212                 'label': 'First Name',
    213                 'label_edit': 'First Name',
    214                 'description': '',
    215                 'help': '',
    216                 'is_i18n': False,
    217                 'readonly_layout_modes': (),
    218                 'hidden_layout_modes': (),
    219                 'hidden_readonly_layout_modes': (),
    220                 'hidden_empty': False,
    221                 'hidden_if_expr': '',
    222                 'css_class': '',
    223                 'widget_mode_expr': '',
    224                 'display_width': 10,
    225                 'size_max': 0,
    226             },
    227         },
    228         'middlename': {
    229             'type': 'String Widget',
    230             'data': {
    231                 'title': '',
    232                 'fields': ('middlename',),
    233                 'is_required': False,
    234                 'label': 'Middle Name',
    235                 'label_edit': 'Middle Name',
    236                 'description': '',
    237                 'help': '',
    238                 'is_i18n': False,
    239                 'readonly_layout_modes': (),
    240                 'hidden_layout_modes': (),
    241                 'hidden_readonly_layout_modes': (),
    242                 'hidden_empty': False,
    243                 'hidden_if_expr': '',
    244                 'css_class': '',
    245                 'widget_mode_expr': '',
    246                 'display_width': 10,
    247                 'size_max': 0,
    248             },
    249         },
    250         'lastname': {
    251             'type': 'String Widget',
    252             'data': {
    253                 'title': '',
    254                 'fields': ('lastname',),
    255                 'is_required': False,
    256                 'label': 'Last Name',
    257                 'label_edit': 'Last Name',
    258                 'description': '',
    259                 'help': '',
    260                 'is_i18n': False,
    261                 'readonly_layout_modes': (),
    262                 'hidden_layout_modes': (),
    263                 'hidden_readonly_layout_modes': (),
    264                 'hidden_empty': False,
    265                 'hidden_if_expr': '',
    266                 'css_class': '',
    267                 'widget_mode_expr': '',
    268                 'display_width': 10,
    269                 'size_max': 0,
    270             },
    271         },
    272         'sex': {
    273             'type': 'Boolean Widget',
    274             'data': {
    275                 'title': '',
    276                 'fields': ('sex',),
    277                 'is_required': False,
    278                 'label': 'Sex',
    279                 'label_edit': 'Sex',
    280                 'label_false': 'male',
    281                 'label_true': 'female',
    282                 'description': '',
    283                 'help': '',
    284                 'is_i18n': False,
    285                 'readonly_layout_modes': (),
    286                 'hidden_layout_modes': (),
    287                 'hidden_readonly_layout_modes': (),
    288                 'hidden_empty': False,
    289                 'hidden_if_expr': '',
    290                 'css_class': '',
    291                 'widget_mode_expr': '',
    292                 'display_width': 10,
    293                 'size_max': 0,
    294             },
    295         },
     292        'firstname': firstname,
     293        'middlename': middlename,
     294        'lastname': lastname,
     295        'sex': sex,
    296296        'birthday': {
    297297            'type': 'Date Widget',
     
    318318    },
    319319    'layout': {
    320         'style_prefix': 'layout_default_',
     320        'style_prefix': 'layout_personal_',
    321321        'flexible_widgets': (),
    322322        'ncols': 1,
     
    392392###)
    393393
    394 jamb_id = {
     394jamb_id = { ###(
    395395           'type': 'StudentId Widget',
    396396           'data': {
     
    414414                 },
    415415           }
     416
     417###)
    416418
    417419admission = { ###(
     
    517519            'type': 'StudentId Widget',
    518520            'data': {
    519                 'title': 'Student ID',
     521                'title': 'registration nr',
    520522                'fields': ('reg_nr',),
    521523                'is_required': True,
    522                 'label': 'Student ID',
    523                 'label_edit': 'Student ID',
     524                'label': 'registration nr',
     525                'label_edit': 'registration nr',
    524526                'description': 'The Student ID from JAMB',
    525527                'help': 'The Student ID from JAMB',
     
    529531            },
    530532        },
    531         'firstname': {
    532             'type': 'String Widget',
    533             'data': {
    534                 'title': 'First Name',
    535                 'fields': ('firstname',),
    536                 'is_required': False,
    537                 'label': 'First Name',
    538                 'label_edit': 'First Name',
    539                 'description': 'First Name',
    540                 'help': 'First name',
    541                 'is_i18n': False,
    542                 'display_width': 40,
    543             },
    544         },
    545         'middlename': {
    546             'type': 'String Widget',
    547             'data': {
    548                 'title': '',
    549                 'fields': ('middlename',),
    550                 'is_required': False,
    551                 'label': 'Middle Name',
    552                 'label_edit': 'Middle Name',
    553                 'description': '',
    554                 'help': 'Middle name',
    555                 'is_i18n': False,
    556                 'readonly_layout_modes': (),
    557                 'hidden_layout_modes': (),
    558                 'hidden_readonly_layout_modes': (),
    559                 'hidden_empty': False,
    560                 'hidden_if_expr': '',
    561                 'css_class': '',
    562                 'widget_mode_expr': '',
    563                 'display_width': 40,
    564                 'size_max': 0,
    565             },
    566         },
    567         'lastname': {
    568             'type': 'String Widget',
    569             'data': {
    570                 'title': '',
    571                 'fields': ('lastname',),
    572                 'is_required': False,
    573                 'label': 'Surname',
    574                 'label_edit': 'Surname',
    575                 'description': '',
    576                 'help': 'Surname',
    577                 'is_i18n': False,
    578                 'readonly_layout_modes': (),
    579                 'hidden_layout_modes': (),
    580                 'hidden_readonly_layout_modes': (),
    581                 'hidden_empty': False,
    582                 'hidden_if_expr': '',
    583                 'css_class': '',
    584                 'widget_mode_expr': '',
    585                 'display_width': 40,
    586                 'size_max': 0,
    587             },
    588         },
     533        'firstname': firstname,
     534        'middlename': middlename,
     535        'lastname': lastname,
    589536        'age': {
    590537            'type': 'Int Widget',
     
    609556            },
    610557        },
    611         'sex': {
    612             'type': 'Boolean Widget',
    613             'data': {
    614                 'title': '',
    615                 'fields': ('sex',),
    616                 'is_required': False,
    617                 'label': 'sex',
    618                 'label_edit': 'sex',
    619                 'label_false': 'male',
    620                 'label_true': 'female',
    621                 'description': '',
    622                 'help': '',
    623                 'is_i18n': False,
    624                 'readonly_layout_modes': (),
    625                 'hidden_layout_modes': (),
    626                 'hidden_readonly_layout_modes': (),
    627                 'hidden_empty': False,
    628                 'hidden_if_expr': '',
    629                 'css_class': '',
    630                 'widget_mode_expr': '',
    631                 'display_width': 20,
    632                 'size_max': 0,
    633             },
    634         },
     558        'sex': sex,
    635559        'state': {
    636560            'type': 'Select Widget',
     
    639563                'fields': ('state',),
    640564                'is_required': False,
    641                 'label': 'State',
    642                 'label_edit': 'State',
     565                'label': 'state of origin',
     566                'label_edit': 'state of origin',
    643567                'description': '',
    644568                'help': '',
     
    688612                'fields': ('faculty',),
    689613                'is_required': False,
    690                 'label': 'Faculty',
    691                 'label_edit': 'Faculty',
     614                'label': 'faculty',
     615                'label_edit': 'faculty',
    692616                'description': '',
    693617                'help': '',
     
    793717                'fields': ('admission_sc_pin',),
    794718                'is_required': False,
    795                 'label': 'Scratch card PIN used',
    796                 'label_edit': 'Scratch card PIN used',
     719                'label': 'pin card code',
     720                'label_edit': 'pin card code',
    797721                'description': '',
    798722                'help': '',
     
    842766    'widgets': jamb_widgets,
    843767    'layout': {
    844         'style_prefix': 'layout_default_',
     768        'style_prefix': 'layout_waeup_',
    845769        'flexible_widgets': (),
    846770        'ncols': 1,
     
    851775            [{'widget_id': 'lastname', 'ncols': 1},],
    852776            #[{'widget_id': 'sc_id', 'ncols': 1},],
    853             #[{'widget_id': 'sc_pin', 'ncols': 1},],
     777            [{'widget_id': 'sc_pin', 'ncols': 1},],
    854778            [{'widget_id': 'age', 'ncols': 1},],
    855779            [{'widget_id': 'sex', 'ncols': 1},],
  • waeup_product/trunk/skins/waeup_default/getWAeUPTypes.py

    r72 r76  
    261261         {'id': 'view',
    262262          'name': 'action_view',
    263           'action': 'string:${object_url}/jamb_index_html',
     263          'action': 'string:${object_url}/student_personal_index_html',
    264264          #'action': 'string:${object_url}/cpsdocument_view',
     265          'condition': '',
     266          'permission': ('View',),
     267          'category': 'object',
     268          'visible': True,},
     269         {'id': 'edit',
     270          'name': 'action_edit',
     271          'action': 'string:${object_url}/student_personal_edit_form',
    265272          'condition': '',
    266273          'permission': ('View',),
  • waeup_product/trunk/skins/waeup_student/student_personal_view_student.pt

    r67 r76  
    11<metal:block define-macro="view">
    2 <metal:block use-macro="here/content_lib_master/macros/master">
    3   <metal:block fill-slot="header">
    4   </metal:block>
     2  <metal:block use-macro="here/content_lib_master/macros/master">
     3    <metal:block fill-slot="header">
     4    </metal:block>
    55
    6   <metal:block fill-slot="css_slot">
    7     <link rel="Stylesheet" type="text/css" href=""
    8       tal:attributes="href string:${base_url}document.css" />
    9     <link rel="Stylesheet" type="text/css" href=""
    10       tal:attributes="href string:${base_url}forum.css" />
    11   </metal:block>
    12 
    13   <metal:block fill-slot="main">
    14     <tal:block tal:content="structure rendered_main|python:doc.render(proxy=here)" />
    15 
    16     <tal:block tal:condition="python:hasattr(here,'portal_discussion') and
    17       hasattr(here.portal_discussion, 'isCommentingAllowedFor')">
    18       <tal:block tal:define="comments_allowed
    19         python:here.portal_discussion.isCommentingAllowedFor(here);"
    20         tal:condition="comments_allowed">
    21         <metal:block
    22           use-macro="here/forum_comment_lib_view_comments_inline/macros/view_comments_inline" />
    23       </tal:block>
    24     </tal:block>
    25 
    26   </metal:block>
    27   <metal:block fill-slot="sub">
    28   </metal:block>
     6    <metal:block fill-slot="css_slot">
     7      <link rel="Stylesheet" type="text/css" href=""
     8            tal:attributes="href string:${base_url}document.css" />
     9      <link rel="Stylesheet" type="text/css" href=""
     10            tal:attributes="href string:${base_url}forum.css" />
     11    </metal:block>
     12   
     13    <metal:block fill-slot="main">
     14      <tal:block tal:content="structure rendered_main|python:doc.render(proxy=here)" />
     15      <p>
     16        <a href="" tal:attributes="href string:${context/absolute_url}/student_personal_edit_form">edit</a>
     17      </p>
     18    </metal:block>
     19    <metal:block fill-slot="sub">
     20    </metal:block>
    2921
    3022</metal:block>
  • waeup_product/trunk/skins/waeup_student/student_view_student.pt

    r48 r76  
    1616               items here/contentValues"
    1717               >
     18    <tal:block condition="python:0 and len(items)">
    1819    <table cellspacing="0" cellpadding="0">
    19       <tal:block condition="python: len(items)">
    2020        <tr tal:repeat="item items">
    2121          <td colspan="1">
     
    2525          </td>
    2626        </tr>
    27       </tal:block>
    28       <tr tal:condition="python:not len(items)">
    29         <td>
    30           no Items yet !
    31         </td>
    32       </tr>
    3327    </table>
     28    </tal:block>
     29    <ul>
     30      <li>  <a href="" tal:attributes="href string:${context/absolute_url}/JAMB">Clearence Form Processing</a></li>
     31      <li>  <a href="" tal:attributes="href string:${context/absolute_url}/PERSONAL">Personal Data Form</a></li>
     32    </ul>
    3433  </metal:block>
    3534  <metal:block fill-slot="sub">
Note: See TracChangeset for help on using the changeset viewer.