Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 52232153

Von Hans P. Schlaepfer vor fast 5 Jahren hinzugefügt

  • ID 5223215321f633c314fb43ac130d5ac04730b6f9
  • Vorgänger 356ec906
  • Nachfolger aaabce3e

Neues Design 2019 Standard-Code templates/webpages/requirement_spec/_show_basic_settings.html

Unterschiede anzeigen:

templates/webpages/requirement_spec/_show_basic_settings.html
1
<div id="basic_settings" class="basic-settings-context-menu">
2
 <h2>
3
  [% IF SELF.requirement_spec.is_template %]
4
   [% LxERP.t8("Basic Settings for the Requirement Spec Template") %]
5
  [% ELSE %]
6
   [% LxERP.t8("Basic Settings for the Requirement Spec") %]
7
  [% END %]
8
 </h2>
9

  
10
 <table>
11
  <tr class="listrow">
12
   <td>[% LxERP.t8("Title") %]:</td>
13
   <td>[% HTML.escape(SELF.requirement_spec.title) %]</td>
14
  </tr>
15

  
16
  <tr class="listrow">
17
   <td>[% LxERP.t8("Requirement Spec Type") %]:</td>
18
   <td>[% HTML.escape(SELF.requirement_spec.type.description) %]</td>
19
  </tr>
20

  
21
[%- UNLESS SELF.requirement_spec.is_template %]
22

  
23
  <tr class="listrow">
24
   <td>[% LxERP.t8("Requirement Spec Status") %]:</td>
25
   <td>[% HTML.escape(SELF.requirement_spec.status.description) %]</td>
26
  </tr>
27

  
28
  <tr class="listrow">
29
   <td>[% LxERP.t8("Customer") %]:</td>
30
   <td>[% HTML.escape(SELF.requirement_spec.customer.name) %]</td>
31
  </tr>
32

  
33
  <tr class="listrow">
34
   <td>[% LxERP.t8("Hourly Rate") %]:</td>
35
   <td>[% HTML.escape(SELF.requirement_spec.hourly_rate_as_number) %]</td>
36
  </tr>
37 1
[% USE HTML %]
38 2
[% USE LxERP %]
39 3

  
40
  [% cvars = SELF.requirement_spec.cvars_by_config %]
41

  
42
  [% FOREACH var = cvars %]
43
   <tr class="listrow">
44
    <td>[% HTML.escape(var.config.description) %]</td>
45
    <td>[% HTML.escape(var.value_as_text) %]</td>
46
   </tr>
47
  [% END %]
48

  
49
[%- END %]
4
<div id="basic_settings" class="basic-settings-context-menu">
5
<div class="wrapper">
50 6

  
51
 </table>
7
<h2>
8
[% IF SELF.requirement_spec.is_template %]
9
  [% LxERP.t8("Basic Settings for the Requirement Spec Template") %]
10
[% ELSE %]
11
  [% LxERP.t8("Basic Settings for the Requirement Spec") %]
12
[% END %]
13
</h2>
14

  
15
<table class="tbl-horizontal">
16
  <tbody>
17
    <tr>
18
      <th>[% LxERP.t8("Title") %]:</th>
19
      <td>[% HTML.escape(SELF.requirement_spec.title) %]</td>
20
    </tr>
21
    <tr>
22
      <th>[% LxERP.t8("Requirement Spec Type") %]:</th>
23
      <td>[% HTML.escape(SELF.requirement_spec.type.description) %]</td>
24
    </tr>
25
    [% UNLESS SELF.requirement_spec.is_template %]
26
      <tr>
27
        <th>[% LxERP.t8("Requirement Spec Status") %]:</th>
28
        <td>[% HTML.escape(SELF.requirement_spec.status.description) %]</td>
29
      </tr>
30
      <tr>
31
        <th>[% LxERP.t8("Customer") %]:</th>
32
        <td>[% HTML.escape(SELF.requirement_spec.customer.name) %]</td>
33
      </tr>
34
      <tr>
35
        <th>[% LxERP.t8("Hourly Rate") %]:</th>
36
        <td>[% HTML.escape(SELF.requirement_spec.hourly_rate_as_number) %]</td>
37
      </tr>
38
      [% cvars = SELF.requirement_spec.cvars_by_config %]
39
      [% FOREACH var = cvars %]
40
        <tr>
41
          <th>[% HTML.escape(var.config.description) %]</th>
42
          <td>[% HTML.escape(var.value_as_text) %]</td>
43
        </tr>
44
      [% END %]
45
    [% END %]
46
  </tbody>
47
</table>
52 48

  
53 49
[% UNLESS SELF.requirement_spec.is_template %]
50
  <h2>[% LxERP.t8("Project Link") %]</h2>
54 51

  
55
 <h2>[% LxERP.t8("Project Link") %]</h2>
56

  
57
 [% IF !SELF.requirement_spec.project_id %]
58
  <p>[% LxERP.t8("This requirement spec is currently not linked to a project.") %]</p>
52
  [% IF !SELF.requirement_spec.project_id %]
53
    <p>[% LxERP.t8("This requirement spec is currently not linked to a project.") %]</p>
54
  [% ELSE %]
55
    [% INCLUDE 'requirement_spec/_project_link_details.html' requirement_spec=SELF.requirement_spec %]
56
  [% END %]
59 57

  
60
 [% ELSE %]
61
  [% INCLUDE 'requirement_spec/_project_link_details.html' requirement_spec=SELF.requirement_spec %]
62
 [% END %]
63 58
[% END %]
64
</div>
59
</div><!-- /.wrapper -->
60

  
61
</div><!-- /#basic_settings -->

Auch abrufbar als: Unified diff