2015-11-24 03:27:14 +01:00
|
|
|
<div class="taxonomies index">
|
2018-01-12 10:03:26 +01:00
|
|
|
<h2><?php echo __('Taxonomies');?></h2>
|
2015-11-24 03:27:14 +01: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()',
|
|
|
|
));
|
2015-11-24 03:27:14 +01: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>
|
2015-11-24 03:27:14 +01: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('namespace');?></th>
|
|
|
|
<th><?php echo $this->Paginator->sort('description');?></th>
|
|
|
|
<th><?php echo $this->Paginator->sort('version');?></th>
|
|
|
|
<th><?php echo $this->Paginator->sort('enabled');?></th>
|
2018-01-12 11:33:23 +01:00
|
|
|
<th><?php echo __('Active Tags');?></th>
|
2015-11-24 03:27:14 +01:00
|
|
|
<th class="actions"><?php echo __('Actions');?></th>
|
|
|
|
</tr><?php
|
|
|
|
foreach ($taxonomies as $item): ?>
|
|
|
|
<tr>
|
|
|
|
<td class="short" ondblclick="document.location.href ='<?php echo $baseurl."/taxonomies/view/".h($item['Taxonomy']['id']);?>'"><?php echo h($item['Taxonomy']['id']); ?> </td>
|
|
|
|
<td class="short" ondblclick="document.location.href ='<?php echo $baseurl."/taxonomies/view/".h($item['Taxonomy']['id']);?>'"><?php echo h($item['Taxonomy']['namespace']); ?> </td>
|
2016-06-04 01:10:45 +02:00
|
|
|
<td ondblclick="document.location.href ='<?php echo $baseurl."/taxonomies/view/".h($item['Taxonomy']['id']);?>'"><?php echo h($item['Taxonomy']['description']); ?> </td>
|
|
|
|
<td class="short" ondblclick="document.location.href ='<?php echo $baseurl."/taxonomies/view/".h($item['Taxonomy']['id']);?>'"><?php echo h($item['Taxonomy']['version']); ?> </td>
|
2016-02-04 18:21:02 +01:00
|
|
|
<td class="short" ondblclick="document.location.href ='<?php echo $baseurl."/taxonomies/view/".h($item['Taxonomy']['id']);?>'"><?php echo $item['Taxonomy']['enabled'] ? '<span class="green">Yes</span>' : '<span class="red">No</span>'; ?> </td>
|
2018-01-12 10:03:26 +01:00
|
|
|
<td class="shortish"><span><span class="bold"><?php echo h($item['current_count']);?></span> / <?php echo h($item['total_count']);?> <?php if ($item['current_count'] != $item['total_count'] && $isSiteAdmin && $item['Taxonomy']['enabled']) echo '(' . $this->Form->postLink(__('enable all'), array('action' => 'addTag', h($item['Taxonomy']['id'])), array('title' => __('Enable all tags')), (__('Are you sure you want to enable every tag associated to this taxonomy?'))) . ')'; ?></span></td>
|
2015-11-24 03:27:14 +01:00
|
|
|
<td class="short action-links">
|
2016-06-04 01:10:45 +02:00
|
|
|
<?php
|
2015-11-24 03:27:14 +01:00
|
|
|
if ($isSiteAdmin) {
|
2016-02-04 18:21:02 +01:00
|
|
|
if ($item['Taxonomy']['enabled']) {
|
2018-01-12 10:03:26 +01:00
|
|
|
echo $this->Form->postLink('', array('action' => 'disable', h($item['Taxonomy']['id'])), array('class' => 'icon-minus', 'title' => __('Disable')), (__('Are you sure you want to disable this taxonomy library?')));
|
2015-11-24 03:27:14 +01:00
|
|
|
} else {
|
2018-01-12 10:03:26 +01:00
|
|
|
echo $this->Form->postLink('', array('action' => 'enable', h($item['Taxonomy']['id'])), array('class' => 'icon-plus', 'title' => __('Enable')), (__('Are you sure you want to enable this taxonomy library?')));
|
2015-11-24 03:27:14 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
2018-01-12 10:03:26 +01:00
|
|
|
<a href='<?php echo $baseurl."/taxonomies/view/". h($item['Taxonomy']['id']);?>' class = "icon-list-alt" title = "<?php echo __('View');?>"></a>
|
|
|
|
<span class="icon-trash useCursorPointer" title="<?php echo __('Delete taxonomy');?>" role="button" tabindex="0" aria-label="<?php echo __('Delete taxonomy');?>" onClick="deleteObject('taxonomies', 'delete', '<?php echo h($item['Taxonomy']['id']); ?>', '<?php echo h($item['Taxonomy']['id']); ?>');"></span>
|
2015-11-24 03:27:14 +01:00
|
|
|
</td>
|
|
|
|
</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>
|
2015-11-24 03:27:14 +01:00
|
|
|
</div>
|
2016-06-04 01:10:45 +02:00
|
|
|
<?php
|
2015-11-24 03:27:14 +01:00
|
|
|
echo $this->element('side_menu', array('menuList' => 'taxonomies', 'menuItem' => 'index'));
|
2016-06-06 10:09:55 +02:00
|
|
|
?>
|