Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision e3aecd52

Von Werner Hahn vor mehr als 7 Jahren hinzugefügt

  • ID e3aecd5276218d3b711b6baaa7b5f36eee8882ff
  • Vorgänger a0c20f2a
  • Nachfolger 42685dc8

Shopmodul: Actionbar für Shoporders

Unterschiede anzeigen:

SL/Controller/ShopOrder.pm
57 57
    );
58 58
    $shop_order->{open_invoices} = $open_invoices;
59 59
  }
60

  
60
  $self->_setup_list_action_bar;
61 61
  $self->render('shop_order/list',
62 62
                title       => t8('ShopOrders'),
63 63
                SHOPORDERS  => $shop_orders,
......
303 303
    { title => t8("not transferred"), value => 0  }, ]
304 304
}
305 305

  
306
sub _setup_list_action_bar {
307
  my ($self) = @_;
308

  
309
  for my $bar ($::request->layout->get('actionbar')) {
310
    $bar->add(
311
        action => [
312
          t8('Search'),
313
          submit    => [ '#shoporders', { action => "ShopOrder/list" } ],
314
        ],
315
         link => [
316
          t8('Shoporders'),
317
          link => [ $self->url_for(action => 'get_orders') ],
318
          tooltip => t8('New shop orders'),
319
        ],
320
        'separator',
321
        action => [
322
          t8('Apply'),
323
          call => [ 'kivi.ShopOrder.setup', id => "mass_transfer" ],
324
          tooltip => t8('Transfer all marked'),
325
        ],
326
    );
327
  }
328
}
329

  
306 330
1;
307 331

  
308 332
__END__
templates/webpages/shop_order/_filter.html
3 3
[%- USE LxERP %]
4 4
[%- USE HTML %]
5 5
 <form method="post" action="controller.pl" name="shop_orders" id="shoporders">
6
 [% L.submit_tag('action_get_orders',LxERP.t8('New shop orders')) %]
7 6
 <table id='filter_table'>
8 7

  
9 8
    <tr>
......
32 31

  
33 32
<a href='#' onClick='javascript:$("#filter_table input").val("");$("#filter_table input[type=checkbox]").prop("checked", 0);'>[% 'Reset' | $T8 %]</a>
34 33
<br>
35

  
36
 [% L.hidden_tag('action', 'ShopOrder/dispatch') %]
37
 [% L.submit_tag('action_list',LxERP.t8('renew')) %]
38

  
templates/webpages/shop_order/list.html
179 179
  [% END %]
180 180
 </table>
181 181
 <hr>
182
  <p>
183
  [% L.button_tag("kivi.ShopOrder.setup();", LxERP.t8("Transfer all marked"), id="mass_transfer") %]
184
  </p>
185 182
  <div id="status_mass_transfer" style="display: none;">
186 183
    [%- INCLUDE 'shop_order/_transfer_status.html' %]
187 184
  </div>

Auch abrufbar als: Unified diff