1 [%- USE LxERP -%][%- USE L -%]
2 [%- DEFAULT id_prefix = 'edit_version_form'
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') %]
9 <table class="rs_input_field">
11 <td>[% LxERP.t8("Version") %]</td>
12 <td>[% SELF.requirement_spec.next_version_number %]</td>
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>
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>
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>
32 [% L.ajax_submit_tag("controller.pl?action=RequirementSpecVersion/create", "#" _ id_prefix, LxERP.t8("Save")) %]
33 <a href="#" onclick="$('#jqueryui_popup_dialog').dialog('close');">[% LxERP.t8("Cancel") %]</a>
38 <script type="text/javascript">
41 $('#[% id_prefix %]_description').focus();