]> src.bluestatic.org Git - bugdar.git/blob - admin/templates/product_edit.html
Switch the 'modify' code of admin/field.php to use templates
[bugdar.git] / admin / templates / product_edit.html
1 <%- $templates['doctype'] %>
2 <html xmlns="http://www.w3.org/1999/xhtml" lang="<%- $stylevar['lang'] %>" xml:lang="<%- $stylevar['lang'] %>" dir="<%- $stylevar['lang_dir'] %>">
3 <head>
4 <%- $templates['headinclude'] %>
5 <title><%- $templates['title'] %> - <%- T('Manage Products') %></title>
6 </head>
7
8 <body>
9
10 <%- $templates['nav'] %>
11
12 <div id="title"><%- T('Manage Products') %></div>
13
14 <div id="body">
15
16 <%- admin_flash() %>
17
18 <form action="product.php" method="post">
19 <input type="hidden" name="do" value="<%- ($product ? 'updateproduct' : 'insertproduct') %>" />
20 <% if ($product): %><input type="hidden" name="productid" value="<%- $product['productid'] %>" /><% endif %>
21 <% if (!$product): %><input type="hidden" name="parentid" value="<%- $parent['productid'] %>" /><% endif %>
22
23 <fieldset>
24 <legend><%- ($product ? T('Edit Product') : T('Add New Product')) %></legend>
25
26 <dl>
27
28 <% if ($parent): %>
29 <dt><label><%- T('Component for Product') %></label></dt>
30 <dd><%- $parent['title'] %></dd>
31 <% endif %>
32
33 <dt><label for="l_title"><%- T('Title') %></label></dt>
34 <dd><input type="text" name="title" value="<%- $product['title'] %>" id="l_title" /></dd>
35
36 <dt>
37 <label for="description">
38 <%- T('Description') %>
39 <dfn><%- T('A short description of this product.') %></dfn>
40 </label>
41 </dt>
42 <dd><textarea name="description" id="description"><%- $product['description'] %></textarea></dd>
43
44 <dt>
45 <label for="displayorder">
46 <%- T('Display Order') %>
47 <dfn><%- T('The order in which the products are displayed.') %></dfn>
48 </label>
49 </dt>
50 <dd><input type="text" name="displayorder" value="<%- $product['displayorder'] %>" id="displayorder" /></dd>
51
52 </dl>
53 </fieldset>
54
55 <div class="submit">
56 <input type="submit" value="<%- T('Save') %>" />
57 <input type="reset" value="<%- T('Reset') %>" />
58 <% if ($product): %><a href="product.php?do=deleteproduct&amp;productid=<%- $product['versionid'] %>" class="button"><%- T('Delete') %></a><% endif %>
59 </div>
60
61 <%- admin_footer() %>
62
63 </div>
64
65 </body>
66
67 <script type="text/javascript"> nav_init("fields", "fields_product"); </script>
68
69 </body>
70
71 </html>