1 <%- $templates['doctype'] %
>
2 <html xmlns=
"http://www.w3.org/1999/xhtml" lang=
"<%- $stylevar['lang'] %>" xml:
lang=
"<%- $stylevar['lang'] %>" dir=
"<%- $stylevar['lang_dir'] %>">
4 <%- $templates['headinclude'] %
>
5 <title><%- $templates['title'] %
> - <%- ($version ? T('Edit Version') : T('Add New Version')) %
></title>
10 <%- $templates['nav'] %
>
12 <div id=
"title"><%- ($version ? T('Edit Version') : T('Add New Version')) %
></div>
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 %
>
24 <legend><%- ($version ? T('Edit Version') : T('Add New Version')) %
></legend>
29 <dt><label><%- T('Version for Product') %
></label></dt>
30 <dd><%- $product['title'] %
></dd>
35 <%- T('Version Number') %
>
36 <dfn><%- T('This is the version string for this product.') %
></dfn>
39 <dd><input type=
"text" name=
"version" value=
"<%- $version['version'] %>" id=
"version" /></dd>
42 <label for=
"displayorder">
43 <%- T('Display Order') %
>
44 <dfn><%- T('The order in which the versions are displayed.') %
></dfn>
47 <dd><input type=
"text" name=
"displayorder" value=
"<%- $version['displayorder'] %>" id=
"displayorder" /></dd>
50 <label for=
"obsolete">
52 <dfn><%- T('An obsolete version cannot have new bugs filed against it, but existing ones can be set to it.') %
></dfn>
55 <dd><%- BSDecorator::yesno('obsolete', $version['obsolete']) %
></dd>
61 <input type=
"submit" value=
"<%- T('Save') %>" />
62 <input type=
"reset" value=
"<%- T('Reset') %>" />
63 <% if ($version): %
><a href=
"product.php?do=deleteversion&versionid=<%- $version['versionid'] %>" class=
"button"><%- T('Delete') %
></a><% endif %
>
72 <script type=
"text/javascript"> nav_init(
"fields",
"fields_product");
</script>