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

Last change on this file since 3289 was 3285, checked in by Henrik Bettermann, 17 years ago

beautify upload form

  • Property svn:keywords set to Id
File size: 4.5 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        <br />
22        <input type="submit" name="upload" value="Upload"
23               class="destructive" />
24      </form>
25      <form action="" method="post" class="group"
26            tal:attributes="action info/action"
27            tal:define="rows python: info['items'];"
28            >
29        <table tal:condition="python: 1" class="contentListing" width="100%" summary="content layout" id="folder_content">     
30          <tr>
31            <th></th>
32            <th>Filename</th>
33            <th>Data Layout</th>
34            <th>By</th>
35            <th>Date</th>
36            <th>Message</th>
37            <th>Conform Headline</th>
38          </tr>           
39          <tr tal:repeat="row rows"
40            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
41            <td align="left" valign="middle" style="width: 5px;">
42              <input type="checkbox" name="ids:list" value="" id="" class="noborder"
43                     tal:define="id string:${row/id}.csv"
44                     tal:attributes="value id;
45                     id python:'cb_' + id;
46                     checked python:id in info['choosen_ids'];"
47                     />
48            </td>
49            <td tal:condition="nothing"> <a href="view" tal:attributes="href string:${row/url}"> <span tal:content="row/id" /></a>  </td>
50            <td tal:content="string:${row/id}.csv" ></td>
51            <td>
52              <select name="import_layout:record" tal:attributes="name string:${row/id}.import_layout:record">
53                <option tal:repeat="option python: context.portal_vocabularies.import_names.items()"
54                        tal:attributes="value python: option[0];
55                        selected python: option[0] == row['import_layout']"
56                        tal:content="python:option[1]" />
57              </select>
58            </td>
59            <td tal:content="row/uploaded_by" ></td>
60            <td tal:content="row/upload_date" ></td>
61            <td tal:content="row/msg" ></td>
62            <td>
63              <div tal:repeat="key row/invalid_keys">
64                <span tal:replace="key" /><br />
65                <select tal:attributes="name string:${row/id}|${key}.valid_key:record">
66                  <option tal:repeat="new row/valid_keys"
67                          tal:attributes="value new"
68                          tal:content="new" />
69                </select>
70              </div>
71            </td>
72            <td tal:condition="python:0">
73            <a href="edit" tal:attributes="href string:${row/url}/external_edit_form"
74                target="edit"
75                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')">
76                [edit]
77                </a>
78            </td>
79
80          </tr>
81        </table>
82       
83        <br />
84
85        <input tal:condition="nothing" type="button" value="button_select_all" class="context"
86               onclick="someJavaScriptFunctionThatWillBeReplaced"
87               i18n:attributes="value"
88               tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')'
89               % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))"
90               />
91        <input type="submit" name="edit" value="Edit"
92               class="destructive" i18n:attributes="value"
93               />
94        <input type="submit" name="folder_delete:method" value="button_delete"
95               class="destructive" i18n:attributes="value"
96               tal:attributes="onclick python:'return window.confirm(\'%s\')' %
97               (cpsmcat('description_confirm_delete'), )"
98               />
99
100      </form>
101    </metal:main>
102   
103    <metal:sub fill-slot="sub"/>
104  </metal:body>
105</metal:html>
Note: See TracBrowser for help on using the repository browser.