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

UI Improvements - Admin Default Theme - Updates #194

This commit is contained in:
Awilum
2014-02-14 21:35:56 +02:00
parent e436317d7e
commit e3d0da1047
22 changed files with 34 additions and 74 deletions

View File

@@ -1,11 +1,10 @@
<script>$().ready(function(){$('[name=create_backup]').click(function(){$(this).button('loading');});});</script> <script>$().ready(function(){$('[name=create_backup]').click(function(){$(this).button('loading');});});</script>
<div> <div class="vertical-align margin-bottom-1em">
<div class="pull-left"> <div class="text-left">
<h2><?php echo __('Backups', 'backup'); ?></h2> <h2><?php echo __('Backups', 'backup'); ?></h2>
</div> </div>
<div class="pull-right"> <div class="text-right">
<br>
<?php <?php
echo ( echo (
Form::open(null, array('class' => 'form-inline')) . Form::open(null, array('class' => 'form-inline')) .
@@ -15,11 +14,8 @@
); );
?> ?>
</div> </div>
<div class="clearfix"></div>
</div> </div>
<br>
<!-- Backup_list --> <!-- Backup_list -->
<table class="table table-bordered"> <table class="table table-bordered">
<thead> <thead>

View File

@@ -1,5 +1,4 @@
<h2><?php echo __('New Block', 'blocks'); ?></h2> <h2 class="margin-bottom-1em"><?php echo __('New Block', 'blocks'); ?></h2>
<br>
<?php if (isset($errors['blocks_empty_name']) or isset($errors['blocks_exists'])) $error_class = 'error'; else $error_class = ''; ?> <?php if (isset($errors['blocks_empty_name']) or isset($errors['blocks_exists'])) $error_class = 'error'; else $error_class = ''; ?>

View File

@@ -1,5 +1,4 @@
<h2><?php echo __('Edit Block', 'blocks'); ?></h2> <h2 class="margin-bottom-1em"><?php echo __('Edit Block', 'blocks'); ?></h2>
<br>
<?php <?php
if ($content !== null) { if ($content !== null) {

View File

@@ -1,20 +1,16 @@
<div> <div class="vertical-align margin-bottom-1em">
<div class="pull-left"> <div class="text-left">
<h2><?php echo __('Blocks', 'blocks'); ?></h2> <h2><?php echo __('Blocks', 'blocks'); ?></h2>
</div> </div>
<div class="pull-right"> <div class="text-right">
<br>
<?php <?php
echo ( echo (
Html::anchor(__('Create New Block', 'blocks'), 'index.php?id=blocks&action=add_block', array('title' => __('Create New Block', 'blocks'), 'class' => 'btn btn-primary')). Html::nbsp(3) Html::anchor(__('Create New Block', 'blocks'), 'index.php?id=blocks&action=add_block', array('title' => __('Create New Block', 'blocks'), 'class' => 'btn btn-primary')). Html::nbsp(3)
); );
?> ?>
</div> </div>
<div class="clearfix"></div>
</div> </div>
<br>
<!-- Blocks_list --> <!-- Blocks_list -->
<table class="table table-bordered"> <table class="table table-bordered">
<thead> <thead>

View File

@@ -1,5 +1,5 @@
<h2><?php echo __('Edit Email Template', 'emails'); ?></h2> <h2 class="margin-bottom-1em"><?php echo __('Edit Email Template', 'emails'); ?></h2>
<br>
<?php <?php
if ($content !== null) { if ($content !== null) {
echo (Form::open()); echo (Form::open());

View File

@@ -1,20 +1,16 @@
<div> <div class="vertical-align margin-bottom-1em">
<div class="pull-left"> <div class="text-left">
<h2><?php echo __('Emails', 'emails'); ?></h2> <h2><?php echo __('Emails', 'emails'); ?></h2>
</div> </div>
<div class="pull-right"> <div class="text-right">
<br>
<?php <?php
echo ( echo (
Html::anchor(__('Edit Layout', 'emails'), 'index.php?id=emails&action=edit_email_template&filename=layout', array('title' => __('Edit Layout', 'emails'), 'class' => 'btn btn-primary')) Html::anchor(__('Edit Layout', 'emails'), 'index.php?id=emails&action=edit_email_template&filename=layout', array('title' => __('Edit Layout', 'emails'), 'class' => 'btn btn-primary'))
); );
?> ?>
</div> </div>
<div class="clearfix"></div>
</div> </div>
<br>
<table class="table table-bordered"> <table class="table table-bordered">
<thead> <thead>
<tr> <tr>

View File

@@ -1,5 +1,4 @@
<h2><?php echo __('Files', 'filesmanager'); ?></h2> <h2 class="margin-bottom-1em"><?php echo __('Files', 'filesmanager'); ?></h2>
<br>
<input type="hidden" id="fUploaderInit" value='<?php echo json_encode($fileuploader); ?>' /> <input type="hidden" id="fUploaderInit" value='<?php echo json_encode($fileuploader); ?>' />

View File

@@ -1,5 +1,4 @@
<h2><?php echo __('Information', 'information'); ?></h2> <h2 class="margin-bottom-1em"><?php echo __('Information', 'information'); ?></h2>
<br>
<div class="tabbable"> <div class="tabbable">
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">

View File

@@ -1,5 +1,4 @@
<h2><?php echo __('New item', 'menu'); ?></h2> <h2 class="margin-bottom-1em"><?php echo __('New item', 'menu'); ?></h2>
<br>
<?php echo (Form::open()); ?> <?php echo (Form::open()); ?>
<?php echo (Form::hidden('csrf', Security::token())); ?> <?php echo (Form::hidden('csrf', Security::token())); ?>

View File

@@ -1,5 +1,4 @@
<h2><?php echo __('Edit item', 'menu'); ?></h2> <h2 class="margin-bottom-1em"><?php echo __('Edit item', 'menu'); ?></h2>
<br>
<div class="row"> <div class="row">
<div class="col-md-6"> <div class="col-md-6">

View File

@@ -1,5 +1,4 @@
<h2><?php echo __('Menu', 'menu'); ?></h2> <h2 class="margin-bottom-1em"><?php echo __('Menu', 'menu'); ?></h2>
<br>
<?php if ($menu->count() == 0) { ?> <?php if ($menu->count() == 0) { ?>
<div> <div>

View File

@@ -1,5 +1,4 @@
<h2><?php echo __('New Page', 'pages'); ?></h2> <h2 class="margin-bottom-1em"><?php echo __('New Page', 'pages'); ?></h2>
<br>
<?php <?php
echo ( echo (

View File

@@ -1,5 +1,4 @@
<h2><?php if (Request::get('name') == 'error404') { echo __('Edit 404 Page', 'pages'); } else { echo __('Edit Page', 'pages'); } ?></h2> <h2 class="margin-bottom-1em"><?php if (Request::get('name') == 'error404') { echo __('Edit 404 Page', 'pages'); } else { echo __('Edit Page', 'pages'); } ?></h2>
<br>
<?php <?php
echo ( echo (

View File

@@ -1,9 +1,8 @@
<div> <div class="vertical-align margin-bottom-1em">
<div class="pull-left"> <div class="text-left">
<h2><?php echo __('Pages', 'pages'); ?></h2> <h2><?php echo __('Pages', 'pages'); ?></h2>
</div> </div>
<div class="pull-right"> <div class="text-right">
<br>
<?php <?php
echo ( echo (
Html::anchor(__('Create New Page', 'pages'), 'index.php?id=pages&action=add_page', array('title' => __('Create New Page', 'pages'), 'class' => 'btn btn-primary')). Html::nbsp(3). Html::anchor(__('Create New Page', 'pages'), 'index.php?id=pages&action=add_page', array('title' => __('Create New Page', 'pages'), 'class' => 'btn btn-primary')). Html::nbsp(3).
@@ -11,12 +10,8 @@
); );
?> ?>
</div> </div>
<div class="clearfix"></div>
</div> </div>
<br>
<table class="table table-bordered"> <table class="table table-bordered">
<thead> <thead>
<tr> <tr>

View File

@@ -1,5 +1,4 @@
<h2><?php echo __('Plugins', 'plugins'); ?></h2> <h2 class="margin-bottom-1em"><?php echo __('Plugins', 'plugins'); ?></h2>
<br>
<input type="hidden" id="fUploaderInit" value='<?php echo json_encode($fileuploader); ?>' /> <input type="hidden" id="fUploaderInit" value='<?php echo json_encode($fileuploader); ?>' />

View File

@@ -1,6 +1,4 @@
<h2><?php echo __('New Snippet', 'snippets'); ?></h2> <h2 class="margin-bottom-1em"><?php echo __('New Snippet', 'snippets'); ?></h2>
<br>
<?php if (isset($errors['snippets_empty_name']) or isset($errors['snippets_exists'])) $error_class = 'error'; else $error_class = ''; ?> <?php if (isset($errors['snippets_empty_name']) or isset($errors['snippets_exists'])) $error_class = 'error'; else $error_class = ''; ?>

View File

@@ -1,5 +1,4 @@
<h2><?php echo __('Edit Snippet', 'snippets'); ?></h2> <h2 class="margin-bottom-1em"><?php echo __('Edit Snippet', 'snippets'); ?></h2>
<br>
<?php <?php
if ($content !== null) { if ($content !== null) {

View File

@@ -1,20 +1,16 @@
<div> <div class="vertical-align margin-bottom-1em">
<div class="pull-left"> <div class="text-left">
<h2><?php echo __('Snippets', 'snippets'); ?></h2> <h2><?php echo __('Snippets', 'snippets'); ?></h2>
</div> </div>
<div class="pull-right"> <div class="text-right">
<br>
<?php <?php
echo ( echo (
Html::anchor(__('Create New Snippet', 'snippets'), 'index.php?id=snippets&action=add_snippet', array('title' => __('Create New Snippet', 'snippets'), 'class' => 'btn btn-primary')). Html::nbsp(3) Html::anchor(__('Create New Snippet', 'snippets'), 'index.php?id=snippets&action=add_snippet', array('title' => __('Create New Snippet', 'snippets'), 'class' => 'btn btn-primary')). Html::nbsp(3)
); );
?> ?>
</div> </div>
<div class="clearfix"></div>
</div> </div>
<br>
<!-- Snippets_list --> <!-- Snippets_list -->
<table class="table table-bordered"> <table class="table table-bordered">
<thead> <thead>

View File

@@ -7,7 +7,7 @@
<?php } ?> <?php } ?>
<?php Action::run('admin_system_extra_buttons'); ?> <?php Action::run('admin_system_extra_buttons'); ?>
<hr /> <hr>
<div class="row"> <div class="row">
<div class="col-md-6"> <div class="col-md-6">

View File

@@ -1,8 +1,7 @@
<!-- Users_add --> <!-- Users_add -->
<h2><?php echo __('New User Registration', 'users'); ?></h2> <h2 class="margin-bottom-1em"><?php echo __('New User Registration', 'users'); ?></h2>
<?php <?php
echo ( echo (
Html::br().
Form::open(). Form::open().
Form::hidden('csrf', Security::token()) Form::hidden('csrf', Security::token())
); );

View File

@@ -2,9 +2,7 @@
// Show template for exist user else show error // Show template for exist user else show error
if ($user !== null) { if ($user !== null) {
?> ?>
<h2><?php echo __('Edit profile', 'users'); ?></h2> <h2 class="margin-bottom-1em"><?php echo __('Edit profile', 'users'); ?></h2>
<br>
<div class="row"> <div class="row">
<div class="col-md-6"> <div class="col-md-6">

View File

@@ -1,9 +1,8 @@
<h2><?php echo __('Users', 'users'); ?></h2> <h2 class="margin-bottom-1em"><?php echo __('Users', 'users'); ?></h2>
<br>
<?php echo Html::anchor(__('Register New User', 'users'), 'index.php?id=users&action=add', array('title' => __('Register New User', 'users'), 'class' => 'btn btn-primary')); ?> <?php echo Html::anchor(__('Register New User', 'users'), 'index.php?id=users&action=add', array('title' => __('Register New User', 'users'), 'class' => 'btn btn-primary')); ?>
<div class="pull-right"> <div class="pull-right margin-bottom-1em">
<?php echo Form::open(null, array('name' => 'users_frontend')); ?> <?php echo Form::open(null, array('name' => 'users_frontend')); ?>
<?php echo Form::hidden('csrf', Security::token()); ?> <?php echo Form::hidden('csrf', Security::token()); ?>
<div class="checkbox"> <div class="checkbox">
@@ -15,8 +14,6 @@
<?php echo Form::close();?> <?php echo Form::close();?>
</div> </div>
<br><br>
<!-- Users_list --> <!-- Users_list -->
<table class="table table-bordered"> <table class="table table-bordered">
<thead> <thead>