Add directory creation
This commit is contained in:
@@ -62,7 +62,7 @@
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p class="text-bold text-danger" ng-show="entryRemove.error">{{ entryRemove.error }}</p>
|
||||
<p ng-hide="entryRemove.error">After deletion, the user will not be able to access the dashboard or login to any of the apps. Note that any user data inside the apps is not removed.</p>
|
||||
<p ng-hide="entryRemove.error">Really delete {{ entryRemove.entry.fileName }}</p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
||||
@@ -72,6 +72,33 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Modal new directory -->
|
||||
<div class="modal fade" id="newDirectoryModal" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title">New Directory</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form role="form" name="newDirectoryForm" ng-submit="newDirectory.submit()" autocomplete="off">
|
||||
<fieldset>
|
||||
<div class="form-group" ng-class="{ 'has-error': (newDirectoryForm.directoryName.$dirty && newDirectoryForm.directoryName.$invalid) }">
|
||||
<label class="control-label">Directory Name</label>
|
||||
<div class="control-label" ng-show="newDirectory.error">{{ newDirectory.error }}</div>
|
||||
<input type="text" class="form-control" id="inputDirectoryName" name="directoryName" ng-model="newDirectory.name" required>
|
||||
</div>
|
||||
<input class="ng-hide" type="submit" ng-disabled="newDirectoryForm.$invalid || newDirectory.busy"/>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
||||
<button type="button" class="btn btn-danger" ng-click="newDirectory.submit()" ng-hide="newDirectory.error" ng-disabled="newDirectory.busy"><i class="fa fa-circle-notch fa-spin" ng-show="newDirectory.busy"></i> Create</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="main-container animateMe ng-hide " ng-show="initialized">
|
||||
<br/>
|
||||
<div class="row">
|
||||
@@ -85,6 +112,7 @@
|
||||
<div>
|
||||
<button class="btn btn-primary" ng-click="refresh()"><i class="fas fa-sync-alt"></i></button>
|
||||
<span>Path: <b>{{ cwd }}</b></span>
|
||||
<button class="btn btn-primary pull-right" ng-click="newDirectory.show()">New Directory</button>
|
||||
<button class="btn btn-primary pull-right" ng-click="uploadFile()">Upload File</button>
|
||||
<button class="btn btn-primary pull-right" ng-click="uploadFolder()">Upload Folder</button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user