Ignore:
Timestamp:
20 Oct 2005, 12:11:00 (19 years ago)
Author:
joachim
Message:

=jamb views added

Location:
waeup_product/trunk/skins/waeup_student
Files:
3 copied

Legend:

Unmodified
Added
Removed
  • waeup_product/trunk/skins/waeup_student/jamb_index_html.py

    r48 r66  
    88#return context.student_view_manager()
    99if 'StudentManager' in member.getGroups():
    10     return context.student_view_manager()
     10    return context.jamb_view_manager()
    1111elif 'Students' in member.getGroups():
    12     return context.student_view_student()
     12    return context.jamb_view_student()
  • waeup_product/trunk/skins/waeup_student/jamb_view_manager.pt

    r48 r66  
    1 <html metal:use-macro="here/content_lib_master/macros/master">
    2 
    3 <metal:block fill-slot="head_slot">
    4   <tal:block tal:define="student here/getContent">
    5   </tal:block>
    6 </metal:block>
     1<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>
    75
    86  <metal:block fill-slot="css_slot">
    97    <link rel="Stylesheet" type="text/css" href=""
    10           tal:attributes="href string:${base_url}student.css" />
    11   </metal:block>
    12   <metal:block fill-slot="header">
     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" />
    1311  </metal:block>
    1412
    15 <metal:block fill-slot="main"
    16              tal:define="items here/contentValues"
    17              >
    18     <h2>Data for Student <span tal:content="context/id" /></h2>
    19     <table cellspacing="0" cellpadding="0">
    20       <tal:block condition="python: len(items)">
    21         <tr tal:repeat="item items">
    22           <td colspan="1">
    23             <a href="jamb"
    24                tal:attributes="href item/absolute_url"
    25                tal:content="item/title_or_id"></a>
    26           </td>
    27         </tr>
     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" />
    2823      </tal:block>
    29       <tr tal:condition="python:not len(items)">
    30         <td>
    31           no Items yet !
    32         </td>
    33       </tr>
    34     </table>
     24    </tal:block>
     25
    3526  </metal:block>
    3627  <metal:block fill-slot="sub">
    3728  </metal:block>
    38 </html>
     29
     30</metal:block>
     31</metal:block>
  • waeup_product/trunk/skins/waeup_student/jamb_view_student.pt

    r48 r66  
    1 <html metal:use-macro="here/content_lib_master/macros/master">
    2 
    3 <metal:block fill-slot="head_slot">
    4   <tal:block tal:define="student here/getContent">
    5   </tal:block>
    6 </metal:block>
    7 
    8 <metal:block fill-slot="css_slot">
    9   <link rel="Stylesheet" type="text/css" href=""
    10     tal:attributes="href string:${base_url}student.css" />
    11 </metal:block>
     1<metal:block define-macro="view">
     2<metal:block use-macro="here/content_lib_master/macros/master">
    123  <metal:block fill-slot="header">
    134  </metal:block>
    14   <metal:block fill-slot="main"
    15                tal:define="student here/getContent;
    16                items here/contentValues"
    17                >
    18     <table cellspacing="0" cellpadding="0">
    19       <tal:block condition="python: len(items)">
    20         <tr tal:repeat="item items">
    21           <td colspan="1">
    22             <a href="jamb"
    23                tal:attributes="href item/absolute_url"
    24                tal:content="item/title_or_id"></a>
    25           </td>
    26         </tr>
     5
     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" />
    2723      </tal:block>
    28       <tr tal:condition="python:not len(items)">
    29         <td>
    30           no Items yet !
    31         </td>
    32       </tr>
    33     </table>
     24    </tal:block>
     25
    3426  </metal:block>
    3527  <metal:block fill-slot="sub">
    3628  </metal:block>
    37 </html>
     29
     30</metal:block>
     31</metal:block>
Note: See TracChangeset for help on using the changeset viewer.