2014-06-19 08:44:35 +02:00
|
|
|
<div class="templates index">
|
2018-01-12 11:33:11 +01:00
|
|
|
<h2><?php echo __('Templates');?></h2>
|
2014-06-19 08:44:35 +02:00
|
|
|
<div class="pagination">
|
2017-05-08 00:37:06 +02:00
|
|
|
<ul>
|
|
|
|
<?php
|
|
|
|
$this->Paginator->options(array(
|
|
|
|
'update' => '.span12',
|
|
|
|
'evalScripts' => true,
|
|
|
|
'before' => '$(".progress").show()',
|
|
|
|
'complete' => '$(".progress").hide()',
|
|
|
|
));
|
2014-06-19 08:44:35 +02:00
|
|
|
|
2017-05-08 00:37:06 +02:00
|
|
|
echo $this->Paginator->prev('« ' . __('previous'), array('tag' => 'li', 'escape' => false), null, array('tag' => 'li', 'class' => 'prev disabled', 'escape' => false, 'disabledTag' => 'span'));
|
|
|
|
echo $this->Paginator->numbers(array('modulus' => 20, 'separator' => '', 'tag' => 'li', 'currentClass' => 'active', 'currentTag' => 'span'));
|
|
|
|
echo $this->Paginator->next(__('next') . ' »', array('tag' => 'li', 'escape' => false), null, array('tag' => 'li', 'class' => 'next disabled', 'escape' => false, 'disabledTag' => 'span'));
|
|
|
|
?>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2014-06-19 08:44:35 +02:00
|
|
|
<table class="table table-striped table-hover table-condensed">
|
|
|
|
<tr>
|
|
|
|
<th><?php echo $this->Paginator->sort('id');?></th>
|
|
|
|
<th><?php echo $this->Paginator->sort('org');?></th>
|
|
|
|
<th><?php echo $this->Paginator->sort('share');?></th>
|
|
|
|
<th><?php echo $this->Paginator->sort('name');?></th>
|
|
|
|
<th><?php echo $this->Paginator->sort('description');?></th>
|
|
|
|
<?php if ($isAclTemplate): ?>
|
|
|
|
<th class="actions"><?php echo __('Actions');?></th>
|
|
|
|
<?php endif; ?>
|
|
|
|
</tr><?php
|
|
|
|
foreach ($list as $item): ?>
|
|
|
|
<tr>
|
2015-11-17 01:14:51 +01:00
|
|
|
<td class="short" onclick="document.location.href ='<?php echo $baseurl."/templates/view/".$item['Template']['id']; ?>'"><?php echo h($item['Template']['id']); ?> </td>
|
|
|
|
<td class="short" onclick="document.location.href ='<?php echo $baseurl."/templates/view/".$item['Template']['id']; ?>'">
|
2014-10-07 17:53:22 +02:00
|
|
|
<?php
|
2018-01-19 15:55:27 +01:00
|
|
|
echo $this->OrgImg->getOrgImg(array('name' => $item['Template']['org'], 'size' => 24));
|
2014-10-07 17:53:22 +02:00
|
|
|
?>
|
|
|
|
|
|
|
|
</td>
|
2015-11-17 01:14:51 +01:00
|
|
|
<td class="short" onclick="document.location.href ='<?php echo $baseurl."/templates/view/".$item['Template']['id']; ?>'"><?php if ($item['Template']['share']) echo 'Yes'; else echo 'No'; ?> </td>
|
|
|
|
<td onclick="document.location.href ='<?php echo $baseurl."/templates/view/".$item['Template']['id']; ?>'"><?php echo h($item['Template']['name']); ?> </td>
|
|
|
|
<td onclick="document.location.href ='<?php echo $baseurl."/templates/view/".$item['Template']['id']; ?>'"><?php echo h($item['Template']['description']); ?> </td>
|
2016-02-05 19:29:17 +01:00
|
|
|
<?php if ($isAclTemplate): ?>
|
2014-06-19 08:44:35 +02:00
|
|
|
<td class="short action-links">
|
|
|
|
<?php echo $this->Html->link('', array('action' => 'edit', $item['Template']['id']), array('class' => 'icon-edit', 'title' => 'Edit'));?>
|
2016-06-04 01:10:45 +02:00
|
|
|
<?php echo $this->Form->postLink('', array('action' => 'delete', $item['Template']['id']), array('class' => 'icon-trash', 'title' => 'Delete'), __('Are you sure you want to delete Template #' . $item['Template']['id'] . '?'));?>
|
2014-06-19 08:44:35 +02:00
|
|
|
</td>
|
|
|
|
<?php endif; ?>
|
|
|
|
</tr><?php
|
|
|
|
endforeach; ?>
|
|
|
|
</table>
|
|
|
|
<p>
|
2017-05-08 00:37:06 +02:00
|
|
|
<?php
|
|
|
|
echo $this->Paginator->counter(array(
|
|
|
|
'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
|
|
|
|
));
|
|
|
|
?>
|
|
|
|
</p>
|
|
|
|
<div class="pagination">
|
|
|
|
<ul>
|
|
|
|
<?php
|
|
|
|
echo $this->Paginator->prev('« ' . __('previous'), array('tag' => 'li', 'escape' => false), null, array('tag' => 'li', 'class' => 'prev disabled', 'escape' => false, 'disabledTag' => 'span'));
|
|
|
|
echo $this->Paginator->numbers(array('modulus' => 20, 'separator' => '', 'tag' => 'li', 'currentClass' => 'active', 'currentTag' => 'span'));
|
|
|
|
echo $this->Paginator->next(__('next') . ' »', array('tag' => 'li', 'escape' => false), null, array('tag' => 'li', 'class' => 'next disabled', 'escape' => false, 'disabledTag' => 'span'));
|
|
|
|
?>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2014-06-19 08:44:35 +02:00
|
|
|
|
|
|
|
</div>
|
2016-06-04 01:10:45 +02:00
|
|
|
<?php
|
2014-06-19 08:44:35 +02:00
|
|
|
echo $this->element('side_menu', array('menuList' => 'templates', 'menuItem' => 'index'));
|