Revize 601eec74
Přidáno uživatelem Jan Šedivý před více než 5 roky(ů)
app/AdminModule/component/Surface/SurfaceGrid.php | ||
---|---|---|
20 | 20 |
{ |
21 | 21 |
$this->surfaceTypeRepository = $surfaceTypeRepository; |
22 | 22 |
|
23 |
parent::__construct(); |
|
23 |
parent::__construct(FALSE);
|
|
24 | 24 |
|
25 | 25 |
} |
26 | 26 |
|
... | ... | |
42 | 42 |
$this->addColumnText(SurfaceTypeRepository::COLUMN_SURFACE_TYPE, 'Surface Type'); |
43 | 43 |
$this->addColumnText(SurfaceTypeRepository::COLUMN_SORTER, 'Sort Position'); |
44 | 44 |
|
45 |
$this->addFilterText(SurfaceTypeRepository::COLUMN_SURFACE_TYPE, 'Surface Type'); |
|
46 |
|
|
45 | 47 |
$this->addAction('edit', 'edit', 'Surface:editType', ['id' => SurfaceTypeRepository::COLUMN_ID]) |
46 | 48 |
->setTitle('Edit'); |
47 | 49 |
|
app/AdminModule/presenters/SurfacePresenter.php | ||
---|---|---|
8 | 8 |
use App\Enum\EFlashMessage; |
9 | 9 |
use App\Model\Repository\SurfaceTypeRepository; |
10 | 10 |
|
11 |
class SurfacePresenter extends BaseAdminPresenter
|
|
11 |
class SurfacePresenter extends BaseUserPresenter
|
|
12 | 12 |
{ |
13 | 13 |
/** @var ISurfaceTypeGridFactory */ |
14 | 14 |
private $surfaceTypeGridFactory; |
app/AdminModule/templates/Museum/add.latte | ||
---|---|---|
1 | 1 |
{block content} |
2 | 2 |
<div class="row"> |
3 | 3 |
<div class="col-11"> |
4 |
<h4>New Museum</h4>
|
|
4 |
<div class="display-5">New Museum</div>
|
|
5 | 5 |
</div> |
6 | 6 |
<div class="col-1"> |
7 | 7 |
<a n:href="Museum:default" class="btn btn-sm btn-success"><span class="fa fa-fw fa-list"></span> Museum list</a> |
app/AdminModule/templates/Museum/default.latte | ||
---|---|---|
1 | 1 |
{block content} |
2 | 2 |
<div class="row"> |
3 | 3 |
<div class="col-11"> |
4 |
<h4>Museum List</h4>
|
|
4 |
<div class="display-5">Museum List</div>
|
|
5 | 5 |
</div> |
6 | 6 |
<div class="col-1"> |
7 | 7 |
<a n:href="Museum:add" class="btn btn-sm btn-success"><span class="fa fa-fw fa-plus"></span> New Museum</a> |
app/AdminModule/templates/Museum/edit.latte | ||
---|---|---|
1 | 1 |
{block content} |
2 | 2 |
<div class="row"> |
3 | 3 |
<div class="col-11"> |
4 |
<h4>Edit Museum</h4>
|
|
4 |
<div class="display-5">Edit Museum</div>
|
|
5 | 5 |
</div> |
6 | 6 |
<div class="col-1"> |
7 | 7 |
<a n:href="Museum:default" class="btn btn-sm btn-success"><span class="fa fa-fw fa-list"></span> Museum list</a> |
Také k dispozici: Unified diff
Re #7336 Změna extendujícího presenteru