mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-07-31 18:30:20 +02:00
UI Improvements - Admin Default Theme - Updates #194
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<script>$().ready(function(){$('[name=create_backup]').click(function(){$(this).button('loading');});});</script>
|
||||
|
||||
<div class="vertical-align margin-bottom-1em">
|
||||
<div class="vertical-align margin-bottom-1">
|
||||
<div class="text-left">
|
||||
<h2><?php echo __('Backups', 'backup'); ?></h2>
|
||||
</div>
|
||||
|
@@ -1,4 +1,4 @@
|
||||
<h2 class="margin-bottom-1em"><?php echo __('New Block', 'blocks'); ?></h2>
|
||||
<h2 class="margin-bottom-1"><?php echo __('New Block', 'blocks'); ?></h2>
|
||||
|
||||
<?php if (isset($errors['blocks_empty_name']) or isset($errors['blocks_exists'])) $error_class = 'error'; else $error_class = ''; ?>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
<?php echo (Form::hidden('csrf', Security::token())); ?>
|
||||
|
||||
<div class="form-group margin-bottom-1em">
|
||||
<div class="form-group margin-bottom-1">
|
||||
<?php echo (Form::label('name', __('Name', 'blocks'))); ?>
|
||||
<?php echo (Form::input('name', $name, array('class' => (isset($errors['blocks_empty_name']) || isset($errors['blocks_exists'])) ? 'form-control error-field' : 'form-control'))); ?>
|
||||
<?php
|
||||
@@ -15,7 +15,7 @@
|
||||
?>
|
||||
</div>
|
||||
|
||||
<div class="row margin-bottom-1em">
|
||||
<div class="row margin-bottom-1">
|
||||
<div class="col-xs-12">
|
||||
<?php Action::run('admin_editor', array(Html::toText($content))); ?>
|
||||
</div>
|
||||
|
@@ -1,4 +1,4 @@
|
||||
<h2 class="margin-bottom-1em"><?php echo __('Edit Block', 'blocks'); ?></h2>
|
||||
<h2 class="margin-bottom-1"><?php echo __('Edit Block', 'blocks'); ?></h2>
|
||||
|
||||
<?php
|
||||
if ($content !== null) {
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
?>
|
||||
|
||||
<div class="form-group margin-bottom-1em">
|
||||
<div class="form-group margin-bottom-1">
|
||||
<?php echo (Form::label('name', __('Name', 'blocks'))); ?>
|
||||
<?php echo (Form::input('name', $name, array('class' => (isset($errors['blocks_empty_name']) || isset($errors['blocks_exists'])) ? 'form-control error-field' : 'form-control'))); ?>
|
||||
<?php
|
||||
@@ -21,7 +21,7 @@
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row margin-bottom-1em">
|
||||
<div class="row margin-bottom-1">
|
||||
<div class="col-xs-12">
|
||||
<?php Action::run('admin_editor', array(Html::toText($content))); ?>
|
||||
</div>
|
||||
|
@@ -1,4 +1,4 @@
|
||||
<div class="vertical-align margin-bottom-1em">
|
||||
<div class="vertical-align margin-bottom-1">
|
||||
<div class="text-left">
|
||||
<h2><?php echo __('Blocks', 'blocks'); ?></h2>
|
||||
</div>
|
||||
|
@@ -1,4 +1,4 @@
|
||||
<h2 class="margin-bottom-1em"><?php echo __('Edit Email Template', 'emails'); ?></h2>
|
||||
<h2 class="margin-bottom-1"><?php echo __('Edit Email Template', 'emails'); ?></h2>
|
||||
|
||||
<?php
|
||||
if ($content !== null) {
|
||||
@@ -11,7 +11,7 @@ if ($content !== null) {
|
||||
<?php echo (Form::input('name', Request::get('filename'), array('disabled', 'class' => 'form-control'))); ?><span class="input-group-addon">.email.php</span>
|
||||
</div>
|
||||
|
||||
<div class="margin-top-2em margin-bottom-2em">
|
||||
<div class="margin-top-2 margin-bottom-2">
|
||||
<?php
|
||||
echo (
|
||||
Form::label('content', __('Email template content', 'emails')).
|
||||
|
@@ -1,4 +1,4 @@
|
||||
<div class="vertical-align margin-bottom-1em">
|
||||
<div class="vertical-align margin-bottom-1">
|
||||
<div class="text-left">
|
||||
<h2><?php echo __('Emails', 'emails'); ?></h2>
|
||||
</div>
|
||||
|
@@ -1,4 +1,4 @@
|
||||
<h2 class="margin-bottom-1em"><?php echo __('Files', 'filesmanager'); ?></h2>
|
||||
<h2 class="margin-bottom-1"><?php echo __('Files', 'filesmanager'); ?></h2>
|
||||
|
||||
<input type="hidden" id="fUploaderInit" value='<?php echo json_encode($fileuploader); ?>' />
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
<!-- /Filesmanager_upload_files -->
|
||||
|
||||
<!-- Filesmanger_path -->
|
||||
<ol class="breadcrumb margin-top-1em">
|
||||
<ol class="breadcrumb margin-top-1">
|
||||
|
||||
<?php
|
||||
$path_parts = explode ('/',$path);
|
||||
|
@@ -1,4 +1,4 @@
|
||||
<h2 class="margin-bottom-1em"><?php echo __('Information', 'information'); ?></h2>
|
||||
<h2 class="margin-bottom-1"><?php echo __('Information', 'information'); ?></h2>
|
||||
|
||||
<div class="tabbable">
|
||||
<ul class="nav nav-tabs">
|
||||
|
@@ -1,4 +1,4 @@
|
||||
<h2 class="margin-bottom-1em"><?php echo __('New item', 'menu'); ?></h2>
|
||||
<h2 class="margin-bottom-1"><?php echo __('New item', 'menu'); ?></h2>
|
||||
|
||||
<?php echo (Form::open()); ?>
|
||||
<?php echo (Form::hidden('csrf', Security::token())); ?>
|
||||
@@ -7,7 +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>
|
||||
|
||||
<div class="row margin-top-2em">
|
||||
<div class="row margin-top-2">
|
||||
<div class="col-md-6">
|
||||
|
||||
<div class="form-group">
|
||||
|
@@ -1,4 +1,4 @@
|
||||
<h2 class="margin-bottom-1em"><?php echo __('Edit item', 'menu'); ?></h2>
|
||||
<h2 class="margin-bottom-1"><?php echo __('Edit item', 'menu'); ?></h2>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
@@ -12,7 +12,7 @@
|
||||
<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>
|
||||
|
||||
<div class="form-group margin-top-2em">
|
||||
<div class="form-group margin-top-2">
|
||||
<?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'));
|
||||
|
@@ -1,7 +1,7 @@
|
||||
<h2 class="margin-bottom-1em"><?php echo __('Menu', 'menu'); ?></h2>
|
||||
<h2 class="margin-bottom-1"><?php echo __('Menu', 'menu'); ?></h2>
|
||||
|
||||
<?php if ($menu->count() == 0) { ?>
|
||||
<div class="vertical-align margin-bottom-1em">
|
||||
<div class="vertical-align margin-bottom-1">
|
||||
<div class="text-left">
|
||||
<h3><?php echo __('Category', 'menu'); ?>: <?php echo 'default'; ?></h3>
|
||||
</div>
|
||||
@@ -21,7 +21,7 @@
|
||||
$category_to_add = ($category == '') ? '' : '&category='.$category;
|
||||
?>
|
||||
|
||||
<div class="vertical-align margin-bottom-1em">
|
||||
<div class="vertical-align margin-bottom-1">
|
||||
<div class="text-left">
|
||||
<h3><?php echo __('Category', 'menu'); ?>: <?php echo ($category == '') ? 'default' : $category; ?></h3>
|
||||
</div>
|
||||
|
@@ -1,4 +1,4 @@
|
||||
<h2 class="margin-bottom-1em"><?php echo __('New Page', 'pages'); ?></h2>
|
||||
<h2 class="margin-bottom-1"><?php echo __('New Page', 'pages'); ?></h2>
|
||||
|
||||
<?php
|
||||
echo (
|
||||
@@ -13,7 +13,7 @@
|
||||
<li <?php if (Notification::get('settings')) { ?>class="active"<?php } ?>><a href="#settings" data-toggle="tab"><?php echo __('Settings', 'pages'); ?></a></li>
|
||||
</ul>
|
||||
|
||||
<div class="tab-content tab-page margin-bottom-1em">
|
||||
<div class="tab-content tab-page margin-bottom-1">
|
||||
<div class="tab-pane <?php if (Notification::get('page')) { ?>active<?php } ?>" id="page">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
@@ -102,13 +102,13 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row margin-bottom-1em">
|
||||
<div class="row margin-bottom-1">
|
||||
<div class="col-xs-12">
|
||||
<?php Action::run('admin_editor', array(Html::toText($post_content))); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row margin-top-1em">
|
||||
<div class="row margin-top-1">
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<div class="input-group">
|
||||
@@ -125,7 +125,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row margin-top-1em">
|
||||
<div class="row margin-top-1">
|
||||
<div class="col-xs-6">
|
||||
<?php
|
||||
echo (
|
||||
|
@@ -1,4 +1,4 @@
|
||||
<h2 class="margin-bottom-1em"><?php if (Request::get('name') == 'error404') { echo __('Edit 404 Page', 'pages'); } else { echo __('Edit Page', 'pages'); } ?></h2>
|
||||
<h2 class="margin-bottom-1"><?php if (Request::get('name') == 'error404') { echo __('Edit 404 Page', 'pages'); } else { echo __('Edit Page', 'pages'); } ?></h2>
|
||||
|
||||
<?php
|
||||
echo (
|
||||
@@ -16,7 +16,7 @@
|
||||
<li <?php if (Notification::get('settings')) { ?>class="active"<?php } ?>><a href="#settings" data-toggle="tab"><?php echo __('Settings', 'pages'); ?></a></li>
|
||||
</ul>
|
||||
|
||||
<div class="tab-content tab-page margin-bottom-1em">
|
||||
<div class="tab-content tab-page margin-bottom-1">
|
||||
<div class="tab-pane <?php if (Notification::get('page')) { ?>active<?php } ?>" id="page">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
@@ -135,13 +135,13 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row margin-bottom-1em">
|
||||
<div class="row margin-bottom-1">
|
||||
<div class="col-xs-12">
|
||||
<?php Action::run('admin_editor', array(Html::toText($to_edit))); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row margin-top-1em">
|
||||
<div class="row margin-top-1">
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<div class="input-group">
|
||||
@@ -158,7 +158,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row margin-top-1em">
|
||||
<div class="row margin-top-1">
|
||||
<div class="col-xs-6">
|
||||
<?php
|
||||
echo (
|
||||
|
@@ -1,4 +1,4 @@
|
||||
<div class="vertical-align margin-bottom-1em">
|
||||
<div class="vertical-align margin-bottom-1">
|
||||
<div class="text-left">
|
||||
<h2><?php echo __('Pages', 'pages'); ?></h2>
|
||||
</div>
|
||||
|
@@ -1,4 +1,4 @@
|
||||
<h2 class="margin-bottom-1em"><?php echo __('Plugins', 'plugins'); ?></h2>
|
||||
<h2 class="margin-bottom-1"><?php echo __('Plugins', 'plugins'); ?></h2>
|
||||
|
||||
<input type="hidden" id="fUploaderInit" value='<?php echo json_encode($fileuploader); ?>' />
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
<h2 class="margin-bottom-1em"><?php echo __('New Snippet', 'snippets'); ?></h2>
|
||||
<h2 class="margin-bottom-1"><?php echo __('New Snippet', 'snippets'); ?></h2>
|
||||
|
||||
<?php if (isset($errors['snippets_empty_name']) or isset($errors['snippets_exists'])) $error_class = 'error'; else $error_class = ''; ?>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
if (isset($errors['snippets_exists'])) echo '<span class="error-message">'.$errors['snippets_exists'].'</span>';
|
||||
?>
|
||||
|
||||
<div class="margin-top-2em margin-bottom-2em">
|
||||
<div class="margin-top-2 margin-bottom-2">
|
||||
<?php
|
||||
echo (
|
||||
Form::label('content', __('Snippet content', 'snippets')).
|
||||
|
@@ -1,4 +1,4 @@
|
||||
<h2 class="margin-bottom-1em"><?php echo __('Edit Snippet', 'snippets'); ?></h2>
|
||||
<h2 class="margin-bottom-1"><?php echo __('Edit Snippet', 'snippets'); ?></h2>
|
||||
|
||||
<?php
|
||||
if ($content !== null) {
|
||||
@@ -24,7 +24,7 @@
|
||||
if (isset($errors['snippets_exists'])) echo '<span class="error-message">'.$errors['snippets_exists'].'</span>';
|
||||
?>
|
||||
|
||||
<div class="margin-top-2em margin-bottom-2em">
|
||||
<div class="margin-top-2 margin-bottom-2">
|
||||
<?php
|
||||
echo (
|
||||
Form::label('content', __('Snippet content', 'snippets')).
|
||||
|
@@ -1,4 +1,4 @@
|
||||
<div class="vertical-align margin-bottom-1em">
|
||||
<div class="vertical-align margin-bottom-1">
|
||||
<div class="text-left">
|
||||
<h2><?php echo __('Snippets', 'snippets'); ?></h2>
|
||||
</div>
|
||||
|
@@ -11,7 +11,7 @@
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<h2 class="margin-bottom-1em"><?php echo __('Site Settings', 'system'); ?></h2>
|
||||
<h2 class="margin-bottom-1"><?php echo __('Site Settings', 'system'); ?></h2>
|
||||
<?php
|
||||
echo (
|
||||
Form::open().
|
||||
@@ -60,7 +60,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<h2 class="margin-bottom-1em"><?php echo __('System Settings', 'system'); ?></h2>
|
||||
<h2 class="margin-bottom-1"><?php echo __('System Settings', 'system'); ?></h2>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
echo (
|
||||
|
@@ -1,5 +1,5 @@
|
||||
<!-- Users_add -->
|
||||
<h2 class="margin-bottom-1em"><?php echo __('New User Registration', 'users'); ?></h2>
|
||||
<h2 class="margin-bottom-1"><?php echo __('New User Registration', 'users'); ?></h2>
|
||||
<?php
|
||||
echo (
|
||||
Form::open().
|
||||
|
@@ -2,7 +2,7 @@
|
||||
// Show template for exist user else show error
|
||||
if ($user !== null) {
|
||||
?>
|
||||
<h2 class="margin-bottom-1em"><?php echo __('Edit profile', 'users'); ?></h2>
|
||||
<h2 class="margin-bottom-1"><?php echo __('Edit profile', 'users'); ?></h2>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
|
@@ -1,8 +1,8 @@
|
||||
<h2 class="margin-bottom-1em"><?php echo __('Users', 'users'); ?></h2>
|
||||
<h2 class="margin-bottom-1"><?php echo __('Users', 'users'); ?></h2>
|
||||
|
||||
<?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 margin-bottom-1em">
|
||||
<div class="pull-right margin-bottom-1">
|
||||
<?php echo Form::open(null, array('name' => 'users_frontend')); ?>
|
||||
<?php echo Form::hidden('csrf', Security::token()); ?>
|
||||
<div class="checkbox">
|
||||
|
Reference in New Issue
Block a user