Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 8d8b91a9

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

  • ID 8d8b91a97923fae45ce45ffc85e008f656a3aa51
  • Vorgänger b127ccd1
  • Nachfolger d147c8cb

Neues Design 2019 Standard-Code templates/webpages/report_generator/pdf_export_options.html

Unterschiede anzeigen:

templates/webpages/report_generator/pdf_export_options.html
2 2
[% USE HTML %]
3 3
[% USE LxERP %]
4 4

  
5
 [%- SET default_ymargin = LxERP.format_amount(1.5) %]
6
 [%- SET default_xmargin = LxERP.format_amount(0.8) %]
5
[% SET default_ymargin = LxERP.format_amount(1.5) %]
6
[% SET default_xmargin = LxERP.format_amount(0.8) %]
7 7

  
8
 <h1>[% HTML.escape(title) %]</h1>
8
<h1>[% HTML.escape(title) %]</h1>
9 9

  
10
 <form action="[% HTML.escape(script) %]" method="post" name="report_generator_form" id="report_generator_form">
10
<form action="[% HTML.escape(script) %]" method="post" name="report_generator_form" id="report_generator_form">
11 11

  
12
  [%- FOREACH var = HIDDEN %]
12
[% FOREACH var = HIDDEN %]
13 13
  <input type="hidden" name="[% HTML.escape(var.key) %]" value="[% HTML.escape(var.value) %]">
14
  [%- END %]
14
[% END %]
15 15

  
16
  <input type="hidden" name="report_generator_pdf_options_set" value="1">
17
  <input type="hidden" name="report_generator_dispatch_to" value="">
16
<input type="hidden" name="report_generator_pdf_options_set" value="1">
17
<input type="hidden" name="report_generator_dispatch_to" value="">
18 18

  
19
  <table>
20
   <tr>
21
    <td align="right">[% 'Orientation' | $T8 %]</td>
22
    <td>
23
     <select name="report_generator_pdf_options_paper_size">
24
      <option value="A3">A3</option>
25
      <option value="A4" selected>A4</option>
26
      <option value="A5">A5</option>
27
      <option value="letter">Letter</option>
28
      <option value="legal">Legal</option>
29
     </select>
30
     <select name="report_generator_pdf_options_orientation">
31
      <option value="portrait">[% 'Portrait' | $T8 %]</option>
32
      <option value="landscape" selected>[% 'Landscape' | $T8 %]</option>
33
     </select>
34
    </td>
35
   </tr>
19
<div class="wrapper">
36 20

  
37
   [%- IF ALLOW_FONT_SELECTION %]
38
   <tr>
39
    <td align="right">[% 'Font' | $T8 %]</td>
40
    <td>
41
     <select name="report_generator_pdf_options_font_name">
42
      <option>Courier</option>
43
      <option>Georgia</option>
44
      <option>Helvetica</option>
45
      <option>Times</option>
46
      <option selected>Verdana</option>
47
     </select>
48
    </td>
49
   </tr>
50
   [%- END %]
51

  
52
   <tr>
53
    <td align="right">[% 'Font size' | $T8 %]</td>
54
    <td>
55
     <select name="report_generator_pdf_options_font_size">
56
      <option>6</option>
57
      <option selected>7</option>
58
      <option>8</option>
59
      <option>9</option>
60
      <option>10</option>
61
      <option>11</option>
62
      <option>12</option>
63
      <option>13</option>
64
      <option>14</option>
65
      <option>15</option>
66
     </select>
67
     &nbsp;
68
     pt
69
    </td>
70
   </tr>
71

  
72
   <tr>
73
    <td align="right">[% 'Margins' | $T8 %]:</td>
74
   </tr>
75

  
76
   <tr>
77
    <td align="right">[% 'Top' | $T8 %]</td>
78
    <td><input name="report_generator_pdf_options_margin_top" size="4" value="[% HTML.escape(default_ymargin) %]"> cm</td>
79
   </tr>
80

  
81
   <tr>
82
    <td align="right">[% 'Left' | $T8 %]</td>
83
    <td><input name="report_generator_pdf_options_margin_left" size="4" value="[% HTML.escape(default_xmargin) %]"> cm</td>
84
   </tr>
85

  
86
   <tr>
87
    <td align="right">[% 'Bottom' | $T8 %]</td>
88
    <td><input name="report_generator_pdf_options_margin_bottom" size="4" value="[% HTML.escape(default_ymargin) %]"> cm</td>
89
   </tr>
90

  
91
   <tr>
92
    <td align="right">[% 'Right' | $T8 %]</td>
93
    <td><input name="report_generator_pdf_options_margin_right" size="4" value="[% HTML.escape(default_xmargin) %]"> cm</td>
94
   </tr>
95

  
96
   <tr>
97
    <td align="right" valign="top">[% 'Options' | $T8 %]:</td>
98
    <td valign="top">
99
     <input type="checkbox" name="report_generator_pdf_options_number" id="report_generator_pdf_options_number" value="1" checked>
100
     <label for="report_generator_pdf_options_number">[% 'Number pages' | $T8 %]</label>
101
     [% IF ALL_PRINTERS.size %]
102
      <br>
103
      <input type="checkbox" name="report_generator_pdf_options_print" id="report_generator_pdf_options_print" value="1">
104
      <label for="report_generator_pdf_options_print">[% 'Print list' | $T8 %]</label>
105
     [% END %]
106
    </td>
107
   </tr>
108

  
109
   [% IF ALL_PRINTERS.size %]
21
<table class="tbl-horizontal">
22
  <caption>[% 'Export format' | $T8 %]</caption>
23
  <tbody>
110 24
    <tr>
111
     <td align="right">[% 'Printer' | $T8 %]</td>
112
     <td>
113
      <select name="report_generator_pdf_options_printer_id">
114
       [%- FOREACH printer = ALL_PRINTERS %]
115
       <option value="[% HTML.escape(printer.id) %]"[% IF printer.selected %] selected[% END %]>[% HTML.escape(printer.printer_description) %]</option>
116
       [%- END %]
117
      </select>
118
     </td>
25
      <th>[% 'Orientation' | $T8 %]</th>
26
      <td>
27
        <select name="report_generator_pdf_options_paper_size">
28
          <option value="A3">A3</option>
29
          <option value="A4" selected>A4</option>
30
          <option value="A5">A5</option>
31
          <option value="letter">Letter</option>
32
          <option value="legal">Legal</option>
33
        </select>
34
        <select name="report_generator_pdf_options_orientation">
35
          <option value="portrait">[% 'Portrait' | $T8 %]</option>
36
          <option value="landscape" selected>[% 'Landscape' | $T8 %]</option>
37
        </select>
38
      </td>
119 39
    </tr>
120

  
40
    [% IF ALLOW_FONT_SELECTION %]
121 41
    <tr>
122
     <td align="right">[% 'Copies' | $T8 %]</td>
123
     <td><input name="report_generator_pdf_options_copies" size="4" value="[% HTML.escape(copies) %]"></td>
42
      <th>[% 'Font' | $T8 %]</th>
43
      <td>
44
        <select name="report_generator_pdf_options_font_name">
45
          <option>Courier</option>
46
          <option>Georgia</option>
47
          <option>Helvetica</option>
48
          <option>Times</option>
49
          <option selected>Verdana</option>
50
        </select>
51
      </td>
124 52
    </tr>
125
   [% END %]
126
  </table>
127

  
128
[%- IF CONTROLLER_DISPATCH %]
129
    <input type="hidden" name="CONTROLLER_DISPATCH" value="[% CONTROLLER_DISPATCH | html %]">
130
[%- ELSE %]
131
   <input type="hidden" name="action" value="report_generator_dispatcher">
132
[%- END %]
133

  
134
 </form>
53
    [% END %]
54
    <tr>
55
      <th>[% 'Font size' | $T8 %]</th>
56
      <td>
57
        <select name="report_generator_pdf_options_font_size">
58
          <option>6</option>
59
          <option selected>7</option>
60
          <option>8</option>
61
          <option>9</option>
62
          <option>10</option>
63
          <option>11</option>
64
          <option>12</option>
65
          <option>13</option>
66
          <option>14</option>
67
          <option>15</option>
68
        </select> pt.</td>
69
    </tr>
70
    <tr>
71
      <th class="caption" colspan="2">[% 'Margins' | $T8 %]:</th>
72
    </tr>
73
    <tr>
74
      <th>[% 'Top' | $T8 %]</th>
75
      <td><input type="text" name="report_generator_pdf_options_margin_top" size="4" value="[% HTML.escape(default_ymargin) %]"> cm</td>
76
    </tr>
77
    <tr>
78
      <th>[% 'Left' | $T8 %]</th>
79
      <td><input type="text" name="report_generator_pdf_options_margin_left" size="4" value="[% HTML.escape(default_xmargin) %]"> cm</td>
80
    </tr>
81
    <tr>
82
      <th>[% 'Bottom' | $T8 %]</th>
83
      <td><input type="text" name="report_generator_pdf_options_margin_bottom" size="4" value="[% HTML.escape(default_ymargin) %]"> cm</td>
84
    </tr>
85
    <tr>
86
      <th>[% 'Right' | $T8 %]</th>
87
      <td><input type="text" name="report_generator_pdf_options_margin_right" size="4" value="[% HTML.escape(default_xmargin) %]"> cm</td>
88
    </tr>
89
    <tr>
90
      <th class="caption" colspan="2">[% 'Print Options' | $T8 %]:</th>
91
    </tr>
92
    <tr>
93
      <th>[% 'Options' | $T8 %]</th>
94
      <td>
95
        <input type="checkbox" name="report_generator_pdf_options_number" id="report_generator_pdf_options_number" value="1" checked>
96
        <label for="report_generator_pdf_options_number">[% 'Number pages' | $T8 %]</label>
97
        [% IF ALL_PRINTERS.size %] <br>
98
          <input type="checkbox" name="report_generator_pdf_options_print" id="report_generator_pdf_options_print" value="1">
99
          <label for="report_generator_pdf_options_print">[% 'Print list' | $T8 %]</label>
100
        [% END %]
101
      </td>
102
    </tr>
103
    [% IF ALL_PRINTERS.size %]
104
      <tr>
105
        <td>[% 'Printer' | $T8 %]</td>
106
        <td>
107
          <select name="report_generator_pdf_options_printer_id">
108
            [% FOREACH printer = ALL_PRINTERS %]
109
              <option value="[% HTML.escape(printer.id) %]"[% IF printer.selected %] selected[% END %]>[% HTML.escape(printer.printer_description) %]</option>
110
            [% END %]
111
          </select>
112
        </td>
113
      </tr>
114
      <tr>
115
        <td>[% 'Copies' | $T8 %]</td>
116
        <td><input type="text" name="report_generator_pdf_options_copies" size="4" value="[% HTML.escape(copies) %]"></td>
117
      </tr>
118
    [% END %]
119
  </tbody>
120
</table>
121

  
122
</div><!-- /.wrapper -->
123

  
124
[% IF CONTROLLER_DISPATCH %]
125
  <input type="hidden" name="CONTROLLER_DISPATCH" value="[% CONTROLLER_DISPATCH | html %]">
126
[% ELSE %]
127
  <input type="hidden" name="action" value="report_generator_dispatcher">
128
[% END %]
129

  
130
</form>

Auch abrufbar als: Unified diff