]> wagnertech.de Git - mfinanz.git/blob - templates/design40_webpages/requirement_spec_version/_form.html
date error in mapping
[mfinanz.git] / templates / design40_webpages / requirement_spec_version / _form.html
1 [% USE LxERP %]
2 [% USE L %]
3
4 [% DEFAULT id_prefix = 'edit_version_form'
5             submit_as = 'post'
6 %]
7
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') %]
11
12   <table class="rs_input_field">
13     <tr>
14       <td>[% LxERP.t8("Version") %]</td>
15       <td>[% SELF.requirement_spec.next_version_number %]</td>
16     </tr>
17     <tr>
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>
20     </tr>
21     <tr>
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>
24     </tr>
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="$('#jqueryui_popup_dialog').dialog('close');" class="button neutral">[% LxERP.t8("Cancel") %]</a>
34     [% END %]
35   </p>
36 </form>
37
38 <script type="text/javascript">
39   $(function() {
40     $('#[% id_prefix %]_description').focus();
41   });
42 </script>