4 [% DEFAULT id_prefix = 'edit_version_form'
8 <form method="post" action="controller.pl" id="[% id_prefix %]">
9 [% L.hidden_tag("requirement_spec_id", SELF.requirement_spec.id, id=id_prefix _ '_id') %]
10 [% L.hidden_tag("id", SELF.version.id, id=id_prefix _ '_id') %]
12 <table class="rs_input_field">
14 <td>[% LxERP.t8("Version") %]</td>
15 <td>[% SELF.requirement_spec.next_version_number %]</td>
18 <td>[% LxERP.t8("Description") %]</td>
19 <td>[% L.textarea_tag("rs_version.description", SELF.version.description, cols=80, rows=8, id=id_prefix _ '_description') %]</td>
22 <td>[% LxERP.t8("Internal comment") %]</td>
23 <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');" class="button neutral">[% LxERP.t8("Cancel") %]</a>
38 <script type="text/javascript">
40 $('#[% id_prefix %]_description').focus();