Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 8108be73

Von Hans P. Schlaepfer vor etwa 4 Jahren hinzugefügt

  • ID 8108be734df9075d78aeadf1eaee53e0714e3a24
  • Vorgänger f6fc5115
  • Nachfolger c40c19ef

Neues Design 2019 Standard-Code templates/webpages/requirement_spec/_filter.html\n\nNeues Filter-Feature eingebaut

Unterschiede anzeigen:

templates/webpages/requirement_spec/_filter.html
2 2
[% USE L %]
3 3
[% USE LxERP %]
4 4

  
5
<div class="filter_toggle">
6
 <a href="#" onClick="$('.filter_toggle').toggle(); $('#filter_customer_name_substr_ilike').focus();">[% LxERP.t8("Show Filter") %]</a>
7
</div>
5
<div class="wrapper">
8 6

  
9
<div class="filter_toggle" style="display:none">
10
 <a href="#" onClick="javascript:$('.filter_toggle').toggle()">[% LxERP.t8("Hide Filter") %]</a>
11

  
12
 <form method="post" action="controller.pl" id="search_form">
13
  [%- L.hidden_tag("is_template", is_template) %]
14
  [%- L.hidden_tag("_include_cvars_from_form", 1) %]
15

  
16
  <p>
17
   <table>
18
    <tr>
19
     <th align="right">[% LxERP.t8("Title") %]</th>
20
     <td>[% L.input_tag('filter.title:substr::ilike', filter.title_substr__ilike, class="rs_input_field") %]</td>
21
    </tr>
22

  
23
[%- UNLESS is_template %]
24
    <tr>
25
     <th align="right">[% LxERP.t8("Customer") %]</th>
26
     <td>[% L.input_tag('filter.customer.name:substr::ilike', filter.customer.name_substr__ilike, class="rs_input_field") %]</td>
27
    </tr>
28

  
29
    <tr>
30
     <th align="right">[% LxERP.t8("Customer Number") %]</th>
31
     <td>[% L.input_tag('filter.customer.customernumber:substr::ilike', filter.customer.customernumber_substr__ilike, class="rs_input_field") %]</td>
32
    </tr>
33

  
34
    <tr>
35
     <th align="right">[% LxERP.t8("Requirement Spec Type") %]</th>
36
     <td>[% L.select_tag('filter.type_id', SELF.types, default=filter.type_id, title_key="description", with_empty=1, class="rs_input_field") %]</td>
37
    </tr>
38

  
39
    <tr>
40
     <th align="right">[% LxERP.t8("Requirement Spec Status") %]</th>
41
     <td>[% L.select_tag('filter.status_id[]', SELF.statuses, default=filter.status_id_, title_key="description", multiple=1, class="rs_input_field") %][%# NOTE: the trailing '_' is NOT a mistake -- look at SL::Controller::Helper::Filtered for the explanation! %]</td>
42
    </tr>
43

  
44
    <tr>
45
     <th align="right">[% LxERP.t8("Project Number") %]</th>
46
     <td>[% L.input_tag('filter.project.projectnumber:substr::ilike', filter.project.projectnumber_substr__ilike, class="rs_input_field") %]</td>
47
    </tr>
48
    <tr>
49
     <th align="right">[% LxERP.t8("Project Description") %]</th>
50
     <td>[% L.input_tag('filter.project.description:substr::ilike', filter.project.description_substr__ilike, class="rs_input_field") %]</td>
51
    </tr>
52

  
53
    [% FOREACH cvar_cfg = SELF.cvar_configs %]
54
     [%- IF cvar_cfg.searchable %]
7
[% BLOCK filter_toggle_panel %]
8
<form method="post" action="controller.pl" id="search_form">
9
  [% L.hidden_tag("is_template", is_template) %]
10
  [% L.hidden_tag("_include_cvars_from_form", 1) %]
11
  <table class="tbl-horizontal">
12
    <tbody>
55 13
      <tr>
56
       <th align="right">[% HTML.escape(cvar_cfg.description) %]</th>
57
       <td>[% INCLUDE 'common/render_cvar_filter_input.html' cvar_cfg=cvar_cfg cvar_class="rs_input_field" %]</td>
14
        <th>[% LxERP.t8("Title") %]</th>
15
        <td>[% L.input_tag('filter.title:substr::ilike', filter.title_substr__ilike, class="rs_input_field wi-lightwide") %]</td>
58 16
      </tr>
59
     [% END %]
60
    [% END %]
61

  
62
    [% IF SELF.includeable_cvar_configs.size %]
63
     <tr>
64
      <th align="right">[% LxERP.t8("Include in Report") %]</th>
65
      <td>
66
       <table>
17
      [% UNLESS is_template %]
18
        <tr>
19
          <th>[% LxERP.t8("Customer") %]</th>
20
          <td>[% L.input_tag('filter.customer.name:substr::ilike', filter.customer.name_substr__ilike, class="rs_input_field wi-lightwide") %]</td>
21
        </tr>
67 22
        <tr>
68
         [% FOREACH cvar_cfg = SELF.includeable_cvar_configs %]
23
          <th>[% LxERP.t8("Customer Number") %]</th>
24
          <td>[% L.input_tag('filter.customer.customernumber:substr::ilike', filter.customer.customernumber_substr__ilike, class="rs_input_field wi-lightwide") %]</td>
25
        </tr>
26
        <tr>
27
          <th>[% LxERP.t8("Requirement Spec Type") %]</th>
28
          <td>[% L.select_tag('filter.type_id', SELF.types, default=filter.type_id, title_key="description", with_empty=1, class="rs_input_field wi-lightwide") %]</td>
29
        </tr>
30
        <tr>
31
          <th>[% LxERP.t8("Requirement Spec Status") %]</th>
69 32
          <td>
70
           [% name__ = cvar_cfg.name;
71
              L.checkbox_tag("include_cvars_" _ name__, value="1", checked=(SELF.include_cvars.$name__ ? 1 : ''), label=cvar_cfg.description) %]
33
            [% L.select_tag('filter.status_id[]', SELF.statuses, default=filter.status_id_, title_key="description", multiple=1, class="rs_input_field wi-wide") %]
34
            [%# NOTE: the trailing '_' is NOT a mistake -- look at SL::Controller::Helper::Filtered for the explanation! %]
72 35
          </td>
73
          [%- IF !loop.last && ((loop.count % 3) == 0) %]
74
           </tr><tr>
75
          [% END %]
76
         [% END %]
77 36
        </tr>
78
       </table>
79
      </td>
80
     </tr>
81
    [% END %]
82
[%- END %]
83
   </table>
84
  </p>
85
 </form>
86
</div>
37
        <tr>
38
          <th>[% LxERP.t8("Project Number") %]</th>
39
          <td>[% L.input_tag('filter.project.projectnumber:substr::ilike', filter.project.projectnumber_substr__ilike, class="rs_input_field wi-lightwide") %]</td>
40
        </tr>
41
        <tr>
42
          <th>[% LxERP.t8("Project Description") %]</th>
43
          <td>[% L.input_tag('filter.project.description:substr::ilike', filter.project.description_substr__ilike, class="rs_input_field wi-lightwide") %]</td>
44
        </tr>
45
        [% FOREACH cvar_cfg = SELF.cvar_configs %]
46
          [% IF cvar_cfg.searchable %]
47
            <tr>
48
              <th>[% HTML.escape(cvar_cfg.description) %]</th>
49
              <td>[% INCLUDE 'common/render_cvar_filter_input.html' cvar_cfg=cvar_cfg cvar_class="rs_input_field" %]</td>
50
            </tr>
51
          [% END %]
52
        [% END # %]
53
      [% END # /UNLESS is_template %]
54
    </tbody>
55
  </table>
56
  <table class="tbl-plain">
57
    <caption>[% LxERP.t8("Include in Report") %]</caption>
58
    <tbody>
59
      [% FOREACH cvar_cfg = SELF.includeable_cvar_configs %]
60
      <tr>
61
        <td>
62
          [% name__ = cvar_cfg.name; L.checkbox_tag("include_cvars_" _ name__, value="1", checked=(SELF.include_cvars.$name__ ? 1 : ''), label=cvar_cfg.description) %]
63
        </td>
64
      [% IF !loop.last && ((loop.count % 3) == 0) %]
65
      </tr>
66
      <tr>
67
        [% END %]
68
      </tr>
69
      [% END %]
70
    <tbody>
71
  </table>
72
  [% END %]
73
</form>
74
[% END # /BLOCK filter_toggle_panel %]
75

  
76
[% INCLUDE 'common/toggle_panel.html' %]
77

  
78
</div><!-- /.wrapper -->

Auch abrufbar als: Unified diff