source: WAeUP_SRP/trunk/skins/waeup_academics/academics_contents.pt @ 370

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

allow entering and changing of ID's,

M profiles/default/vocabularies/courselevel.xml
A profiles/default/schemas/student_study_course.xml
M profiles/default/schemas/faculty.xml
M profiles/default/workflows.xml
M profiles/default/layouts/certificate.xml
M profiles/default/layouts/waeup_common.xml
A profiles/default/layouts/student_study_course.xml
M profiles/default/layouts/study_level.xml
M profiles/default/layouts/course.xml
M profiles/default/layouts/department.xml
M profiles/default/layouts/faculty.xml
M profiles/default/types/Certificate.xml
M profiles/default/types/Semester.xml
A profiles/default/types/StudentStudyCourse.xml
M profiles/default/types/StudyLevel.xml
M profiles/default/types/Course.xml
M profiles/default/types/CertificatesFolder.xml
M profiles/default/types/CertificateCourse.xml
M profiles/default/types/AcademicsFolder.xml
M profiles/default/types/Faculty.xml
M profiles/default/types/CoursesFolder.xml
A skins/waeup_default/id_rename_form.pt
A skins/waeup_default/id_rename.py
A skins/waeup_default/waeup_document_create_do.py
M skins/waeup_academics/academics_contents_display_buttons.py
M skins/waeup_academics/academics_contents.pt
M Academics.py

File size: 4.3 KB
Line 
1<metal:html tal:define="display_change request/change_display|nothing;
2                        params here/getDisplayParams;
3                        sort_by params/sort_by;
4                        direction params/direction;
5                        format string:detail_tab;
6                        displayed python:request.get('displayed', None);
7                        display_buttons context/academics_contents_display_buttons;
8                       ">
9
10<metal:body use-macro="here/content_lib_master/macros/master">
11
12<metal:header metal:fill-slot="header">
13  <h3 tal:content="here/LongTitle|here/title_or_id">
14    Page Title
15  </h3>
16  <div tal:condition="nothing" id="bylineFolder"
17    class="ddefault">
18    <small>
19      <span metal:use-macro="here/content_lib_byline/macros/byline">By Me</span>
20    </small>
21  </div>
22  <a href="" accesskey="V"
23     style="display:none"
24     tal:attributes="href string:${context_url}/"></a>
25  <a href="" accesskey="N"
26     style="display:none"
27     tal:attributes="href string:${context_url}/folder_factories"></a>
28</metal:header>
29
30<metal:main fill-slot="javascript_head_slot">
31  <tal:block tal:replace="nothing">
32    XXX Deactivated for CPS 3.4.0, will be re-enabled for 3.4.1
33    <script type="text/javascript" src="prototype.js"
34      tal:attributes="src string:${base_url}prototype.js"></script>
35    <script type="text/javascript" src="effects.js"
36      tal:attributes="src string:${base_url}effects.js"></script>
37    <script type="text/javascript" src="dragdrop.js"
38      tal:attributes="src string:${base_url}dragdrop.js"></script>
39    <script type="text/javascript" src="cpsdefault.js"
40      tal:attributes="src string:${base_url}cpsdefault.js"></script>
41  </tal:block>
42</metal:main>
43
44<metal:main fill-slot="main"
45  tal:define="list_here python:checkPerm('List folder contents', here);">
46  <div tal:condition="not: list_here"
47    tal:define="response request/RESPONSE;url here_url;">
48    <span tal:define="redirect python: response.redirect(url)"></span>
49  </div>
50    <span tal:omit-tag="" tal:condition="python:display_buttons or (context.portal_type in ('Certificate',))"
51          tal:content="structure doc/render" />
52
53  <form action="" method="post" class="group"
54        tal:attributes="action here_url"
55        tal:define="no_form python:not checkPerm('Modify portal content', here);
56
57                    nav_action string:folder_contents;
58                    items python:here.getFolderContents(displayed=displayed);">
59
60    <metal:block use-macro="here/academics_content_lib_display_contents/macros/display_contents" />
61
62    <table width="100%" cellspacing="0" cellpadding="2"
63      summary="contents of the folder"
64      class="folderButtons"
65      tal:define="can_add python:checkPerm('Add portal content', here);
66                  can_del python:checkPerm('Delete objects', here);
67                  ">
68      <tr>
69        <td align="left" valign="top" rowspan="3"></td>
70        <td align="left" valign="top">
71          <span tal:condition="display_buttons">
72          <span tal:condition="can_del">
73            <input type="button" value="button_select_all" class="context"
74                   onclick="someJavaScriptFunctionThatWillBeReplaced"
75                   i18n:attributes="value"
76                   tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')'
77                                   % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))" />
78            <span tal:omit-tag="" tal:condition="python: context.portal_type != 'Certificate'">
79              <input type="submit" name="approve_checked:method"
80              class="context" value="Approve" />
81            <input type="submit" name="retract_checked:method"
82              class="context" value="Retract" />
83            </span>
84              <input type="submit" name="folder_delete:method" value="button_delete"
85              class="destructive" i18n:attributes="value"
86              tal:attributes="onclick python:'return window.confirm(\'%s\')' %
87              (cpsmcat('description_confirm_delete'), )" />
88            <input type="submit" name="id_rename_form:method"
89              class="context" value="button_rename" i18n:attributes="value" />
90          </span>
91          </span>
92        </td>
93      </tr>
94    </table>
95  </form>
96</metal:main>
97
98<metal:sub fill-slot="sub"/>
99
100</metal:body>
101</metal:html>
Note: See TracBrowser for help on using the repository browser.