mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-04 20:27:40 +02:00
Files Manager Improvements - Updates #94
This commit is contained in:
@@ -174,7 +174,8 @@ class FilesmanagerAdmin extends Backend
|
|||||||
} else { die('Request was denied because it contained an invalid security token. Please refresh the page and try again.'); }
|
} else { die('Request was denied because it contained an invalid security token. Please refresh the page and try again.'); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Create Directory
|
||||||
|
// -------------------------------------
|
||||||
if (Request::post('directory_name')) {
|
if (Request::post('directory_name')) {
|
||||||
|
|
||||||
if (Security::check(Request::post('csrf'))) {
|
if (Security::check(Request::post('csrf'))) {
|
||||||
|
@@ -33,9 +33,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
<button class="btn btn-primary" data-toggle="modal" data-target="#createNewFile">
|
|
||||||
Create New File
|
|
||||||
</button>
|
|
||||||
<button class="btn btn-primary" data-toggle="modal" data-target="#createNewDirectory">
|
<button class="btn btn-primary" data-toggle="modal" data-target="#createNewDirectory">
|
||||||
Create New Directory
|
Create New Directory
|
||||||
</button>
|
</button>
|
||||||
@@ -135,28 +132,6 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
<div id="createNewFile" class="modal fade" tabindex="-1">
|
|
||||||
<div class="modal-dialog">
|
|
||||||
<div class="modal-content">
|
|
||||||
<div class="modal-header">
|
|
||||||
<a class="close" data-dismiss="modal">×</a>
|
|
||||||
<h4 class="modal-title">Create New File</h4>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
|
||||||
<form role="form">
|
|
||||||
<label for="cdDirectoryName">File Name</label>
|
|
||||||
<input type="text" class="form-control" id="cdDirectoryName">
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
|
|
||||||
<button type="button" class="btn btn-primary">Create</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="createNewDirectory" class="modal fade" tabindex="-1">
|
<div id="createNewDirectory" class="modal fade" tabindex="-1">
|
||||||
<div class="modal-dialog">
|
<div class="modal-dialog">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
@@ -166,17 +141,14 @@
|
|||||||
</div>
|
</div>
|
||||||
<form role="form" method="POST">
|
<form role="form" method="POST">
|
||||||
<?php echo Form::hidden('csrf', Security::token()); ?>
|
<?php echo Form::hidden('csrf', Security::token()); ?>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
|
|
||||||
<label for="directoryName">Directory Name</label>
|
<label for="directoryName">Directory Name</label>
|
||||||
<input type="hidden" name="path" value="<?php echo $path; ?>" />
|
<input type="hidden" name="path" value="<?php echo $path; ?>" />
|
||||||
<input type="text" class="form-control" id="directoryName" name="directory_name" />
|
<input type="text" class="form-control" id="directoryName" name="directory_name" />
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
|
||||||
<button type="submit" class="btn btn-primary">Create</button>
|
<button type="submit" class="btn btn-primary">Create</button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
@@ -208,7 +180,6 @@
|
|||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
|
||||||
<button type="submit" class="btn btn-primary"><?php echo __('Rename', 'filesmanager'); ?></button>
|
<button type="submit" class="btn btn-primary"><?php echo __('Rename', 'filesmanager'); ?></button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user