1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-05 12:48:00 +02:00

Frontend Improvements

This commit is contained in:
Awilum
2013-12-14 00:40:55 +02:00
parent 798f558558
commit 9b4ff3e2e3
11 changed files with 346 additions and 221 deletions

View File

@@ -1,5 +1,5 @@
<h2><?php echo __('Backups', 'backup'); ?></h2>
<br />
<br>
<?php if (Notification::get('success')) Alert::success(Notification::get('success')); ?>
@@ -7,6 +7,7 @@
$().ready(function(){$('[name=create_backup]').click(function(){$(this).button('loading');});});
</script>
<div>
<?php
echo (
Form::open() .
@@ -14,10 +15,13 @@ $().ready(function(){$('[name=create_backup]').click(function(){$(this).button('
Form::checkbox('add_storage_folder', null, true, array('disabled' => 'disabled')) . ' ' . __('storage', 'backup') . ' ' . Html::nbsp(2) .
Form::checkbox('add_public_folder') . ' ' . __('public', 'backup') . ' ' . Html::nbsp(2) .
Form::checkbox('add_plugins_folder') . ' ' . __('plugins', 'backup') . ' ' . Html::nbsp(2) .
Form::submit('create_backup', __('Create Backup', 'backup'), array('class' => 'btn', 'data-loading-text' => __('Creating...', 'backup'))).
Form::submit('create_backup', __('Create Backup', 'backup'), array('class' => 'btn btn-primary', 'data-loading-text' => __('Creating...', 'backup'))).
Form::close()
);
?>
</div>
<br>
<!-- Backup_list -->
<table class="table table-bordered">
@@ -40,7 +44,7 @@ $().ready(function(){$('[name=create_backup]').click(function(){$(this).button('
<div class="pull-right">
<?php echo Html::anchor(__('Delete', 'backup'),
'index.php?id=backup&delete_file='.$backup.'&token='.Security::token(),
array('class' => 'btn btn-small', 'onclick' => "return confirmDelete('".__('Delete backup: :backup', 'backup', array(':backup' => Date::format($name, 'F jS, Y - g:i A')))."')"));
array('class' => 'btn btn-danger', 'onclick' => "return confirmDelete('".__('Delete backup: :backup', 'backup', array(':backup' => Date::format($name, 'F jS, Y - g:i A')))."')"));
?>
</div>
</td>