Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 57d1e5a2

Von Hans Peter Schlaepfer vor fast 6 Jahren hinzugefügt

  • ID 57d1e5a21a769188495fe65c131706c24b21d7fd
  • Vorgänger 489e85ab
  • Nachfolger 6b7dea91

Neues kivitendo Design Aenderungen in templates/webpages/m*

Dateien mass_delivery_order_print/* mass_invoice_create_print_from_do/*
menu/*

Unterschiede anzeigen:

templates/webpages/mass_delivery_order_print/list_delivery_orders.html
1
[% USE HTML %][% USE L %][% USE LxERP %]
1
[% USE HTML %]
2
[% USE L %]
3
[% USE LxERP %]
2 4

  
3 5
<h1>[% FORM.title %]</h1>
4 6

  
5
[%- INCLUDE "common/flash.html" %]
7
[% INCLUDE "common/flash.html" %]
6 8

  
7 9
[% LIST_ACTION     = 'action_list_delivery_orders' %]
8
[%- PROCESS 'mass_delivery_order_print/_filter.html' filter=SELF.filter %]
10
[% PROCESS 'mass_delivery_order_print/_filter.html' filter=SELF.filter %]
9 11

  
10 12
[% IF nowshow==1 %]
11 13
[% delivery_orders = SELF.delivery_order_models.get;
12 14
   MODELS          = SELF.delivery_order_models %]
13
[%- IF !delivery_orders.size %]
15
[% IF !delivery_orders.size %]
14 16
 <p>
15
  [%- LxERP.t8("There are currently no delivery orders, or none matches your filter conditions.") %]
17
  [% LxERP.t8("There are currently no delivery orders, or none matches your filter conditions.") %]
16 18
 </p>
17
[%- ELSE %]
19
[% ELSE %]
18 20

  
19 21
 <form method="post" action="controller.pl">
20 22
  <table width="100%">
21 23
   <thead>
22
    <tr class="listheading">
24
    <tr>
23 25
     <th>[% L.checkbox_tag("", id="check_all", checkall="[data-checkall=1]") %]</th>
24 26
     <th>[% L.sortable_table_header("transdate") %]</th>
25 27
     <th>[% L.sortable_table_header("reqdate") %]</th>
......
31 33
   </thead>
32 34

  
33 35
   <tbody>
34
    [%- FOREACH delivery_order = delivery_orders %]
36
    [% FOREACH delivery_order = delivery_orders %]
35 37
     [% delivery_order_id = delivery_order.id
36 38
        sales_order       = delivery_order.sales_order %]
37 39
     <tr class="listrow">
......
43 45
      <td>[% HTML.escape(delivery_order.customer.name) %]</td>
44 46
      <td>[% HTML.escape(SELF.make_shipto_title(delivery_order.shipto || delivery_order.custom_shipto)) %]</td>
45 47
     </tr>
46
    [%- END %]
48
    [% END %]
47 49
   </tbody>
48 50
  </table>
49 51

  
......
68 70
   [% L.submit_tag("action_print", LxERP.t8("Print")) %]
69 71
  </p>
70 72
 </form>
71
[%- END %]
72
[%- END %]
73
[% END %]
74
[% END %]
templates/webpages/mass_invoice_create_print_from_do/_create_print_all_status.html
20 20
[% END %]
21 21
</p>
22 22

  
23
<p>
24 23
 <table>
25 24
  <tr>
26 25
   <th valign="top" align="left">[% LxERP.t8("Current status:") %]</th>
......
103 102
  </tr>
104 103

  
105 104
 </table>
106
</p>
105

  
templates/webpages/mass_invoice_create_print_from_do/_create_print_all_step_1.html
36 36

  
37 37
<p>
38 38
 [% L.button_tag("kivi.MassInvoiceCreatePrint.createPrintAllStartProcess();", LxERP.t8("Start process"), id="cpa_start_process_button") %]
39
 [% L.link("#", LxERP.t8("Abort"), onclick="\$('#create_print_all_dialog').dialog('close');", id="cpa_start_process_abort_link") %]
39
 [% L.link("#", LxERP.t8("Abort"), onclick="\$('#create_print_all_dialog').dialog('close');", id="cpa_start_process_abort_link", class="button neutral") %]
40 40
</p>
templates/webpages/mass_invoice_create_print_from_do/_filter.html
1
[%- USE L %][%- USE LxERP %][%- USE HTML %]
2
<div>
3
 <form action="controller.pl" method="post" id="search_form">
4
  <div class="filter_toggle" [% IF noshow == 0 %]style="display:none"[% END %]>
5
   <a href="#" onClick="javascript:$('.filter_toggle').toggle()">[% LxERP.t8('Show Filter') %]</a>
6
      [% SELF.filter_summary %]
7
  </div>
1
[% USE L %]
2
[% USE LxERP %]
3
[% USE HTML %]
8 4

  
9
  <div class="filter_toggle" [% IF noshow  == 1 %]style="display:none"[% END %]>
10
   <a href="#" onClick="javascript:$('.filter_toggle').toggle()">[% LxERP.t8('Hide Filter') %]</a>
11
   <table id="filter_table">
12
    <tr>
13
     <th align="right">[% LxERP.t8('Customer') %]</th>
14
     <td>[% L.input_tag('filter.customer.name:substr::ilike', filter.customer.name_substr__ilike, size = 20) %]</td>
15
    </tr>
16
     <th align="right">[% LxERP.t8('Delivery Order Date') %] [% LxERP.t8('From Date') %]</th>
17
     <td>[% L.date_tag('filter.transdate:date::ge', filter.transdate_date__ge) %]</td>
18
    </tr>
19
    <tr>
20
     <th align="right">[% LxERP.t8('Delivery Order Date') %] [% LxERP.t8('To Date') %]</th>
21
     <td>[% L.date_tag('filter.transdate:date::le', filter.transdate_date__le) %]</td>
22
    </tr>
5
[% BLOCK filter_toggle_panel %]
6
  <table id="filter_table" class="tbl-horizontal">
7
    <colgroup> <col class="wi-mediumsmall"><col class="wi-lightwide"> </colgroup>
8
    <tbody>
9
      <tr>
10
        <th>[% LxERP.t8('Customer') %]</th>
11
        <td>[% L.input_tag('filter.customer.name:substr::ilike', filter.customer.name_substr__ilike, size = 20, class='wi-lightwide' ) %]</td>
12
      </tr>
13
      <tr>
14
        <th>[% LxERP.t8('Delivery Order Date') %] [% LxERP.t8('From Date') %]</th>
15
        <td>[% L.date_tag('filter.transdate:date::ge', filter.transdate_date__ge, class='wi-date' ) %]</td>
16
      </tr>
17
      <tr>
18
        <th>[% LxERP.t8('Delivery Order Date') %] [% LxERP.t8('To Date') %]</th>
19
        <td>[% L.date_tag('filter.transdate:date::le', filter.transdate_date__le, class='wi-date' ) %]</td>
20
      </tr>
21
    </tbody>
23 22
  </table>
24 23

  
25
   [% L.hidden_tag('action', 'MassInvoiceCreatePrint/' _ LIST_ACTION, id='filter_action') %]
26
   [% L.hidden_tag('sort_by', FORM.sort_by) %]
27
   [% L.hidden_tag('sort_dir', FORM.sort_dir) %]
28
   [% L.hidden_tag('page', FORM.page) %]
29
   [% L.button_tag('$("#search_form").resetForm()', LxERP.t8('Reset')) %]
24
  [% L.hidden_tag('action', 'MassInvoiceCreatePrint/' _ LIST_ACTION, id='filter_action') %]
25
  [% L.hidden_tag('sort_by', FORM.sort_by) %]
26
  [% L.hidden_tag('sort_dir', FORM.sort_dir) %]
27
  [% L.hidden_tag('page', FORM.page) %]
28
  <div class="buttons">
29
    [% L.button_tag('$("#search_form").resetForm()', LxERP.t8('Reset'), class='neutral') %]
30 30
  </div>
31
[% END %]
31 32

  
32
 </form>
33
</div>
33
<form action="controller.pl" method="post" id="search_form">
34
  <div class="wrapper">
35
    [% PROCESS common/toggle_panel.html %]
36
  </div>
37
</form>
templates/webpages/mass_invoice_create_print_from_do/list_invoices.html
1
[% USE HTML %][% USE L %][% USE LxERP %]
1
[% USE HTML %]
2
[% USE L %]
3
[% USE LxERP %]
2 4

  
3 5
<h1>[% FORM.title %]</h1>
4 6

  
5
[%- INCLUDE "common/flash.html" %]
7
[% INCLUDE "common/flash.html" %]
6 8

  
7 9
[% LIST_ACTION     = 'list_invoices' %]
8
[%- PROCESS 'mass_invoice_create_print_from_do/_filter.html' filter=SELF.invoice_models.filtered.laundered %]
10
[% PROCESS 'mass_invoice_create_print_from_do/_filter.html' filter=SELF.invoice_models.filtered.laundered %]
9 11

  
10 12
[% IF noshow == 1 %]
11
[% invoices = SELF.invoice_models.get;
12
   MODELS          = SELF.invoice_models %]
13
[%- IF !invoices.size %]
14
 <p>
15
  [%- LxERP.t8("There are currently no open invoices, or none matches your filter conditions.") %]
16
 </p>
17
[%- ELSE %]
13
  [% invoices = SELF.invoice_models.get;
14
     MODELS          = SELF.invoice_models %]
15
  [% IF !invoices.size %]
16
    <p>[% LxERP.t8("There are currently no open invoices, or none matches your filter conditions.") %]</p>
17
  [% ELSE %]
18 18

  
19
 <form method="post" action="controller.pl" id="report_form">
20
  <table width="100%">
21
   <thead>
22
    <tr class="listheading">
23
     <th>[% L.checkbox_tag("", id="check_all", checkall="[data-checkall=1]") %]</th>
24
     <th>[% L.sortable_table_header("transdate") %]</th>
25
     <th>[% L.sortable_table_header("reqdate") %]</th>
26
     <th>[% L.sortable_table_header("invnumber") %]</th>
27
     <th>[% L.sortable_table_header("donumber") %]</th>
28
     <th>[% L.sortable_table_header("customer") %]</th>
29
     <th>[% LxERP.t8("Shipto") %]</th>
30
    </tr>
31
   </thead>
19
    <form method="post" action="controller.pl" id="report_form">
20
      <table class="tbl-list">
21
        <thead>
22
          <tr>
23
            <th>[% L.checkbox_tag("", id="check_all", checkall="[data-checkall=1]") %]</th>
24
            <th>[% L.sortable_table_header("transdate") %]</th>
25
            <th>[% L.sortable_table_header("reqdate") %]</th>
26
            <th>[% L.sortable_table_header("invnumber") %]</th>
27
            <th>[% L.sortable_table_header("donumber") %]</th>
28
            <th>[% L.sortable_table_header("customer") %]</th>
29
            <th>[% LxERP.t8("Shipto") %]</th>
30
          </tr>
31
        </thead>
32
        <tbody>
33
          [% FOREACH invoice = invoices %]
34
            [% invoice_id = invoice.id
35
               delivery_order    = invoice.delivery_order
36
            %]
37
            <tr>
38
              <td>[% L.checkbox_tag('id[]', value=invoice.id, "data-checkall"=1, checked=selected_ids.$invoice_id) %]</td>
39
              <td>[% HTML.escape(invoice.transdate_as_date) %]</td>
40
              <td>[% HTML.escape(invoice.deliverydate_as_date) %]</td>
41
              <td>[% L.link(SELF.url_for(controller="is.pl", action="edit", type="sales_invoice", id=invoice.id), invoice.invnumber) %]</td>
42
              <td>
43
                [% IF delivery_order %]
44
                  [% L.link(SELF.url_for(controller="do.pl", action="edit", id=delivery_order.id), delivery_order.donumber) %]
45
                [% ELSE %]
46
                  [% HTML.escape(invoice.donumber) %]
47
                [% END %]
48
              </td>
49
              <td>[% HTML.escape(invoice.customer.name) %]</td>
50
              <td>[% HTML.escape(SELF.make_shipto_title(invoice.shipto || delivery_order.custom_shipto)) %]</td>
51
            </tr>
52
         [% END %]
53
        </tbody>
54
      </table>
55
      [% IF !SELF.invoice_ids.size %]
56
        [% L.paginate_controls %]
57
      [% END %]
58
      [% L.hidden_tag("action", "MassInvoiceCreatePrint/dispatch") %]
59
      [% L.hidden_tag("printer_id") %]
60
    </form>
32 61

  
33
   <tbody>
34
    [%- FOREACH invoice = invoices %]
35
     [% invoice_id = invoice.id
36
        delivery_order    = invoice.delivery_order %]
37
     <tr class="listrow">
38
      <td>[% L.checkbox_tag('id[]', value=invoice.id, "data-checkall"=1, checked=selected_ids.$invoice_id) %]</td>
39
      <td>[% HTML.escape(invoice.transdate_as_date) %]</td>
40
      <td>[% HTML.escape(invoice.deliverydate_as_date) %]</td>
41
      <td>[% L.link(SELF.url_for(controller="is.pl", action="edit", type="sales_invoice", id=invoice.id), invoice.invnumber) %]</td>
42
      <td>
43
       [% IF delivery_order %]
44
        [% L.link(SELF.url_for(controller="do.pl", action="edit", id=delivery_order.id), delivery_order.donumber) %]
45
       [% ELSE %]
46
        [% HTML.escape(invoice.donumber) %]
47
       [% END %]
48
      </td>
49
      <td>[% HTML.escape(invoice.customer.name) %]</td>
50
      <td>[% HTML.escape(SELF.make_shipto_title(invoice.shipto || delivery_order.custom_shipto)) %]</td>
51
     </tr>
52
    [%- END %]
53
   </tbody>
54
  </table>
55

  
56
  [% IF !SELF.invoice_ids.size %]
57
   [% L.paginate_controls %]
62
    [% IF SELF.printers.size %]
63
      <div id="print_options" class="hidden">
64
        <p>
65
          [% LxERP.t8("Print destination") %]:
66
          [% SET  printers = [ { description=LxERP.t8("Download PDF, do not print") } ] ;
67
             CALL printers.import(SELF.printers);
68
             L.select_tag("", printers, id="print_options_printer_id", title_key="description", default=FORM.printer_id) %]
69
        </p>
70
        <p>[% L.button_tag("kivi.MassInvoiceCreatePrint.massPrint()", LxERP.t8('Print')) %]</p>
71
      </div>
72
    [% END %]
58 73
  [% END %]
59

  
60
  [% L.hidden_tag("action", "MassInvoiceCreatePrint/dispatch") %]
61
  [% L.hidden_tag("printer_id") %]
62
 </form>
63

  
64
 [% IF SELF.printers.size %]
65
  <div id="print_options" class="hidden">
66
   <p>
67
    [% LxERP.t8("Print destination") %]:
68
    [% SET  printers = [ { description=LxERP.t8("Download PDF, do not print") } ] ;
69
       CALL printers.import(SELF.printers);
70
       L.select_tag("", printers, id="print_options_printer_id", title_key="description", default=FORM.printer_id) %]
71
   </p>
72

  
73
   <p>
74
    [% L.button_tag("kivi.MassInvoiceCreatePrint.massPrint()", LxERP.t8('Print')) %]
75
   </p>
76
  </div>
77
 [% END %]
78
[%- END %]
79
[%- END %]
74
[% END %]
templates/webpages/mass_invoice_create_print_from_do/list_sales_delivery_orders.html
1
[% USE Dumper %][% USE HTML %][% USE L %][% USE LxERP %]
2

  
1
[% USE Dumper %]
2
[% USE HTML %]
3
[% USE L %]
4
[% USE LxERP %]
3 5

  
4 6
<h1>[% FORM.title %]</h1>
5 7

  
6
[%- INCLUDE "common/flash.html" %]
8
[% INCLUDE "common/flash.html" %]
7 9

  
8 10
[% LIST_ACTION  = 'list_sales_delivery_orders' %]
9 11
[% SET MODELS = SELF.sales_delivery_order_models;
10 12
       dummy  = MODELS.finalize %]
11 13

  
12
[%- PROCESS 'mass_invoice_create_print_from_do/_filter.html' filter=SELF.sales_delivery_order_models.filtered.laundered  %]
14
[% PROCESS 'mass_invoice_create_print_from_do/_filter.html' filter=SELF.sales_delivery_order_models.filtered.laundered  %]
13 15

  
14 16
[% IF noshow == 1 %]
15 17
  [% SET sales_delivery_orders = MODELS.get %]
16
   <form method="post" action="controller.pl">
17
  [% IF !sales_delivery_orders.size %]
18
     <p>
19
    [%- LxERP.t8("There are currently no open sales delivery orders.") %]
20
     </p>
21
  [%- ELSE %]
22
    <table width="100%">
23
     <thead>
24
      <tr class="listheading">
25
       <th>[% L.checkbox_tag("", id="check_all", checkall="[data-checkall=1]") %]</th>
26
       <th>[% L.sortable_table_header("transdate") %]</th>
27
       <th>[% L.sortable_table_header("donumber") %]</th>
28
       <th>[% L.sortable_table_header("ordnumber") %]</th>
29
      <th>[% L.sortable_table_header("customer") %]</th>
30
     </tr>
31
     </thead>
32

  
33
     <tbody>
34
     [%- FOREACH sales_delivery_order = sales_delivery_orders %]
35
     <tr class="listrow">
36
      <td>[% L.checkbox_tag('id[]', value=sales_delivery_order.id, "data-checkall"=1) %]</td>
37
      <td>[% HTML.escape(sales_delivery_order.transdate_as_date) %]</td>
38
      <td>[% L.link(SELF.url_for(controller="do.pl", action="edit", type="sales_delivery_order", id=sales_delivery_order.id), sales_delivery_order.donumber) %]</td>
39
      [%- IF INSTANCE_CONF.get_feature_experimental_order -%]
40
        <td>[% L.link(SELF.url_for(controller="controller.pl", action="Order/edit", type="sales_order", id=sales_delivery_order.sales_order.id), sales_delivery_order.ordnumber) %]</td>
41
      [%- ELSE -%]
42
        <td>[% L.link(SELF.url_for(controller="oe.pl", action="edit", type="sales_order", id=sales_delivery_order.sales_order.id), sales_delivery_order.ordnumber) %]</td>
43
      [%- END -%]
44
      <td>[% HTML.escape(sales_delivery_order.customer.name) %]</td>
45
     </tr>
46
     [%- END %]
47
     </tbody>
48
    </table>
49

  
50
    [% L.paginate_controls %]
51

  
52
    <div id="create_print_all_dialog" style="display: none;">
53
     [%- INCLUDE 'mass_invoice_create_print_from_do/_create_print_all_step_1.html' %]
18
  <form method="post" action="controller.pl">
19
    <div class="wrapper">
20
        [% IF !sales_delivery_orders.size %]
21
          <p>[% LxERP.t8("There are currently no open sales delivery orders.") %]</p>
22
        [% ELSE %]
23
          <table class="tbl-list">
24
            <thead>
25
              <tr>
26
                <th>[% L.checkbox_tag("", id="check_all", checkall="[data-checkall=1]") %]</th>
27
                <th>[% L.sortable_table_header("transdate") %]</th>
28
                <th>[% L.sortable_table_header("donumber") %]</th>
29
                <th>[% L.sortable_table_header("ordnumber") %]</th>
30
                <th>[% L.sortable_table_header("customer") %]</th>
31
             </tr>
32
            </thead>
33
            <tbody>
34
              [% FOREACH sales_delivery_order = sales_delivery_orders %]
35
                <tr class="listrow">
36
                  <td>[% L.checkbox_tag('id[]', value=sales_delivery_order.id, "data-checkall"=1) %]</td>
37
                  <td>[% HTML.escape(sales_delivery_order.transdate_as_date) %]</td>
38
                  <td>[% L.link(SELF.url_for(controller="do.pl", action="edit", type="sales_delivery_order", id=sales_delivery_order.id), sales_delivery_order.donumber) %]</td>
39
                  [%- IF INSTANCE_CONF.get_feature_experimental_order -%]
40
                  <td>[% L.link(SELF.url_for(controller="controller.pl", action="Order/edit", type="sales_order", id=sales_delivery_order.sales_order.id), sales_delivery_order.ordnumber) %]</td>
41
                  [%- ELSE -%]
42
                  <td>[% L.link(SELF.url_for(controller="oe.pl", action="edit", type="sales_order", id=sales_delivery_order.sales_order.id), sales_delivery_order.ordnumber) %]</td>
43
                  [%- END -%]
44
                  <td>[% HTML.escape(sales_delivery_order.customer.name) %]</td>
45
                </tr>
46
              [% END %]
47
            </tbody>
48
          </table>
49
          [% L.paginate_controls %]
50
          <div id="create_print_all_dialog" style="display: none;">
51
            [% INCLUDE 'mass_invoice_create_print_from_do/_create_print_all_step_1.html' %]
52
          </div>
53
        [% END %]
54 54
    </div>
55
  [%- END %]
56
 </form>
57
[%- END %]
55
  </form>
56
[% END %]
templates/webpages/menu/header.html
1
[%- USE T8 %][%- USE LxERP -%]
2
[%- UNLESS skip_frame_header %]
3
<div id="frame-header">
4
[%- UNLESS is_links %]
5
 <span class="frame-header-element frame-header-left">
6
    [<a href="controller.pl?action=LoginScreen/user_login" target="_blank" title="[% 'Open a further kivitendo window or tab' | $T8 %]">[% 'New window/tab' | $T8 %]</a>]
7
    [<a href="JavaScript:top.print();" title="[% 'Hardcopy' | $T8 %]">[% 'Print' | $T8 %]</a>]
8
 </span>
9
[%- END %]
10
 <span class="frame-header-element frame-header-right">
11
  [[% 'User' | $T8 %]: [% MYCONFIG.login | html %] -
12
   [% 'Client' | $T8 %]: [% AUTH.client.name | html %] -
13
   <a href="controller.pl?action=LoginScreen/logout" target="_top" title="[% 'Logout now' | $T8 %]">[% 'Logout' | $T8 %]</a>]
14
 </span>
15
 <span class="frame-header-element frame-header-right" id="ajax-spinner">
16
  <img src="image/spinner-white.gif" alt="[% LxERP.t8('Loading...') %]">
17
 </span>
18
[%- FOREACH search = quick_search.enabled_modules %]
19
   <span class='frame-header-quicksearch'><input id="top-quick-search-[% search.name %]" module="[% search.name %]" placeholder="[% search.description_field %]" maxlength="20"></span>
20
[%- END %]
1
[% USE T8 %]
2
[% USE LxERP %]
21 3

  
4
[% UNLESS skip_frame_header %]
5
  <div id="frame-header">
6
  [% UNLESS is_links %]
7
   <span class="frame-header-element frame-header-left">
8
      <span><a href="controller.pl?action=LoginScreen/user_login" title="[% 'Home' | $T8 %]"><img alt="[% 'Home' | $T8 %]" src="image/header-icon-home.png"></a></span>
9
      <span><a href="controller.pl?action=LoginScreen/user_login" target="_blank" title="[% 'Open a further kivitendo window or tab' | $T8 %]"><img alt="[% 'New window/tab' | $T8 %]" src="image/header-icon-new-window.png"></a></span>
10
      <span><a href="JavaScript:top.print();" title="[% 'Hardcopy' | $T8 %]"><img alt="[% 'Print' | $T8 %]" src="image/header-icon-print.png"></a></span>
11
   </span>
12
  [% END %]
13
   <span class="frame-header-element frame-header-right">
14
    <span title="[% 'Mandate' | $T8 %]" class="mandate">[% AUTH.client.name | html %]</span>
15
    <span><a href="am.pl?action=config" title="[% 'User' | $T8 %]: [% MYCONFIG.login | html %] / [% 'Client' | $T8 %]: [% AUTH.client.name | html %]"><!-- [% #MYCONFIG.login | html %] / [% #AUTH.client.name | html %] --><img alt="[% 'User' | $T8 %]/[% 'Client' | $T8 %]" src="image/header-icon-user.png"></a></span>
16
     <span><a href="controller.pl?action=LoginScreen/logout" target="_top" title="[% 'Logout now' | $T8 %]"><img alt="[% 'Logout' | $T8 %]" src="image/header-icon-logout.png"></a></span>
17
   </span>
18
   <span class="frame-header-element frame-header-right" id="ajax-spinner">
19
      <img src="image/spinner-white.gif" alt="[% LxERP.t8('Loading...') %]">
20
   </span>
21
   <div class="frame-header-quicksearch">
22
  [% FOREACH search = quick_search.enabled_modules %]
23
     <span class='frame-header-quicksearch'><input type="text" id="top-quick-search-[% search.name %]" module="[% search.name %]" placeholder="[% search.description_field %]" maxlength="20" class="quick-search"></span>
24
  [% END %]
25
   </div>
22 26
</div>
23
[%- END %]
27
[% END %]
templates/webpages/menu/menuv3.html
1
[%- USE L %]
2
[%- USE HTML %]
3
<div id="menuv3">[% FOREACH node = menu.tree %][% NEXT UNLESS node.visible %]<ul><li>[% PROCESS submenu top=1 %]</li></ul>[% END %]</div>
1
[% USE L %]
2
[% USE HTML %]
3

  
4
<div id="menuv3">
5
  [% FOREACH node = menu.tree %][% NEXT UNLESS node.visible %]
6
  <ul>
7
    <li>[% PROCESS submenu top=1 %]</li>
8
  </ul>
9
  [% END %]
10
  </div>
4 11
<div style="clear: both;"></div>
5
[%- %]
6
[%- BLOCK submenu %]
7
  [%- IF top              %]<h2>[% menu.name_for_node(node) | html %]</h2>
8
  [%- ELSIF node.children %]<div class="x">[% menu.name_for_node(node) | html %]</div>
9
  [%- ELSE                %][% L.link(menu.href_for_node(node), menu.name_for_node(node), title=menu.name_for_node(node), target=node.target) %]
10
  [%- END %]
11
  [%- IF node.children %]<ul>[%- FOREACH node = node.children %][% NEXT UNLESS node.visible %]<li>[% PROCESS submenu top=0 %]</li>[% END %]</ul>[%- END %]
12
[%- END %]
12
[% %]
13
[% BLOCK submenu %]
14
  [% IF top %]
15
    [% menu.name_for_node(node) | html %]
16
  [% ELSIF node.children %]
17
    <div class="x">[% menu.name_for_node(node) | html %]</div>
18
  [% ELSE                %]
19
    [% IF node.target %]
20
      [% L.link(menu.href_for_node(node), menu.name_for_node(node), title=menu.name_for_node(node), target=node.target) %]
21
    [% ELSE %]
22
      [% L.link(menu.href_for_node(node), menu.name_for_node(node), title=menu.name_for_node(node)) %]
23
    [% END %]
24
  [% END %]
25
  [% IF node.children %]
26
    <ul>
27
      [% FOREACH node = node.children %]
28
        [% NEXT UNLESS node.visible %]<li>[% PROCESS submenu top=0 %]</li>
29
      [% END %]
30
    </ul>
31
  [% END %]
32
[% END %]

Auch abrufbar als: Unified diff