1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-09 14:47:04 +02:00

Update to use Bootstrap V3

Minor changes to structure and changes to classes to provide UI
consistent with pages.
This commit is contained in:
EuanMead
2014-01-07 16:15:45 +00:00
parent 2574431dd8
commit b757c19778
3 changed files with 28 additions and 28 deletions

View File

@@ -40,7 +40,7 @@
echo ( echo (
Html::br(2). Html::br(2).
Form::submit('add_file_and_exit', __('Save and Exit', 'themes'), array('class' => 'btn')).Html::nbsp(2). Form::submit('add_file_and_exit', __('Save and Exit', 'themes'), array('class' => 'btn btn-primary')).Html::nbsp(2).
Form::submit('add_file', __('Save', 'themes'), array('class' => 'btn')). Form::submit('add_file', __('Save', 'themes'), array('class' => 'btn btn-default')).
Form::close() Form::close()
); );

View File

@@ -48,8 +48,8 @@
echo ( echo (
Form::textarea('content', Html::toText($content), array('style' => 'width:100%;height:400px;', 'class' => 'source-editor')). Form::textarea('content', Html::toText($content), array('style' => 'width:100%;height:400px;', 'class' => 'source-editor')).
Html::br(2). Html::br(2).
Form::submit('edit_file_and_exit', __('Save and Exit', 'themes'), array('class' => 'btn')).Html::nbsp(2). Form::submit('edit_file_and_exit', __('Save and Exit', 'themes'), array('class' => 'btn btn-primary')).Html::nbsp(2).
Form::submit('edit_file', __('Save', 'themes'), array('class' => 'btn')). Html::nbsp(). Form::submit('edit_file', __('Save', 'themes'), array('class' => 'btn btn-default')). Html::nbsp().
Form::close() Form::close()
); );

48
plugins/box/themes/views/backend/index.view.php Executable file → Normal file
View File

@@ -11,8 +11,8 @@
Form::open(). Form::open().
Form::hidden('csrf', Security::token()). Form::hidden('csrf', Security::token()).
Form::label('themes', __('Select Theme', 'themes')). Form::label('themes', __('Select Theme', 'themes')).
Form::select('themes', $themes_site, $current_site_theme, array('class' => 'input-xlarge')). Html::br(). Form::select('themes', $themes_site, $current_site_theme, array('class' => 'form-control')). Html::br().
Form::submit('save_site_theme', __('Save', 'themes'), array('class' => 'btn')). Form::submit('save_site_theme', __('Save', 'themes'), array('class' => 'btn btn-primary')).
Form::close() Form::close()
); );
?> ?>
@@ -31,8 +31,8 @@
Form::open(). Form::open().
Form::hidden('csrf', Security::token()). Form::hidden('csrf', Security::token()).
Form::label('themes', __('Select Theme', 'themes')). Form::label('themes', __('Select Theme', 'themes')).
Form::select('themes', $themes_admin, $current_admin_theme, array('class' => 'input-xlarge')). Html::br(). Form::select('themes', $themes_admin, $current_admin_theme, array('class' => 'form-control')). Html::br().
Form::submit('save_admin_theme', __('Save', 'themes'), array('class' => 'btn')). Form::submit('save_admin_theme', __('Save', 'themes'), array('class' => 'btn btn-primary')).
Form::close() Form::close()
); );
?> ?>
@@ -54,7 +54,7 @@
); );
?> ?>
<?php echo (Html::anchor(__('Create New Template', 'themes'), 'index.php?id=themes&action=add_template', array('title' => __('Create New Template'), 'class' => 'btn btn-small')).Html::br(2)); ?> <?php echo (Html::anchor(__('Create New Template', 'themes'), 'index.php?id=themes&action=add_template', array('title' => __('Create New Template'), 'class' => 'btn btn-default')).Html::br(2)); ?>
<!-- Templates_list --> <!-- Templates_list -->
<table class="table table-bordered"> <table class="table table-bordered">
@@ -71,17 +71,17 @@
<td> <td>
<div class="pull-right"> <div class="pull-right">
<div class="btn-group"> <div class="btn-group">
<?php echo Html::anchor(__('Edit', 'themes'), 'index.php?id=themes&action=edit_template&filename='.basename($template, '.template.php'), array('class' => 'btn btn-small')); ?> <?php echo Html::anchor(__('Edit', 'themes'), 'index.php?id=themes&action=edit_template&filename='.basename($template, '.template.php'), array('class' => 'btn btn-primary')); ?>
<a class="btn dropdown-toggle btn-small" data-toggle="dropdown" href="#" style="font-family:arial;"><span class="caret"></span></a> <a class="btn dropdown-toggle btn-primary" data-toggle="dropdown" href="#" style="font-family:arial;"><span class="caret"></span></a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<li><?php echo Html::anchor(__('Clone', 'themes'), 'index.php?id=themes&action=clone_template&filename='.basename($template, '.template.php').'&token='.Security::token(), array('title' => __('Clone'))); ?></li> <li><?php echo Html::anchor(__('Clone', 'themes'), 'index.php?id=themes&action=clone_template&filename='.basename($template, '.template.php').'&token='.Security::token(), array('title' => __('Clone'))); ?></li>
</ul> </ul>
</div>
<?php echo Html::anchor(__('Delete', 'themes'), <?php echo Html::anchor(__('Delete', 'themes'),
'index.php?id=themes&action=delete_template&filename='.basename($template, '.template.php').'&token='.Security::token(), 'index.php?id=themes&action=delete_template&filename='.basename($template, '.template.php').'&token='.Security::token(),
array('class' => 'btn btn-actions btn-small btn-actions-default', 'onclick' => "return confirmDelete('".__('Delete template: :name', 'themes', array(':name' => basename($template, '.template.php')))."')")); array('class' => 'btn btn-actions btn-danger btn-actions-default', 'onclick' => "return confirmDelete('".__('Delete template: :name', 'themes', array(':name' => basename($template, '.template.php')))."')"));
?> ?>
</div> </div>
</div>
</td> </td>
</tr> </tr>
<?php } ?> <?php } ?>
@@ -89,7 +89,7 @@
</table> </table>
<!-- /Templates_list --> <!-- /Templates_list -->
<?php echo (Html::anchor(__('Create New Chunk', 'themes'), 'index.php?id=themes&action=add_chunk', array('title' => __('Create New Chnuk', 'themes'), 'class' => 'btn btn-small')).Html::br(2)); ?> <?php echo (Html::anchor(__('Create New Chunk', 'themes'), 'index.php?id=themes&action=add_chunk', array('title' => __('Create New Chunk', 'themes'), 'class' => 'btn btn-default')).Html::br(2)); ?>
<!-- Chunks_list --> <!-- Chunks_list -->
<table class="table table-bordered"> <table class="table table-bordered">
@@ -106,17 +106,17 @@
<td> <td>
<div class="pull-right"> <div class="pull-right">
<div class="btn-group"> <div class="btn-group">
<?php echo Html::anchor(__('Edit', 'themes'), 'index.php?id=themes&action=edit_chunk&filename='.basename($chunk, '.chunk.php'), array('class' => 'btn btn-small')); ?> <?php echo Html::anchor(__('Edit', 'themes'), 'index.php?id=themes&action=edit_chunk&filename='.basename($chunk, '.chunk.php'), array('class' => 'btn btn-primary')); ?>
<a class="btn dropdown-toggle btn-small" data-toggle="dropdown" href="#" style="font-family:arial;"><span class="caret"></span></a> <a class="btn dropdown-toggle btn-primary" data-toggle="dropdown" href="#" style="font-family:arial;"><span class="caret"></span></a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<li><?php echo Html::anchor(__('Clone', 'themes'), 'index.php?id=themes&action=clone_chunk&filename='.basename($chunk, '.chunk.php').'&token='.Security::token(), array('title' => __('Clone', 'themes'))); ?></li> <li><?php echo Html::anchor(__('Clone', 'themes'), 'index.php?id=themes&action=clone_chunk&filename='.basename($chunk, '.chunk.php').'&token='.Security::token(), array('title' => __('Clone', 'themes'))); ?></li>
</ul> </ul>
</div>
<?php echo Html::anchor(__('Delete', 'themes'), <?php echo Html::anchor(__('Delete', 'themes'),
'index.php?id=themes&action=delete_chunk&filename='.basename($chunk, '.chunk.php').'&token='.Security::token(), 'index.php?id=themes&action=delete_chunk&filename='.basename($chunk, '.chunk.php').'&token='.Security::token(),
array('class' => 'btn btn-actions btn-small btn-actions-default', 'onclick' => "return confirmDelete('".__('Delete chunk: :name', 'themes', array(':name' => basename($chunk, '.chunk.php')))."')")); array('class' => 'btn btn-actions btn-danger btn-actions-default', 'onclick' => "return confirmDelete('".__('Delete chunk: :name', 'themes', array(':name' => basename($chunk, '.chunk.php')))."')"));
?> ?>
</div> </div>
</div>
</td> </td>
</tr> </tr>
<?php } ?> <?php } ?>
@@ -124,7 +124,7 @@
</table> </table>
<!-- /Chunks_list --> <!-- /Chunks_list -->
<?php echo (Html::anchor(__('Create New Styles', 'themes'), 'index.php?id=themes&action=add_styles', array('title' => __('Create New Style', 'themes'), 'class' => 'btn btn-small')).Html::br(2)); ?> <?php echo (Html::anchor(__('Create New Styles', 'themes'), 'index.php?id=themes&action=add_styles', array('title' => __('Create New Style', 'themes'), 'class' => 'btn btn-default')).Html::br(2)); ?>
<!-- Styles_list --> <!-- Styles_list -->
<table class="table table-bordered"> <table class="table table-bordered">
@@ -141,17 +141,17 @@
<td> <td>
<div class="pull-right"> <div class="pull-right">
<div class="btn-group"> <div class="btn-group">
<?php echo Html::anchor(__('Edit', 'themes'), 'index.php?id=themes&action=edit_styles&filename='.basename($style, '.css'), array('class' => 'btn btn-small')); ?> <?php echo Html::anchor(__('Edit', 'themes'), 'index.php?id=themes&action=edit_styles&filename='.basename($style, '.css'), array('class' => 'btn btn-primary')); ?>
<a class="btn dropdown-toggle btn-small" data-toggle="dropdown" href="#" style="font-family:arial;"><span class="caret"></span></a> <a class="btn dropdown-toggle btn-primary" data-toggle="dropdown" href="#" style="font-family:arial;"><span class="caret"></span></a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<li><?php echo Html::anchor(__('Clone', 'themes'), 'index.php?id=themes&action=clone_styles&filename='.basename($style, '.css').'&token='.Security::token(), array('title' => __('Clone', 'themes'))); ?></li> <li><?php echo Html::anchor(__('Clone', 'themes'), 'index.php?id=themes&action=clone_styles&filename='.basename($style, '.css').'&token='.Security::token(), array('title' => __('Clone', 'themes'))); ?></li>
</ul> </ul>
</div>
<?php echo Html::anchor(__('Delete', 'themes'), <?php echo Html::anchor(__('Delete', 'themes'),
'index.php?id=themes&action=delete_styles&filename='.basename($style, '.css').'&token='.Security::token(), 'index.php?id=themes&action=delete_styles&filename='.basename($style, '.css').'&token='.Security::token(),
array('class' => 'btn btn-actions btn-small btn-actions-default', 'onclick' => "return confirmDelete('".__('Delete styles: :name', 'themes', array(':name' => basename($style, '.css')))."')")); array('class' => 'btn btn-actions btn-danger btn-actions-default', 'onclick' => "return confirmDelete('".__('Delete styles: :name', 'themes', array(':name' => basename($style, '.css')))."')"));
?> ?>
</div> </div>
</div>
</td> </td>
</tr> </tr>
<?php } ?> <?php } ?>
@@ -159,7 +159,7 @@
</table> </table>
<!-- /Styles_list --> <!-- /Styles_list -->
<?php echo (Html::anchor(__('Create New Script', 'themes'), 'index.php?id=themes&action=add_script', array('title' => __('Create New Script', 'themes'), 'class' => 'btn btn-small')).Html::br(2)); ?> <?php echo (Html::anchor(__('Create New Script', 'themes'), 'index.php?id=themes&action=add_script', array('title' => __('Create New Script', 'themes'), 'class' => 'btn btn-default')).Html::br(2)); ?>
<!-- Scripts_list --> <!-- Scripts_list -->
<table class="table table-bordered"> <table class="table table-bordered">
@@ -176,17 +176,17 @@
<td> <td>
<div class="pull-right"> <div class="pull-right">
<div class="btn-group"> <div class="btn-group">
<?php echo Html::anchor(__('Edit', 'themes'), 'index.php?id=themes&action=edit_script&filename='.basename($script, '.js'), array('class' => 'btn btn-small')); ?> <?php echo Html::anchor(__('Edit', 'themes'), 'index.php?id=themes&action=edit_script&filename='.basename($script, '.js'), array('class' => 'btn btn-primary')); ?>
<a class="btn dropdown-toggle btn-small" data-toggle="dropdown" href="#" style="font-family:arial;"><span class="caret"></span></a> <a class="btn dropdown-toggle btn-primary" data-toggle="dropdown" href="#" style="font-family:arial;"><span class="caret"></span></a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<li><?php echo Html::anchor(__('Clone', 'themes'), 'index.php?id=themes&action=clone_script&filename='.basename($script, '.js').'&token='.Security::token(), array('title' => __('Clone', 'themes'))); ?></li> <li><?php echo Html::anchor(__('Clone', 'themes'), 'index.php?id=themes&action=clone_script&filename='.basename($script, '.js').'&token='.Security::token(), array('title' => __('Clone', 'themes'))); ?></li>
</ul> </ul>
</div>
<?php echo Html::anchor(__('Delete', 'themes'), <?php echo Html::anchor(__('Delete', 'themes'),
'index.php?id=themes&action=delete_script&filename='.basename($script, '.js').'&token='.Security::token(), 'index.php?id=themes&action=delete_script&filename='.basename($script, '.js').'&token='.Security::token(),
array('class' => 'btn btn-actions btn-small btn-actions-default', 'onclick' => "return confirmDelete('".__('Delete script: :name', 'themes', array(':name' => basename($script, '.js')))."')")); array('class' => 'btn btn-actions btn-danger btn-actions-default', 'onclick' => "return confirmDelete('".__('Delete script: :name', 'themes', array(':name' => basename($script, '.js')))."')"));
?> ?>
</div> </div>
</div>
</td> </td>
</tr> </tr>
<?php } ?> <?php } ?>