Pflichtenheft: Projektverknüpfung in Grundeinstellungen anzeigen
[kivitendo-erp.git] / templates / webpages / requirement_spec / _show_basic_settings.html
1 [%- USE HTML -%][%- USE LxERP -%]
2 <div id="basic_settings" class="basic-settings-context-menu">
3  <h2>
4   [% IF SELF.requirement_spec.is_template %]
5    [% LxERP.t8("Basic Settings for the Requirement Spec Template") %]
6   [% ELSE %]
7    [% LxERP.t8("Basic Settings for the Requirement Spec") %]
8   [% END %]
9  </h2>
10
11  <table>
12   <tr class="listrow">
13    <td>[% LxERP.t8("Title") %]:</td>
14    <td>[% HTML.escape(SELF.requirement_spec.title) %]</td>
15   </tr>
16
17 [%- UNLESS SELF.requirement_spec.is_template %]
18
19   <tr class="listrow">
20    <td>[% LxERP.t8("Requirement Spec Type") %]:</td>
21    <td>[% HTML.escape(SELF.requirement_spec.type.description) %]</td>
22   </tr>
23
24   <tr class="listrow">
25    <td>[% LxERP.t8("Requirement Spec Status") %]:</td>
26    <td>[% HTML.escape(SELF.requirement_spec.status.description) %]</td>
27   </tr>
28
29   <tr class="listrow">
30    <td>[% LxERP.t8("Customer") %]:</td>
31    <td>[% HTML.escape(SELF.requirement_spec.customer.name) %]</td>
32   </tr>
33
34   <tr class="listrow">
35    <td>[% LxERP.t8("Hourly Rate") %]:</td>
36    <td>[% HTML.escape(SELF.requirement_spec.hourly_rate_as_number) %]</td>
37   </tr>
38
39 [%- END %]
40
41  </table>
42
43 [% UNLESS SELF.requirement_spec.is_template %]
44
45  <h2>[% LxERP.t8("Project Link") %]</h2>
46
47  [% IF !SELF.requirement_spec.project_id %]
48   <p>[% LxERP.t8("This requirement spec is currently not linked to a project.") %]</p>
49
50  [% ELSE %]
51   <table>
52    <tr class="listrow">
53     <td>[% LxERP.t8("Project Number") %]:</td>
54     <td>[% HTML.escape(SELF.requirement_spec.project.projectnumber) %]</td>
55    </tr>
56
57    <tr class="listrow">
58     <td>[% LxERP.t8("Description") %]:</td>
59     <td>[% HTML.escape(SELF.requirement_spec.project.description) %]</td>
60    </tr>
61
62    <tr class="listrow">
63     <td>[% LxERP.t8("Customer") %]:</td>
64     <td>[% HTML.escape(SELF.requirement_spec.project.customer.name) %]</td>
65    </tr>
66
67    <tr class="listrow">
68     <td>[% LxERP.t8("Type") %]:</td>
69     <td>[% HTML.escape(SELF.requirement_spec.project.project_type.description) %]</td>
70    </tr>
71
72    <tr class="listrow">
73     <td>[% LxERP.t8("Status") %]:</td>
74     <td>[% HTML.escape(SELF.requirement_spec.project.project_status.description) %]</td>
75    </tr>
76   </table>
77
78  [% END %]
79 [% END %]
80 </div>