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:
@@ -6,7 +6,7 @@
|
||||
|
||||
<?php echo (Form::hidden('csrf', Security::token())); ?>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-group margin-bottom-1em">
|
||||
<?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,18 +15,17 @@
|
||||
?>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
<div class="row margin-bottom-1em">
|
||||
<div class="col-xs-12">
|
||||
<?php Action::run('admin_editor', array(Html::toText($content))); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
||||
Action::run('admin_editor', array(Html::toText($content)));
|
||||
|
||||
echo (
|
||||
Html::br().
|
||||
Form::submit('add_blocks_and_exit', __('Save and Exit', 'blocks'), array('class' => 'btn btn-primary')).Html::nbsp(2).
|
||||
Form::submit('add_blocks', __('Save', 'blocks'), array('class' => 'btn btn-primary')).Html::nbsp(2).
|
||||
Html::anchor(__('Cancel', 'blocks'), 'index.php?id=blocks', array('title' => __('Cancel', 'blocks'), 'class' => 'btn btn-default')).
|
||||
Form::close()
|
||||
);
|
||||
|
||||
?>
|
||||
|
@@ -11,7 +11,7 @@
|
||||
|
||||
?>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-group margin-bottom-1em">
|
||||
<?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
|
||||
@@ -20,13 +20,15 @@
|
||||
?>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
<?php
|
||||
|
||||
Action::run('admin_editor', array(Html::toText($content)));
|
||||
<div class="row margin-bottom-1em">
|
||||
<div class="col-xs-12">
|
||||
<?php Action::run('admin_editor', array(Html::toText($content))); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
echo (
|
||||
Html::br().
|
||||
Form::submit('edit_blocks_and_exit', __('Save and Exit', 'blocks'), array('class' => 'btn btn-primary')).Html::nbsp(2).
|
||||
Form::submit('edit_blocks', __('Save', 'blocks'), array('class' => 'btn btn-primary')). Html::nbsp(2).
|
||||
Html::anchor(__('Cancel', 'blocks'), 'index.php?id=blocks', array('title' => __('Cancel', 'blocks'), 'class' => 'btn btn-default')).
|
||||
|
@@ -10,16 +10,19 @@ if ($content !== null) {
|
||||
<div class="input-group">
|
||||
<?php echo (Form::input('name', Request::get('filename'), array('disabled', 'class' => 'form-control'))); ?><span class="input-group-addon">.email.php</span>
|
||||
</div>
|
||||
<br>
|
||||
<?php
|
||||
|
||||
<div class="margin-top-2em margin-bottom-2em">
|
||||
<?php
|
||||
echo (
|
||||
Form::label('content', __('Email template content', 'emails')).
|
||||
Form::textarea('content', Html::toText($content), array('style' => 'width:100%;height:400px;', 'class' => 'source-editor form-control'))
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
echo (
|
||||
Html::br().
|
||||
|
||||
Form::submit('edit_email_template_and_exit', __('Save and Exit', 'emails'), array('class' => 'btn btn-primary')).Html::nbsp(2).
|
||||
Form::submit('edit_email_template', __('Save', 'emails'), array('class' => 'btn btn-primary')). Html::nbsp(2).
|
||||
Html::anchor(__('Cancel', 'blocks'), 'index.php?id=emails', array('title' => __('Cancel', 'emails'), 'class' => 'btn btn-default')).
|
||||
|
@@ -45,9 +45,8 @@
|
||||
</div>
|
||||
<!-- /Filesmanager_upload_files -->
|
||||
|
||||
<br>
|
||||
<!-- Filesmanger_path -->
|
||||
<ol class="breadcrumb">
|
||||
<ol class="breadcrumb margin-top-1em">
|
||||
|
||||
<?php
|
||||
$path_parts = explode ('/',$path);
|
||||
@@ -69,7 +68,6 @@
|
||||
</ol>
|
||||
<!-- /Filesmanger_path -->
|
||||
|
||||
|
||||
<table class="table table-bordered" id="filesDirsList">
|
||||
<thead>
|
||||
<tr>
|
||||
|
@@ -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">
|
||||
|
@@ -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>
|
@@ -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 } ?>
|
||||
|
@@ -16,21 +16,20 @@
|
||||
if (isset($errors['snippets_exists'])) echo '<span class="error-message">'.$errors['snippets_exists'].'</span>';
|
||||
?>
|
||||
|
||||
<br>
|
||||
|
||||
<div class="margin-top-2em margin-bottom-2em">
|
||||
<?php
|
||||
echo (
|
||||
Form::label('content', __('Snippet content', 'snippets')).
|
||||
Form::textarea('content', $content, array('style' => 'width:100%;height:400px;', 'class'=>'source-editor form-control'))
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
echo (
|
||||
Html::br(2).
|
||||
Form::submit('add_snippets_and_exit', __('Save and Exit', 'snippets'), array('class' => 'btn btn-primary')).Html::nbsp(2).
|
||||
Form::submit('add_snippets', __('Save', 'snippets'), array('class' => 'btn btn-primary')).Html::nbsp(2).
|
||||
Html::anchor(__('Cancel', 'snippets'), 'index.php?id=snippets', array('title' => __('Cancel', 'snippets'), 'class' => 'btn btn-default')).
|
||||
Form::close()
|
||||
);
|
||||
?>
|
||||
?>
|
@@ -23,14 +23,18 @@
|
||||
if (isset($errors['snippets_empty_name'])) echo '<span class="error-message">'.$errors['snippets_empty_name'].'</span>';
|
||||
if (isset($errors['snippets_exists'])) echo '<span class="error-message">'.$errors['snippets_exists'].'</span>';
|
||||
?>
|
||||
<br>
|
||||
|
||||
<div class="margin-top-2em margin-bottom-2em">
|
||||
<?php
|
||||
echo (
|
||||
Form::label('content', __('Snippet content', 'snippets')).
|
||||
Form::textarea('content', Html::toText($content), array('style' => 'width:100%;height:400px;', 'class' => 'source-editor form-control'))
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
||||
echo (
|
||||
Form::label('content', __('Snippet content', 'snippets')).
|
||||
Form::textarea('content', Html::toText($content), array('style' => 'width:100%;height:400px;', 'class' => 'source-editor form-control')).
|
||||
Html::br(2).
|
||||
Form::submit('edit_snippets_and_exit', __('Save and Exit', 'snippets'), array('class' => 'btn btn-primary')).Html::nbsp(2).
|
||||
Form::submit('edit_snippets', __('Save', 'snippets'), array('class' => 'btn btn-primary')). Html::nbsp(2).
|
||||
Html::anchor(__('Cancel', 'snippets'), 'index.php?id=snippets', array('title' => __('Cancel', 'snippets'), 'class' => 'btn btn-default')).
|
||||
|
@@ -5,8 +5,8 @@
|
||||
<div class="text-right">
|
||||
<?php
|
||||
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>
|
||||
@@ -51,7 +51,7 @@
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<a class="close" data-dismiss="modal">×</a>
|
||||
<div class="close" data-dismiss="modal">×</div>
|
||||
<h4 class="modal-title"><?php echo __('Embed Code', 'snippets'); ?></h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
|
@@ -11,8 +11,7 @@
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<h2><?php echo __('Site Settings', 'system'); ?></h2>
|
||||
<br>
|
||||
<h2 class="margin-bottom-1em"><?php echo __('Site Settings', 'system'); ?></h2>
|
||||
<?php
|
||||
echo (
|
||||
Form::open().
|
||||
@@ -61,8 +60,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<h2><?php echo __('System Settings', 'system'); ?></h2>
|
||||
<br>
|
||||
<h2 class="margin-bottom-1em"><?php echo __('System Settings', 'system'); ?></h2>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
echo (
|
||||
@@ -104,7 +102,7 @@
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
|
Reference in New Issue
Block a user