source: WAeUP_SRP/trunk/skins/waeup_academics/faculty_index_view.pt @ 552

Last change on this file since 552 was 551, checked in by joachim, 18 years ago

added CourseId? widget
made adding in Academics Section work again

File size: 3.7 KB
Line 
1<metal:html tal:define="info context/getDepartmentsInfo;
2            is_manager info/is_manager|nothing;"
3            >
4  <metal:body use-macro="here/waeup_content_master/macros/master">
5    <metal:block fill-slot="header">
6      <a href=""
7         tal:attributes="href string:${here/academicsParent}">
8        <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/>
9        Up one level
10      </a>
11      <h1 tal:content="here/title_or_id">
12        Page Title
13      </h1>
14      <div tal:condition="python:0" tal:content="info/container_path"/>
15    </metal:block>
16    <metal:main fill-slot="main">
17      <span tal:omit-tag="" 
18            tal:content="structure python: info['doc'].render(layout_mode='view')" />
19     
20      <form action="" method="post" class="group"
21            tal:attributes="action info/action"
22            tal:define="rows python: info['items'];"
23            >
24        <span tal:condition="python: 0" tal:content="structure rows" />
25        <table tal:condition="python: 1" class="contentListing" width="100%" summary="content layout" id="folder_content">     
26          <tr tal:repeat="row rows"
27            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
28            <td align="left" valign="middle" style="width: 5px;"
29                tal:condition="is_manager">
30              <input type="checkbox" name="ids:list" value="" id="" class="noborder"
31                     tal:condition="is_manager"
32                     tal:define="id row/id"
33                     tal:attributes="value id;
34                     id python:'cb_' + id;
35                     checked python:id in info['choosen_ids'];"
36                     />
37            </td>
38            <td><a href="view" tal:attributes="href string:${row/url}">
39              <strong tal:content="row/title" /></a> </td>
40            <td tal:content="row/id"> </td>
41            <td><a href="edit" tal:attributes="href string:${row/url}/cpsdocument_edit_form">[edit]</a></td>
42          </tr>
43        </table>
44        <table width="100%" cellspacing="0" cellpadding="2"
45               summary="contents of the folder"
46               class="folderButtons">
47          <tr>
48            <td align="left" valign="top" rowspan="3"></td>
49            <td align="left" valign="top">
50              <span tal:condition="is_manager">
51                <input type="button" value="button_select_all" class="context"
52                       onclick="someJavaScriptFunctionThatWillBeReplaced"
53                       i18n:attributes="value"
54                       tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')'
55                       % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))"
56                       />
57                <input type="submit" name="approve_checked:method"
58                       class="context" value="Approve" />
59                <input type="submit" name="retract_checked:method"
60                       class="context" value="Retract" />
61                <input type="submit" name="folder_delete:method" value="button_delete"
62                       class="destructive" i18n:attributes="value"
63                       tal:attributes="onclick python:'return window.confirm(\'%s\')' %
64                       (cpsmcat('description_confirm_delete'), )"
65                       />
66                <input tal:condition="python: context.portal_type not in ('Semester','Certificate')"
67                       type="submit" name="id_rename_form:method"
68                       class="context" value="Change Object ID" i18n:attributes="value"
69                       />
70              </span>
71            </td>
72          </tr>
73        </table>
74      </form>
75    </metal:main>
76   
77    <metal:sub fill-slot="sub"/>
78  </metal:body>
79</metal:html>
Note: See TracBrowser for help on using the repository browser.