Revision c3c66c0a
Von Hans P. Schlaepfer vor fast 5 Jahren hinzugefügt
templates/webpages/requirement_spec/_new_project_form.html | ||
---|---|---|
1 |
<form method="post" action="controller.pl" id="[% id_prefix %]"[% UNLESS submit_as == 'post' %] class="edit-project-link-context-menu"[% END %]> |
|
2 |
<h2>[% LxERP.t8("Edit project link") %]: [% LxERP.t8("Create a new project") %]</h2> |
|
3 |
|
|
4 |
[% L.hidden_tag("id", SELF.requirement_spec.id, id=id_prefix _ "_id") %] |
|
5 |
[% L.hidden_tag("project_link_action", "create", id=id_prefix _ "_project_link_action") %] |
|
6 | 1 |
[% USE LxERP %] |
7 | 2 |
[% USE L %] |
8 | 3 |
[% SET id_prefix = "project_link_form" %] |
9 |
[% style = "width:300px;" %] |
|
4 |
[% style = "width:300px;" %]
|
|
10 | 5 |
|
11 |
<table class="rs_input_field"> |
|
12 |
<tr> |
|
13 |
<td>[% LxERP.t8("Project Number") %]</td> |
|
14 |
<td>[% L.input_tag("project.projectnumber", "", id=id_prefix _ "_projectnumber", style=style) %]</td> |
|
15 |
</tr> |
|
16 |
|
|
17 |
<tr> |
|
18 |
<td>[% LxERP.t8("Description") %]</td> |
|
19 |
<td>[% L.input_tag("project.description", SELF.requirement_spec.title, id=id_prefix _ "_description", style=style) %]</td> |
|
20 |
</tr> |
|
6 |
<form method="post" action="controller.pl" id="[% id_prefix %]"[% UNLESS submit_as == 'post' %] class="edit-project-link-context-menu"[% END %]> |
|
21 | 7 |
|
22 |
<tr> |
|
23 |
<td>[% LxERP.t8("Project Type") %]</td> |
|
24 |
<td>[% L.select_tag("project.project_type_id", SELF.project_types, default=SELF.default_project_type.id, title_key="description", id=id_prefix _ "_project_type_id", style=style) %]</td> |
|
25 |
</tr> |
|
26 | 8 |
|
27 |
<tr> |
|
28 |
<td>[% LxERP.t8("Project Status") %]</td> |
|
29 |
<td>[% L.select_tag("project.project_status_id", SELF.project_statuses, default=SELF.default_project_status.id, title_key="description", id=id_prefix _ "_project_status_id", style=style) %]</td> |
|
30 |
</tr> |
|
9 |
[% L.hidden_tag("id", SELF.requirement_spec.id, id=id_prefix _ "_id") %] |
|
10 |
[% L.hidden_tag("project_link_action", "create", id=id_prefix _ "_project_link_action") %] |
|
31 | 11 |
|
32 |
<tr> |
|
33 |
<td>[% LxERP.t8("Customer") %]</td> |
|
34 |
<td>[% L.select_tag("project.customer_id", SELF.customers, default=SELF.requirement_spec.customer_id, title_key="name", with_empty=1, id=id_prefix _ "_customer_id", style=style) %]</td> |
|
35 |
</tr> |
|
36 |
</table> |
|
12 |
<table class="tbl-horizontal rs_input_field"> |
|
13 |
<caption>[% LxERP.t8("Edit project link") %]: [% LxERP.t8("Create a new project") %]</caption> |
|
14 |
<tbody> |
|
15 |
<tr> |
|
16 |
<th>[% LxERP.t8("Project Number") %]</th> |
|
17 |
<td>[% L.input_tag("project.projectnumber", "", id=id_prefix _ "_projectnumber", style=style) %]</td> |
|
18 |
</tr> |
|
19 |
<tr> |
|
20 |
<th>[% LxERP.t8("Description") %]</th> |
|
21 |
<td>[% L.input_tag("project.description", SELF.requirement_spec.title, id=id_prefix _ "_description", style=style) %]</td> |
|
22 |
</tr> |
|
23 |
<tr> |
|
24 |
<th>[% LxERP.t8("Project Type") %]</th> |
|
25 |
<td>[% L.select_tag("project.project_type_id", SELF.project_types, default=SELF.default_project_type.id, title_key="description", id=id_prefix _ "_project_type_id", style=style) %]</td> |
|
26 |
</tr> |
|
27 |
<tr> |
|
28 |
<th>[% LxERP.t8("Project Status") %]</th> |
|
29 |
<td>[% L.select_tag("project.project_status_id", SELF.project_statuses, default=SELF.default_project_status.id, title_key="description", id=id_prefix _ "_project_status_id", style=style) %]</td> |
|
30 |
</tr> |
|
31 |
<tr> |
|
32 |
<th>[% LxERP.t8("Customer") %]</th> |
|
33 |
<td>[% L.select_tag("project.customer_id", SELF.customers, default=SELF.requirement_spec.customer_id, title_key="name", with_empty=1, id=id_prefix _ "_customer_id", style=style) %]</td> |
|
34 |
</tr> |
|
35 |
</tbody> |
|
36 |
</table> |
|
37 | 37 |
|
38 |
<p>
|
|
38 |
<div class="buttons">
|
|
39 | 39 |
[% L.ajax_submit_tag("controller.pl?action=RequirementSpec/update_project_link", "#" _ id_prefix, LxERP.t8("Save"), id=id_prefix _ '_submit') %] |
40 | 40 |
<script type="text/javascript"><!-- |
41 | 41 |
$(function() { |
42 | 42 |
$("#[% id_prefix %] INPUT[type=text]").keydown(function(event) { |
43 | 43 |
if(event.keyCode == 13) { |
44 | 44 |
event.preventDefault(); |
45 |
$('#[% id_prefix %]_submit').click();
|
|
45 |
$("#[% id_prefix %]_submit").click();
|
|
46 | 46 |
return false; |
47 | 47 |
} |
48 | 48 |
}); |
49 | 49 |
}); |
50 | 50 |
--></script> |
51 |
</p>
|
|
51 |
</div>
|
|
52 | 52 |
</form> |
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/requirement_spec/_new_project_form.html