Fix display and subuser settings for databases

This commit is contained in:
Dane Everitt 2016-08-17 17:36:06 -04:00
parent 4d31004cf4
commit f1a3008a50
8 changed files with 74 additions and 33 deletions

View file

@ -32,10 +32,12 @@
<?php $oldInput = array_flip(is_array(old('permissions')) ? old('permissions') : []) ?>
<div class="row">
<div class="form-group col-md-12">
<label class="control-label">User Email:</label>
<div>
<input type="text" name="email" autocomplete="off" value="{{ old('email') }}" class="form-control" />
</div>
<div class="well" style="padding: 0 19px 19px;margin-bottom:0;">
<label class="control-label">User Email:</label>
<div>
<input type="text" name="email" autocomplete="off" value="{{ old('email') }}" class="form-control" />
</div>
</div>
</div>
</div>
<div class="row">
@ -113,7 +115,7 @@
<div class="checkbox highlight">
<label class="checkbox-custom highlight" data-initialize="checkbox">
<input class="sr-only" name="permissions[]" type="checkbox" @if(isset($oldInput['download-files']))checked="checked"@endif value="download-files"> <strong>Download Files</strong>
<p class="text-muted"><small><span class="label label-danger">Danger</span> Allows user to download files. If a user is given this permission they can download and view file contents.</small><p>
<p class="text-muted"><small><span class="label label-danger">Danger</span> Allows user to download files. If a user is given this permission they can download and view file contents even if that permission is not assigned on the panel.</small><p>
</label>
</div>
</div>
@ -172,6 +174,25 @@
<p class="text-muted"><small>Allows a user to modify startup variables for a server.</small><p>
</label>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6 fuelux">
<h4>Database Management</h4><hr />
<div class="checkbox highlight">
<label class="checkbox-custom highlight" data-initialize="checkbox">
<input class="sr-only" name="permissions[]" type="checkbox" @if(isset($oldInput['view-databases']))checked="checked"@endif value="view-databases"> <strong>View Database Details</strong>
<p class="text-muted"><small><span class="label label-danger">Danger</span> Allows user to view all databases associated with this server (including usernames and password for the databases).</small><p>
</label>
</div>
<div class="checkbox highlight">
<label class="checkbox-custom highlight" data-initialize="checkbox">
<input class="sr-only" name="permissions[]" type="checkbox" @if(isset($oldInput['reset-db-password']))checked="checked"@endif value="reset-db-password"> <strong>Reset Database Password</strong>
<p class="text-muted"><small>Allows a user to reset passwords for databases.</small><p>
</label>
</div>
</div>
<div class="col-md-6 fuelux">
<h4>SFTP Management</h4><hr />
<div class="checkbox highlight">
<label class="checkbox-custom highlight" data-initialize="checkbox">