Revision a1a4c993
Von Hans P. Schlaepfer vor etwa 4 Jahren hinzugefügt
templates/webpages/requirement_spec/_project_link_form.html | ||
---|---|---|
3 | 3 |
[% SET id_prefix = "project_link_form" %] |
4 | 4 |
|
5 | 5 |
<form method="post" action="controller.pl" id="[% id_prefix %]"[% UNLESS submit_as == 'post' %] class="edit-project-link-context-menu"[% END %]> |
6 |
<h2>[% LxERP.t8("Edit project link") %]</h2> |
|
7 | 6 |
|
8 |
[% L.hidden_tag("id", SELF.requirement_spec.id, id=id_prefix _ "_id") %]
|
|
7 |
<h2>[% LxERP.t8("Edit project link") %]</h2>
|
|
9 | 8 |
|
10 |
[% IF !SELF.requirement_spec.project_id %] |
|
11 |
<p>[% LxERP.t8("This requirement spec is currently not linked to a project.") %]</p> |
|
9 |
[% L.hidden_tag("id", SELF.requirement_spec.id, id=id_prefix _ "_id") %] |
|
12 | 10 |
|
13 |
[% ELSE %] |
|
11 |
[% IF !SELF.requirement_spec.project_id %] |
|
12 |
<p>[% LxERP.t8("This requirement spec is currently not linked to a project.") %]</p> |
|
13 |
[% ELSE %] |
|
14 | 14 |
<p>[% LxERP.t8("This requirement spec is currently linked to the following project:") %]</p> |
15 | 15 |
[% INCLUDE "requirement_spec/_project_link_details.html" requirement_spec=SELF.requirement_spec %] |
16 |
[% END %] |
|
16 |
[% END %] |
|
17 |
|
|
17 | 18 |
|
18 |
<table> |
|
19 |
<tr><td colspan="2">[% L.radio_button_tag("project_link_action", id=id_prefix _ "_project_link_action_keep", value="keep", label=LxERP.t8("Keep the project link the way it is."), checked="1") %]</td></tr> |
|
19 |
<table class="test"> |
|
20 |
<tr> |
|
21 |
<td colspan="2"> [% L.radio_button_tag("project_link_action", id=id_prefix _ "_project_link_action_keep", value="keep", label=LxERP.t8("Keep the project link the way it is."), checked="1") %] </td> |
|
22 |
</tr> |
|
20 | 23 |
[% IF SELF.requirement_spec.project_id %] |
21 |
<tr><td colspan="2">[% L.radio_button_tag("project_link_action", id=id_prefix _ "_project_link_action_none", value="none", label=LxERP.t8("Do not link to a project.")) %]</td></tr> |
|
24 |
<tr> |
|
25 |
<td colspan="2"> [% L.radio_button_tag("project_link_action", id=id_prefix _ "_project_link_action_none", value="none", label=LxERP.t8("Do not link to a project.")) %] </td> |
|
26 |
</tr> |
|
22 | 27 |
[% END %] |
23 |
<tr><td colspan="2">[% L.radio_button_tag("project_link_action", id=id_prefix _ "_project_link_action_new", value="new", label=LxERP.t8("Create a new project and link to it.")) %]</td></tr> |
|
24 | 28 |
<tr> |
25 |
<td>[% L.radio_button_tag("project_link_action", id=id_prefix _ "_project_link_action_existing", value="existing", label=LxERP.t8("Link to the following project:")) %]</td> |
|
26 |
<td>[% L.select_tag("new_project_id", SELF.projects, id=id_prefix _ "_new_project_id", title_key="full_description", disabled="true") %]</td> |
|
29 |
<td colspan="2"> [% L.radio_button_tag("project_link_action", id=id_prefix _ "_project_link_action_new", value="new", label=LxERP.t8("Create a new project and link to it.")) %] </td> |
|
30 |
</tr> |
|
31 |
<tr> |
|
32 |
<td> [% L.radio_button_tag("project_link_action", id=id_prefix _ "_project_link_action_existing", value="existing", label=LxERP.t8("Link to the following project:")) %] </td> |
|
33 |
<td> [% L.select_tag("new_project_id", SELF.projects, id=id_prefix _ "_new_project_id", title_key="full_description", disabled="true") %] </td> |
|
27 | 34 |
</tr> |
28 |
</table>
|
|
35 |
</table> |
|
29 | 36 |
|
30 |
<p>
|
|
37 |
<div class="buttons">
|
|
31 | 38 |
[% L.ajax_submit_tag("controller.pl?action=RequirementSpec/update_project_link", "#" _ id_prefix, LxERP.t8("Save"), id=id_prefix _ "_submit") %] |
32 | 39 |
<script type="text/javascript"><!-- |
33 | 40 |
$(function() { |
... | ... | |
44 | 51 |
}); |
45 | 52 |
}); |
46 | 53 |
--></script> |
47 |
</p>
|
|
54 |
</div>
|
|
48 | 55 |
</form> |
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/requirement_spec/_project_link_form.html