source: products/qPloneDropDownMenu/branches/0.2/www/editMenuItems.zpt @ 1

Last change on this file since 1 was 1, checked in by myroslav, 18 years ago

Building directory structure

File size: 4.7 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
2<html>
3<head>
4<title>Zope</title>
5<link rel="stylesheet" type="text/css" href="/manage_page_style.css">
6
7<style type="text/css">
8
9div.menuitemform{
10    width: 45%;
11    float: left;
12}
13
14form {
15    margin-bottom: 2em;
16}
17
18label, input {
19    font-size: 80%;
20    font-family: sans-serif;
21    float: left;
22}
23
24legend input {
25    float: none;
26}
27
28label {
29    width: 11em;
30    text-align: right;
31    padding: 0.2em 0.4em;
32    font-weight: bold;
33    clear: left;
34}
35
36
37fieldset {
38    margin: 0.2em;
39    border: 1px solid black;
40    margin-bottom: 0.5em;
41    padding-bottom: 0;
42    clear: both;
43}
44
45legend {
46    font-size: 90%;
47}
48
49</style>
50
51</head>
52
53<body bgcolor="#ffffff" link="#000099" alink="#000099" vlink="#000099">
54
55<div tal:replace="structure here/manage_page_header" />
56<div tal:replace="structure here/manage_tabs" />
57<div id="submenuBreadcrumbs"
58     tal:define="dummy here/generateSubMenuMapping">
59<div tal:omit-tag="" i18n:translate="">Location:
60    <a href=""
61       tal:attributes="href string:${here/portal_url}/portal_dropdownmenu/manage_workspace">Root Menu</a>
62    </div> &nbsp;
63    <tal:block repeat="breadcrumb python:context.getBreadcrumbs(request.get('submenu_path'))">
64        &rArr;
65        <a href=""
66        tal:content="string:${breadcrumb/title}"
67        tal:attributes="href string:${breadcrumb/url}"
68        tal:omit-tag="repeat/breadcrumb/end">Breadcrumb Item</a>
69    </tal:block>
70</div>
71
72<div style="font-size: 160%;  font-weight: bold"
73     tal:content="string:Edit subMenu">
74    Edit subMenu
75</div>
76
77<form action="manage_saveMenuItems"
78      tal:define="submenu_path request/submenu_path;
79                  submenu python:here.getSubMenuByPath(submenu_path)"
80      tal:attributes="action python:here.absolute_url()+'/manage_saveMenuItems'"
81      method="post">
82    <div id='list'>
83        <tal:fieldset tal:condition="submenu"
84                      repeat="menuitem submenu">
85          <fieldset tal:define="index repeat/menuitem/index">
86            <legend>
87                <a href="#"
88                   title="Move up"
89                   tal:attributes="href string:manage_moveMenuItemUp?submenu_path=${submenu_path}/${index};"
90                   tal:condition="not:repeat/menuitem/start">
91                    &uArr;
92                </a>
93                <a href="#"
94                   title="Move down"
95                   tal:attributes="href string:manage_moveMenuItemDown?submenu_path=${submenu_path}/${index};"
96                   tal:condition="not:repeat/menuitem/end">
97                    &dArr;
98                </a>
99                <a href="#"
100                   title="Remove"
101                   style="color: blue;"
102                   tal:attributes="href string:manage_removeMenuItem?submenu_path=${submenu_path}/${index};">
103                    DELETE
104                </a>
105            </legend>
106            <div id="menuitemform1" class="menuitemform">
107                <label>Title</label>
108                <input type="text" name="menuitems.title:records"
109                       tal:attributes="value menuitem/getTitle" />
110                <label>URL</label>
111                <input type="text" name="menuitems.url:records"
112                       tal:attributes="value menuitem/getUrl" />
113            </div>
114            <div id="menuitemform2" class="menuitemform">
115                    <a href="editMenuItems?submenu_path=Path"
116                       tal:attributes="href string:manage_editMenuItems?submenu_path=${submenu_path}/${index}">
117                        Edit subMenu
118                    </a>
119            </div>
120            <div style="clear: both;">&nbsp;</div>
121          </fieldset>
122        </tal:fieldset>
123    </div>
124    <input type="hidden" name="submenu_path"
125           tal:attributes="value submenu_path" />
126    <input type="submit" i18n:attributes="value" value="Save"
127           tal:condition="submenu" />
128</form>
129
130<hr>
131
132<form action="manage_addMenuItem"
133      tal:define="submenu_path request/submenu_path"
134      tal:attributes="action python:here.absolute_url()+'/manage_addMenuItem'"
135      method="post">
136          <div tal:define="submenu_path request/submenu_path">
137              <input type="hidden" name="submenu_path"
138                     tal:attributes="value submenu_path" />
139          </div>
140          <h3>Add a new MenuItem</h3>
141          <div>
142              <label>Title</label>
143              <input type="text" name="title" size="26" />
144          </div>
145          <div>
146              <label>URL</label>
147              <input type="text" name="url" size="26" />
148          </div>
149          <div>
150              <input type="submit" i18n:attributes="value" value="Add" />
151          </div>
152</form>
153
154<div tal:replace="structure here/manage_page_footer" />
155
156</body>
157</html>
Note: See TracBrowser for help on using the repository browser.