1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-07-31 18:30:20 +02:00

Frontend Improvements

This commit is contained in:
Awilum
2013-12-30 23:38:45 +02:00
parent 2c3d224e62
commit 197cd7afde
2 changed files with 11 additions and 1 deletions

View File

@@ -10,11 +10,17 @@ $().ready(function(){$('[name=create_backup]').click(function(){$(this).button('
<div>
<?php
echo (
Form::open() .
Form::open(null, array('class' => 'form-inline')) .
Form::hidden('csrf', Security::token()).
'<div class="checkbox"><label>'.
Form::checkbox('add_storage_folder', null, true, array('disabled' => 'disabled')) . ' ' . __('storage', 'backup') . ' ' . Html::nbsp(2) .
'</label></div>'.
'<div class="checkbox"><label>'.
Form::checkbox('add_public_folder') . ' ' . __('public', 'backup') . ' ' . Html::nbsp(2) .
'</label></div>'.
'<div class="checkbox"><label>'.
Form::checkbox('add_plugins_folder') . ' ' . __('plugins', 'backup') . ' ' . Html::nbsp(2) .
'</label></div>'.
Form::submit('create_backup', __('Create Backup', 'backup'), array('class' => 'btn btn-primary', 'data-loading-text' => __('Creating...', 'backup'))).
Form::close()
);

View File

@@ -8,7 +8,11 @@
<div class="pull-right">
<?php echo Form::open(null, array('name' => 'users_frontend')); ?>
<?php echo Form::hidden('csrf', Security::token()); ?>
<div class="checkbox">
<label>
<?php echo Form::checkbox('users_frontend_registration', null, $users_frontend_registration); ?> <?php echo __('Allow user registration', 'users') ?>
</label>
</div>
<?php echo Form::input('users_frontend_submit', 'users_frontend_submit', array('style' => 'display:none;')); ?>
<?php echo Form::close();?>
</div>