]> src.bluestatic.org Git - bugdar.git/blob - admin/templates/version_edit.html
Switch the 'modify' code of admin/field.php to use templates
[bugdar.git] / admin / templates / version_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'] %> - <%- ($version ? T('Edit Version') : T('Add New Version')) %></title>
6 </head>
7
8 <body>
9
10 <%- $templates['nav'] %>
11
12 <div id="title"><%- ($version ? T('Edit Version') : T('Add New Version')) %></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="<%- ($version ? 'updateversion' : 'insertversion') %>" />
20 <% if ($version): %><input type="hidden" name="versionid" value="<%- $version['versionid'] %>" /><% endif %>
21 <% if (!$version): %><input type="hidden" name="productid" value="<%- $product['productid'] %>" /><% endif %>
22
23 <fieldset>
24 <legend><%- ($version ? T('Edit Version') : T('Add New Version')) %></legend>
25
26 <dl>
27
28 <% if (!$version): %>
29 <dt><label><%- T('Version for Product') %></label></dt>
30 <dd><%- $product['title'] %></dd>
31 <% endif %>
32
33 <dt>
34 <label for="version">
35 <%- T('Version Number') %>
36 <dfn><%- T('This is the version string for this product.') %></dfn>
37 </label>
38 </dt>
39 <dd><input type="text" name="version" value="<%- $version['version'] %>" id="version" /></dd>
40
41 <dt>
42 <label for="displayorder">
43 <%- T('Display Order') %>
44 <dfn><%- T('The order in which the versions are displayed.') %></dfn>
45 </label>
46 </dt>
47 <dd><input type="text" name="displayorder" value="<%- $version['displayorder'] %>" id="displayorder" /></dd>
48
49 <dt>
50 <label for="obsolete">
51 <%- T('Obsolete') %>
52 <dfn><%- T('An obsolete version cannot have new bugs filed against it, but existing ones can be set to it.') %></dfn>
53 </label>
54 </dt>
55 <dd><%- BSDecorator::yesno('obsolete', $version['obsolete']) %></dd>
56
57 </dl>
58 </fieldset>
59
60 <div class="submit">
61 <input type="submit" value="<%- T('Save') %>" />
62 <input type="reset" value="<%- T('Reset') %>" />
63 <% if ($version): %><a href="product.php?do=deleteversion&amp;versionid=<%- $version['versionid'] %>" class="button"><%- T('Delete') %></a><% endif %>
64 </div>
65
66 <%- admin_footer() %>
67
68 </div>
69
70 </body>
71
72 <script type="text/javascript"> nav_init("fields", "fields_product"); </script>
73
74 </body>
75
76 </html>