Skip to content

Commit 88837f8

Browse files
committed
Fix the subuser edit view, large amount of checkboxes were not properly formatted causing the first half of the edit screen to be broken.
Correct the value used for the create files permission.
1 parent ed5b755 commit 88837f8

File tree

2 files changed

+26
-25
lines changed

2 files changed

+26
-25
lines changed

resources/views/server/users/new.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
</div>
121121
<div class="checkbox highlight">
122122
<label class="checkbox-custom highlight" data-initialize="checkbox">
123-
<input class="sr-only" name="permissions[]" type="checkbox" @if(isset($oldInput['add-files']))checked="checked"@endif value="add-files"> <strong>Create Files &amp; Folders</strong>
123+
<input class="sr-only" name="permissions[]" type="checkbox" @if(isset($oldInput['create-files']))checked="checked"@endif value="create-files"> <strong>Create Files &amp; Folders</strong>
124124
<p class="text-muted"><small>Allows user to create a new file within the panel.</small><p>
125125
</label>
126126
</div>

resources/views/server/users/view.blade.php

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -83,32 +83,33 @@
8383
<p class="text-muted"><small>Allows user to save modified file contents.</small><p>
8484
</label>
8585
</div>
86-
<label class="checkbox-custom highlight" data-initialize="checkbox">
87-
<input class="sr-only" name="permissions[]" type="checkbox" @if(isset($oldInput['move-files']))checked="checked"@endif @cannot('edit-subuser', $server)disabled="disabled"@endcannot value="move-files"> <strong>Rename &amp; Move Files</strong>
88-
<p class="text-muted"><small>Allows user to move and rename files and folders on the filesystem.</small><p>
89-
</label>
90-
</div>
91-
<div class="checkbox highlight">
92-
<label class="checkbox-custom highlight" data-initialize="checkbox">
93-
<input class="sr-only" name="permissions[]" type="checkbox" @if(isset($oldInput['copy-files']))checked="checked"@endif @cannot('edit-subuser', $server)disabled="disabled"@endcannot value="copy-files"> <strong>Copy Files</strong>
94-
<p class="text-muted"><small>Allows user to copy files and folders on the filesystem.</small><p>
95-
</label>
96-
</div>
97-
<div class="checkbox highlight">
98-
<label class="checkbox-custom highlight" data-initialize="checkbox">
99-
<input class="sr-only" name="permissions[]" type="checkbox" @if(isset($oldInput['compress-files']))checked="checked"@endif @cannot('edit-subuser', $server)disabled="disabled"@endcannot value="compress-files"> <strong>Compress Files</strong>
100-
<p class="text-muted"><small>Allows user to make archives of files and folders on the system.</small><p>
101-
</label>
102-
</div>
103-
<div class="checkbox highlight">
104-
<label class="checkbox-custom highlight" data-initialize="checkbox">
105-
<input class="sr-only" name="permissions[]" type="checkbox" @if(isset($oldInput['decompress-files']))checked="checked"@endif @cannot('edit-subuser', $server)disabled="disabled"@endcannot value="decompress-files"> <strong>Decompress Files</strong>
106-
<p class="text-muted"><small>Allows user to decompress <code>.zip</code> and <code>.tar / .tar.gz</code> archives.</small><p>
107-
</label>
108-
</div>
10986
<div class="checkbox highlight">
11087
<label class="checkbox-custom highlight" data-initialize="checkbox">
111-
<input class="sr-only" name="permissions[]" type="checkbox" @if(isset($permissions['add-files']))checked="checked"@endif @cannot('edit-subuser', $server)disabled="disabled"@endcannot value="add-files"> <strong>Create Files</strong>
88+
<input class="sr-only" name="permissions[]" type="checkbox" @if(isset($permissions['move-files']))checked="checked"@endif @cannot('edit-subuser', $server)disabled="disabled"@endcannot value="move-files"> <strong>Rename &amp; Move Files</strong>
89+
<p class="text-muted"><small>Allows user to move and rename files and folders on the filesystem.</small><p>
90+
</label>
91+
</div>
92+
<div class="checkbox highlight">
93+
<label class="checkbox-custom highlight" data-initialize="checkbox">
94+
<input class="sr-only" name="permissions[]" type="checkbox" @if(isset($permissions['copy-files']))checked="checked"@endif @cannot('edit-subuser', $server)disabled="disabled"@endcannot value="copy-files"> <strong>Copy Files</strong>
95+
<p class="text-muted"><small>Allows user to copy files and folders on the filesystem.</small><p>
96+
</label>
97+
</div>
98+
<div class="checkbox highlight">
99+
<label class="checkbox-custom highlight" data-initialize="checkbox">
100+
<input class="sr-only" name="permissions[]" type="checkbox" @if(isset($permissions['compress-files']))checked="checked"@endif @cannot('edit-subuser', $server)disabled="disabled"@endcannot value="compress-files"> <strong>Compress Files</strong>
101+
<p class="text-muted"><small>Allows user to make archives of files and folders on the system.</small><p>
102+
</label>
103+
</div>
104+
<div class="checkbox highlight">
105+
<label class="checkbox-custom highlight" data-initialize="checkbox">
106+
<input class="sr-only" name="permissions[]" type="checkbox" @if(isset($permissions['decompress-files']))checked="checked"@endif @cannot('edit-subuser', $server)disabled="disabled"@endcannot value="decompress-files"> <strong>Decompress Files</strong>
107+
<p class="text-muted"><small>Allows user to decompress <code>.zip</code> and <code>.tar / .tar.gz</code> archives.</small><p>
108+
</label>
109+
</div>
110+
<div class="checkbox highlight">
111+
<label class="checkbox-custom highlight" data-initialize="checkbox">
112+
<input class="sr-only" name="permissions[]" type="checkbox" @if(isset($permissions['create-files']))checked="checked"@endif @cannot('edit-subuser', $server)disabled="disabled"@endcannot value="create-files"> <strong>Create Files &amp; Folders</strong>
112113
<p class="text-muted"><small>Allows user to create a new file within the panel.</small><p>
113114
</label>
114115
</div>

0 commit comments

Comments
 (0)