1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-01 10:50:37 +02:00

UI Improvements - Plugins - Layout fixes #194

This commit is contained in:
Awilum
2014-01-12 15:12:45 +02:00
parent 1dbd208832
commit fae12cefda

View File

@@ -22,10 +22,10 @@
<tr>
<th width="3%"></th>
<th><?php echo __('Name', 'pages'); ?></th>
<th><?php echo __('Author', 'pages'); ?></th>
<th><?php echo __('Status', 'pages'); ?></th>
<th><?php echo __('Access', 'pages'); ?></th>
<th><?php echo __('Date', 'pages'); ?></th>
<th class="visible-lg hidden-xs"><?php echo __('Author', 'pages'); ?></th>
<th class="visible-lg hidden-xs"><?php echo __('Status', 'pages'); ?></th>
<th class="visible-lg"><?php echo __('Access', 'pages'); ?></th>
<th class="visible-lg hidden-xs"><?php echo __('Date', 'pages'); ?></th>
<th></th>
</tr>
</thead>
@@ -60,47 +60,45 @@
echo $dash.Html::anchor(Html::toText($page['title']), $site_url.'/'.$parent.$page['slug'], array('target' => '_blank', 'rel' => 'children_'.$_parent));
?>
</td>
<td>
<td class="visible-lg hidden-xs">
<?php echo $page['author']; ?>
</td>
<td>
<td class="visible-lg hidden-xs">
<?php echo $page['status']; ?>
</td>
<td>
<td class="visible-lg">
<?php echo $page['access']; ?>
</td>
<td>
<td class="visible-lg hidden-xs">
<?php echo Date::format($page['date'], "j.n.Y"); ?>
</td>
<td>
<div class="pull-right">
<div class="btn-group">
<?php echo Html::anchor(__('Edit', 'pages'), 'index.php?id=pages&action=edit_page&name='.$page['slug'], array('class' => 'btn btn-primary')); ?>
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu" role="menu">
<?php if ($page['parent'] == '') { ?>
<li><a href="index.php?id=pages&action=add_page&parent_page=<?php echo $page['slug']; ?>" title="<?php echo __('Create New Page', 'pages'); ?>"><?php echo __('Add', 'pages'); ?></a></li>
<?php } ?>
<li><?php echo Html::anchor(__('Clone', 'pages'), 'index.php?id=pages&action=clone_page&name='.$page['slug'].'&token='.Security::token(), array('title' => __('Clone', 'pages'))); ?></li>
<li class="divider"></li>
<li class="dropdown-header"><?php echo __('Status', 'pages'); ?></li>
<li><a href="index.php?id=pages&action=update_status&slug=<?php echo $page['slug']; ?>&status=published&token=<?php echo Security::token(); ?>"><?php echo __('Published', 'pages'); ?> <?php if ($page['_status'] == 'published') { ?><i class="glyphicon glyphicon-ok"></i><?php } ?></a></li>
<li><a href="index.php?id=pages&action=update_status&slug=<?php echo $page['slug']; ?>&status=draft&token=<?php echo Security::token(); ?>"><?php echo __('Draft', 'pages'); ?> <?php if ($page['_status'] == 'draft') { ?><i class="glyphicon glyphicon-ok"></i><?php } ?></a></li>
<li class="dropdown-header"><?php echo __('Access', 'pages'); ?></li>
<li><a href="index.php?id=pages&action=update_access&slug=<?php echo $page['slug']; ?>&access=public&token=<?php echo Security::token(); ?>"><?php echo __('Public', 'pages'); ?> <?php if ($page['_access'] == 'public') { ?><i class="glyphicon glyphicon-ok"></i><?php } ?></a></li>
<li><a href="index.php?id=pages&action=update_access&slug=<?php echo $page['slug']; ?>&access=registered&token=<?php echo Security::token(); ?>"><?php echo __('Registered', 'pages'); ?> <?php if ($page['_access'] == 'registered') { ?><i class="glyphicon glyphicon-ok"></i><?php } ?></a></li>
</ul>
</div>
<div class="btn-group">
<?php echo Html::anchor(__('Edit', 'pages'), 'index.php?id=pages&action=edit_page&name='.$page['slug'], array('class' => 'btn btn-primary')); ?>
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu" role="menu">
<?php if ($page['parent'] == '') { ?>
<li><a href="index.php?id=pages&action=add_page&parent_page=<?php echo $page['slug']; ?>" title="<?php echo __('Create New Page', 'pages'); ?>"><?php echo __('Add', 'pages'); ?></a></li>
<?php } ?>
<li><?php echo Html::anchor(__('Clone', 'pages'), 'index.php?id=pages&action=clone_page&name='.$page['slug'].'&token='.Security::token(), array('title' => __('Clone', 'pages'))); ?></li>
<li class="divider"></li>
<li class="dropdown-header"><?php echo __('Status', 'pages'); ?></li>
<li><a href="index.php?id=pages&action=update_status&slug=<?php echo $page['slug']; ?>&status=published&token=<?php echo Security::token(); ?>"><?php echo __('Published', 'pages'); ?> <?php if ($page['_status'] == 'published') { ?><i class="glyphicon glyphicon-ok"></i><?php } ?></a></li>
<li><a href="index.php?id=pages&action=update_status&slug=<?php echo $page['slug']; ?>&status=draft&token=<?php echo Security::token(); ?>"><?php echo __('Draft', 'pages'); ?> <?php if ($page['_status'] == 'draft') { ?><i class="glyphicon glyphicon-ok"></i><?php } ?></a></li>
<li class="dropdown-header"><?php echo __('Access', 'pages'); ?></li>
<li><a href="index.php?id=pages&action=update_access&slug=<?php echo $page['slug']; ?>&access=public&token=<?php echo Security::token(); ?>"><?php echo __('Public', 'pages'); ?> <?php if ($page['_access'] == 'public') { ?><i class="glyphicon glyphicon-ok"></i><?php } ?></a></li>
<li><a href="index.php?id=pages&action=update_access&slug=<?php echo $page['slug']; ?>&access=registered&token=<?php echo Security::token(); ?>"><?php echo __('Registered', 'pages'); ?> <?php if ($page['_access'] == 'registered') { ?><i class="glyphicon glyphicon-ok"></i><?php } ?></a></li>
</ul>
</div>
<?php echo Html::anchor(__('Delete', 'pages'),
'index.php?id=pages&action=delete_page&name='.$page['slug'].'&token='.Security::token(),
array('class' => 'btn btn-danger btn-actions btn-actions-default', 'onclick' => "return confirmDelete('".__("Delete page: :page", 'pages', array(':page' => Html::toText($page['title'])))."')"));
?>
<?php echo Html::anchor(__('Delete', 'pages'),
'index.php?id=pages&action=delete_page&name='.$page['slug'].'&token='.Security::token(),
array('class' => 'btn btn-danger btn-actions btn-actions-default', 'onclick' => "return confirmDelete('".__("Delete page: :page", 'pages', array(':page' => Html::toText($page['title'])))."')"));
?>
</div>
</td>
</tr>