source: WAeUP_SRP/base/skins/waeup_upload/uploads_form.pt @ 3283

Last change on this file since 3283 was 3283, checked in by joachim, 17 years ago
  1. show --- as default, and dont edit when set
  2. show full filename
  3. check if upload-object exists, display error message, at the moment the
  • Property svn:keywords set to Id
File size: 4.9 KB
Line 
1<metal:html tal:define="info options/info;
2            portal_status_message options/psm;
3            ds options/ds;
4            mode options/mode;
5            rendered options/rendered;"
6            >
7  <metal:body use-macro="here/main_template/macros/master">
8    <metal:block fill-slot="header">
9      <a href=""
10         tal:attributes="href string:${here/academicsParent}">
11        <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/>
12        Up one level
13      </a>
14      <h3 tal:content="here/title_or_id" />
15      <div tal:condition="python:0" tal:content="info/container_path"/>
16      <br />
17    </metal:block>
18    <metal:main fill-slot="main">
19      <form action="" method="post" enctype="multipart/form-data" class="group">
20        <span tal:replace="structure rendered" />
21        <input type="submit" name="upload" value="upload"
22               class="destructive" />
23      </form>
24      <form action="" method="post" class="group"
25            tal:attributes="action info/action"
26            tal:define="rows python: info['items'];"
27            >
28        <table tal:condition="python: 1" class="contentListing" width="100%" summary="content layout" id="folder_content">     
29          <tr>
30            <th></th>
31            <th>Filename</th>
32            <th>Schema</th>
33            <th>Uploaded by</th>
34            <th>Upload Date</th>
35            <th>Message</th>
36            <th>Invalid Keys</th>
37          </tr>           
38          <tr tal:repeat="row rows"
39            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
40            <td align="left" valign="middle" style="width: 5px;">
41              <input type="checkbox" name="ids:list" value="" id="" class="noborder"
42                     tal:define="id string:${row/id}.csv"
43                     tal:attributes="value id;
44                     id python:'cb_' + id;
45                     checked python:id in info['choosen_ids'];"
46                     />
47            </td>
48            <td tal:condition="nothing"> <a href="view" tal:attributes="href string:${row/url}"> <span tal:content="row/id" /></a>  </td>
49            <td tal:content="string:${row/id}.csv" ></td>
50            <td>
51              <select name="import_layout:record" tal:attributes="name string:${row/id}.import_layout:record">
52                <option tal:repeat="option python: context.portal_vocabularies.import_names.items()"
53                        tal:attributes="value python: option[0];
54                        selected python: option[0] == row['import_layout']"
55                        tal:content="python:option[1]" />
56              </select>
57            </td>
58            <td tal:content="row/uploaded_by" ></td>
59            <td tal:content="row/upload_date" ></td>
60            <td tal:content="row/msg" ></td>
61            <td>
62              <span tal:repeat="key row/invalid_keys">
63                <span tal:replace="key" />
64                <select tal:attributes="name string:${row/id}|${key}.valid_key:record">
65                  <option tal:repeat="new row/valid_keys"
66                          tal:attributes="value new"
67                          tal:content="new" />
68                </select>
69              </span>
70            </td>
71            <td tal:condition="python:0">
72            <a href="edit" tal:attributes="href string:${row/url}/external_edit_form"
73                target="edit"
74                onclick="javascript:window.open('','edit','width=600, height=700, directories=no, toolbar=no, location=no, menubar=no, scrollbars=yes, status=no, resizable=no, dependent=no')">
75                [edit]
76                </a>
77            </td>
78
79          </tr>
80        </table>
81        <table width="100%" cellspacing="0" cellpadding="2"
82               summary="contents of the folder"
83               class="folderButtons">
84          <tr>
85            <td align="left" valign="top" rowspan="3"></td>
86            <td align="left" valign="top">
87                <input tal:condition="nothing" type="button" value="button_select_all" class="context"
88                       onclick="someJavaScriptFunctionThatWillBeReplaced"
89                       i18n:attributes="value"
90                       tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')'
91                       % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))"
92                       />
93                <input type="submit" name="edit" value="edit"
94                       class="destructive" i18n:attributes="value"
95                       />
96                <input type="submit" name="folder_delete:method" value="button_delete"
97                       class="destructive" i18n:attributes="value"
98                       tal:attributes="onclick python:'return window.confirm(\'%s\')' %
99                       (cpsmcat('description_confirm_delete'), )"
100                       />
101            </td>
102          </tr>
103        </table>
104      </form>
105    </metal:main>
106   
107    <metal:sub fill-slot="sub"/>
108  </metal:body>
109</metal:html>
Note: See TracBrowser for help on using the repository browser.