Commit d0f33a648ec75c0c70d5744d120336daebe4a979
1 parent
627a1028
change request to massage
Showing
1 changed file
with
26 additions
and
7 deletions
Show diff stats
src/app/frontend/views/series_of_letters/index.php
| 1 | -<?php | |
| 2 | -/** | |
| 3 | - * Created by PhpStorm. | |
| 4 | - * User: vitaliy | |
| 5 | - * Date: 10.09.15 | |
| 6 | - * Time: 13:37 | |
| 7 | - */ | |
| 8 | 1 | \ No newline at end of file |
| 2 | +<h1>Серии писем</h1> | |
| 3 | +<div class="inner"><?= $this->flash->output(); ?></div> | |
| 4 | +<a class="btn btn-primary" href="<?= $this->url->get([ 'for' => 'email_templates_add' ]) ?>">Добавить</a> | |
| 5 | +<table class="table table-hover" data-url=""> | |
| 6 | + <thead> | |
| 7 | + <tr> | |
| 8 | + <th id="id">#</th> | |
| 9 | + <th id="name"><p>Название</p></th> | |
| 10 | + <th class="table-buttons"></th> | |
| 11 | + </tr> | |
| 12 | + </thead> | |
| 13 | + <tbody id="result"> | |
| 14 | + | |
| 15 | + <?php foreach ($data as $item):?> | |
| 16 | + <tr> | |
| 17 | + <td><?=$item->id; ?></td> | |
| 18 | + <td><?= $item->title; ?></td> | |
| 19 | + <td> | |
| 20 | + <a href="<?= $this->url->get([ 'for' => 'email_templates_delete', "id"=>$item->id ]) ?>" class="action-img delete_icon" onclick="return confirm('Вы действительно хотите удалить пункт?')" title="Удалить"></a> | |
| 21 | + <a href="<?= $this->url->get([ 'for' => 'email_templates_update', "id"=>$item->id ]) ?>" class="action-img edit-icon" title="Редактировать"></a> | |
| 22 | + </td> | |
| 23 | + </tr> | |
| 24 | + <?php endforeach; ?> | |
| 25 | + </tbody> | |
| 26 | +</table> | |
| 27 | +<a class="btn btn-primary" href="<?= $this->url->get([ 'for' => 'email_templates_add' ]) ?>">Добавить</a> | |
| 9 | 28 | \ No newline at end of file | ... | ... |