Revision a2b654b7
Von Kivitendo Admin vor etwa 9 Jahren hinzugefügt
SL/Controller/Business.pm | ||
---|---|---|
23 | 23 |
my ($self) = @_; |
24 | 24 |
|
25 | 25 |
$self->render('business/list', |
26 |
title => $::locale->text('Businesses'),
|
|
27 |
BUSINESSS => SL::DB::Manager::Business->get_all_sorted); |
|
26 |
title => $::locale->text('Businesses'), |
|
27 |
BUSINESSES => SL::DB::Manager::Business->get_all_sorted);
|
|
28 | 28 |
} |
29 | 29 |
|
30 | 30 |
sub action_new { |
templates/webpages/business/list.html | ||
---|---|---|
4 | 4 |
[%- INCLUDE 'common/flash.html' %] |
5 | 5 |
|
6 | 6 |
<form method="post" action="controller.pl"> |
7 |
[% IF !BUSINESSS.size %] |
|
7 |
[% IF !BUSINESSES.size %]
|
|
8 | 8 |
<p> |
9 | 9 |
[%- LxERP.t8('No business has been created yet.') %] |
10 | 10 |
</p> |
... | ... | |
23 | 23 |
</thead> |
24 | 24 |
|
25 | 25 |
<tbody> |
26 |
[%- FOREACH business = BUSINESSS %] |
|
26 |
[%- FOREACH business = BUSINESSES %]
|
|
27 | 27 |
<tr class="listrow[% loop.count % 2 %]" id="business_id_[% business.id %]"> |
28 | 28 |
<td> |
29 | 29 |
<a href="[% SELF.url_for(action => 'edit', id => business.id) %]"> |
Auch abrufbar als: Unified diff
Typo: BUSINESSES statt BUSINESSS