]> wagnertech.de Git - mfinanz.git/blob - templates/design40_webpages/requirement_spec/_show_basic_settings.html
date error in mapping
[mfinanz.git] / templates / design40_webpages / requirement_spec / _show_basic_settings.html
1 [% USE HTML %]
2 [% USE LxERP %]
3 [% USE L %]
4
5 <div id="basic_settings" class="basic-settings-context-menu">
6 <div class="wrapper">
7
8 <h2>
9 [% IF SELF.requirement_spec.is_template %]
10   [% LxERP.t8("Basic Settings for the Requirement Spec Template") %]
11 [% ELSE %]
12   [% LxERP.t8("Basic Settings for the Requirement Spec") %]
13 [% END %]
14 </h2>
15
16 <table class="tbl-horizontal">
17   <tbody>
18     <tr>
19       <th>[% LxERP.t8("Title") %]:</th>
20       <td>[% HTML.escape(SELF.requirement_spec.title) %]</td>
21     </tr>
22     <tr>
23       <th>[% LxERP.t8("Requirement Spec Type") %]:</th>
24       <td>[% HTML.escape(SELF.requirement_spec.type.description) %]</td>
25     </tr>
26     [% UNLESS SELF.requirement_spec.is_template %]
27       <tr>
28         <th>[% LxERP.t8("Requirement Spec Status") %]:</th>
29         <td>[% HTML.escape(SELF.requirement_spec.status.description) %]</td>
30       </tr>
31       <tr>
32         <th>[% LxERP.t8("Customer") %]:</th>
33         <td>[% HTML.escape(SELF.requirement_spec.customer.name) %]</td>
34       </tr>
35       <tr>
36         <th>[% LxERP.t8("Hourly Rate") %]:</th>
37         <td>[% HTML.escape(SELF.requirement_spec.hourly_rate_as_number) %]</td>
38       </tr>
39       [% cvars = SELF.requirement_spec.cvars_by_config %]
40       [% FOREACH var = cvars %]
41         <tr>
42           <th>[% HTML.escape(var.config.description) %]</th>
43           <td>
44             [%- IF var.config.type == 'htmlfield' -%]
45               [%- L.restricted_html(var.value_as_text) -%]
46             [%- ELSE -%]
47               [%- HTML.escape(var.value_as_text) -%]
48             [%- END -%]
49           </td>
50         </tr>
51       [% END %]
52     [% END %]
53   </tbody>
54 </table>
55
56 [% UNLESS SELF.requirement_spec.is_template %]
57   <h2>[% LxERP.t8("Project Link") %]</h2>
58
59   [% IF !SELF.requirement_spec.project_id %]
60     <p>[% LxERP.t8("This requirement spec is currently not linked to a project.") %]</p>
61   [% ELSE %]
62     [% INCLUDE 'requirement_spec/_project_link_details.html' requirement_spec=SELF.requirement_spec %]
63   [% END %]
64
65 [% END %]
66 </div><!-- /.wrapper -->
67
68 </div><!-- /#basic_settings -->