Pflichtenheftversionen anlegen und auflisten
[kivitendo-erp.git] / templates / webpages / requirement_spec_version / _form.html
1 [%- USE LxERP -%][%- USE L -%]
2 [%- DEFAULT id_prefix = 'edit_version_form'
3             submit_as = 'post'
4 %]
5 <form method="post" action="controller.pl" id="[% id_prefix %]">
6  [% L.hidden_tag("requirement_spec_id", SELF.requirement_spec.id, id=id_prefix _ '_id') %]
7  [% L.hidden_tag("id", SELF.version.id, id=id_prefix _ '_id') %]
8
9  <table class="rs_input_field">
10   <tr>
11    <td>[% LxERP.t8("Version") %]</td>
12    <td>[% SELF.requirement_spec.next_version_number %]</td>
13   </tr>
14
15   <tr>
16    <td>[% LxERP.t8("Description") %]</td>
17    <td>[% L.textarea_tag("rs_version.description",  SELF.version.description, cols=80, rows=8, id=id_prefix _ '_description') %]</td>
18   </tr>
19
20   <tr>
21    <td>[% LxERP.t8("Internal comment") %]</td>
22    <td>[% L.textarea_tag("rs_version.comment",  SELF.version.comment, cols=80, rows=8, id=id_prefix _ '_comment') %]</td>
23   </tr>
24
25  </table>
26
27  <p>
28 [%- IF SELF.version.id %]
29   [% L.ajax_submit_tag("controller.pl?action=RequirementSpecVersion/update",  "#" _ id_prefix, LxERP.t8("Save")) %]
30   <a href="[% SELF.url_for(action='list') %]">[%- LxERP.t8("Cancel") %]</a>
31 [%- ELSE %]
32   [% L.ajax_submit_tag("controller.pl?action=RequirementSpecVersion/create",  "#" _ id_prefix, LxERP.t8("Save")) %]
33   <a href="#" onclick="$('.jqmWindow').jqmClose();">[% LxERP.t8("Cancel") %]</a>
34 [%- END %]
35  </p>
36 </form>
37
38 <script type="text/javascript">
39 <!--
40 $(function() {
41   $('#[% id_prefix %]_description').focus();
42 });
43  -->
44 </script>