Skip to content

Commit 6731f7f

Browse files
committed
Modernize user pages a bit
1 parent bef717b commit 6731f7f

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@
4141
</div>
4242
</div>
4343
<div class="row">
44+
<div class="col-md-12">
45+
<div class="well well-sm">
46+
<p>Providing a user password is optional. New user emails prompt users to create a password the first time they login. If a password is provided here you will need to find a different method of providing it to the user.</p>
47+
</div>
48+
</div>
4449
<div class="col-md-12">
4550
<div id="gen_pass" class=" alert alert-success" style="display:none;margin-bottom: 10px;"></div>
4651
</div>

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
<th>Identifier</th>
9999
<th>Server Name</th>
100100
<th>Node</th>
101+
<th>Username</th>
101102
<th style="width:10%;"></th>
102103
</tr>
103104
</thead>
@@ -108,7 +109,8 @@
108109
<td><code>{{ $server->uuidShort }}</code></td>
109110
<td><a href="/admin/servers/view/{{ $server->id }}">{{ $server->name }}</a></td>
110111
<td>{{ $server->nodeName }}</td>
111-
<td>@if($server->active)<span class="label label-success">Enabled</span>@else<span class="label label-danger">Disabled</span>@endif</td>
112+
<td><code>{{ $server->username }}</code></td>
113+
<td class="centered">@if($server->suspended === 0)<span class="label muted muted-hover label-success">Active</span>@else<span class="label label-warning">Suspended</span>@endif</td>
112114
</td>
113115
@endforeach
114116
</tbody>
@@ -148,7 +150,7 @@
148150
'X-CSRF-TOKEN': '{{ csrf_token() }}'
149151
},
150152
success: function(data) {
151-
$("#gen_pass").html('<strong>Generated Password:</strong> ' + data).slideDown();
153+
$("#gen_pass").html('You must click <em>Update User</em> to the left for this password to be applied.<br /><br /><strong>Generated Password:</strong> ' + data).slideDown();
152154
$('input[name="password"], input[name="password_confirmation"]').val(data);
153155
return false;
154156
}

0 commit comments

Comments
 (0)