1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-08 06:06:53 +02:00

UI Improvements - Admin Default Theme - Updates #194

This commit is contained in:
Awilum
2014-02-18 00:45:31 +02:00
parent ac3c4e6ac8
commit e449381555
11 changed files with 48 additions and 57 deletions

View File

@@ -7,9 +7,7 @@
<a href="javascript:;" class="btn btn-default" data-toggle="modal" data-target="#selectPageModal"><?php echo __('Select page', 'menu'); ?></a>
<a href="javascript:;" class="btn btn-default" data-toggle="modal" data-target="#selectCategoryModal"><?php echo __('Select category', 'menu'); ?></a>
<br><br>
<div class="row">
<div class="row margin-top-2em">
<div class="col-md-6">
<div class="form-group">

View File

@@ -11,10 +11,8 @@
<a href="javascript:;" class="btn btn-default" data-toggle="modal" data-toggle="modal" data-target="#selectPageModal"><?php echo __('Select page', 'menu'); ?></a>
<a href="javascript:;" class="btn btn-default" data-toggle="modal" data-toggle="modal" data-target="#selectCategoryModal"><?php echo __('Select category', 'menu'); ?></a>
<br><br>
<div class="form-group">
<div class="form-group margin-top-2em">
<?php
echo Form::label('menu_item_name', __('Item name', 'menu'));
echo Form::input('menu_item_name', $menu_item_name, array('class' => (isset($errors['menu_item_name_empty']) || isset($errors['menu_item_name_empty'])) ? 'form-control error-field' : 'form-control'));
@@ -101,4 +99,4 @@
</div>
</div>
</div>
</div>
</div>

View File

@@ -1,22 +1,18 @@
<h2 class="margin-bottom-1em"><?php echo __('Menu', 'menu'); ?></h2>
<?php if ($menu->count() == 0) { ?>
<div>
<div class="pull-left">
<div class="vertical-align margin-bottom-1em">
<div class="text-left">
<h3><?php echo __('Category', 'menu'); ?>: <?php echo 'default'; ?></h3>
</div>
<div class="pull-right">
<br>
<div class="text-right">
<?php
echo (
Html::anchor(__('Create New Item', 'menu'), 'index.php?id=menu&action=add', array('title' => __('Create New Item', 'menu'), 'class' => 'btn btn-primary'))
);
?>
</div>
<div class="clearfix"></div>
</div>
<br>
<?php } ?>
<?php
@@ -25,11 +21,11 @@
$category_to_add = ($category == '') ? '' : '&category='.$category;
?>
<div>
<div class="pull-left">
<div class="vertical-align margin-bottom-1em">
<div class="text-left">
<h3><?php echo __('Category', 'menu'); ?>: <?php echo ($category == '') ? 'default' : $category; ?></h3>
</div>
<div class="pull-right">
<div class="text-right">
<br>
<?php
echo (
@@ -37,11 +33,8 @@
);
?>
</div>
<div class="clearfix"></div>
</div>
<br>
<table class="table table-bordered">
<thead>
<tr>
@@ -84,5 +77,4 @@
<?php } ?>
</tbody>
</table>
<br>
<?php } ?>