mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-10 23:24:07 +02:00
Files Manager Improvements - Updates #94
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
<div class="col-md-6">
|
||||
<div class="pull-right">
|
||||
<button class="btn btn-primary" data-toggle="modal" data-target="#createNewDirectory">
|
||||
Create New Directory
|
||||
<?php echo __('Create New Directory', 'filesmanager'); ?>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -92,10 +92,10 @@
|
||||
<button class="btn btn-primary js-rename-dir" data-dirname="<?php echo $dir; ?>" data-path="<?php echo $path; ?>">
|
||||
<?php echo __('Rename', 'filesmanager'); ?>
|
||||
</button>
|
||||
<?php echo Html::anchor(__('Delete', 'filesmanager'),
|
||||
'index.php?id=filesmanager&delete_dir='.$dir.'&path='.$path.'&token='.Security::token(),
|
||||
array('class' => 'btn btn-danger', 'onclick' => "return confirmDelete('".__('Delete directory: :dir', 'filesmanager', array(':dir' => $dir))."')"));
|
||||
?>
|
||||
<?php echo Html::anchor(__('Delete', 'filesmanager'),
|
||||
'index.php?id=filesmanager&delete_dir='.$dir.'&path='.$path.'&token='.Security::token(),
|
||||
array('class' => 'btn btn-danger', 'onclick' => "return confirmDelete('".__('Delete directory: :dir', 'filesmanager', array(':dir' => $dir))."')"));
|
||||
?>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -137,18 +137,18 @@
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<a class="close" data-dismiss="modal">×</a>
|
||||
<h4 class="modal-title" id="myModalLabel">Create New Directory</h4>
|
||||
<h4 class="modal-title" id="myModalLabel"><?php echo __('Create New Directory', 'filesmanager'); ?></h4>
|
||||
</div>
|
||||
<form role="form" method="POST">
|
||||
<?php echo Form::hidden('csrf', Security::token()); ?>
|
||||
<div class="modal-body">
|
||||
<label for="directoryName">Directory Name</label>
|
||||
<label for="directoryName"><?php echo __('Directory Name', 'filesmanager'); ?></label>
|
||||
<input type="hidden" name="path" value="<?php echo $path; ?>" />
|
||||
<input type="text" class="form-control" id="directoryName" name="directory_name" />
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
|
||||
<button type="submit" class="btn btn-primary">Create</button>
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal"><?php echo __('Cancel', 'filesmanager'); ?></button>
|
||||
<button type="submit" class="btn btn-primary"><?php echo __('Create', 'filesmanager'); ?></button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@@ -160,12 +160,11 @@
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<a class="close" data-dismiss="modal">×</a>
|
||||
<h4 class="modal-title">Rename</h4>
|
||||
<h4 class="modal-title"><?php echo __('Rename', 'filesmanager'); ?></h4>
|
||||
</div>
|
||||
<form role="form" method="POST">
|
||||
<?php echo Form::hidden('csrf', Security::token()); ?>
|
||||
<div class="modal-body">
|
||||
|
||||
<label for="renameTo">
|
||||
<span id="dirRenameType"><?php echo __('Directory:', 'filesmanager'); ?></span>
|
||||
<span id="fileRenameType"><?php echo __('File:', 'filesmanager'); ?></span>
|
||||
@@ -175,12 +174,11 @@
|
||||
<input type="hidden" name="rename_type" value="" />
|
||||
<input type="hidden" name="rename_from" value="" />
|
||||
<input type="text" class="form-control" id="renameTo" name="rename_to" />
|
||||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
|
||||
<button type="submit" class="btn btn-primary"><?php echo __('Rename', 'filesmanager'); ?></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal"><?php echo __('Cancel', 'filesmanager'); ?></button>
|
||||
<button type="submit" class="btn btn-primary"><?php echo __('Rename', 'filesmanager'); ?></button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user