Modernize user pages a bit

This commit is contained in:
Dane Everitt 2016-10-21 15:50:10 -04:00
parent bef717b202
commit 6731f7ffbc
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
2 changed files with 9 additions and 2 deletions

View File

@ -41,6 +41,11 @@
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-md-12">
<div class="well well-sm">
<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>
</div>
</div>
<div class="col-md-12"> <div class="col-md-12">
<div id="gen_pass" class=" alert alert-success" style="display:none;margin-bottom: 10px;"></div> <div id="gen_pass" class=" alert alert-success" style="display:none;margin-bottom: 10px;"></div>
</div> </div>

View File

@ -98,6 +98,7 @@
<th>Identifier</th> <th>Identifier</th>
<th>Server Name</th> <th>Server Name</th>
<th>Node</th> <th>Node</th>
<th>Username</th>
<th style="width:10%;"></th> <th style="width:10%;"></th>
</tr> </tr>
</thead> </thead>
@ -108,7 +109,8 @@
<td><code>{{ $server->uuidShort }}</code></td> <td><code>{{ $server->uuidShort }}</code></td>
<td><a href="/admin/servers/view/{{ $server->id }}">{{ $server->name }}</a></td> <td><a href="/admin/servers/view/{{ $server->id }}">{{ $server->name }}</a></td>
<td>{{ $server->nodeName }}</td> <td>{{ $server->nodeName }}</td>
<td>@if($server->active)<span class="label label-success">Enabled</span>@else<span class="label label-danger">Disabled</span>@endif</td> <td><code>{{ $server->username }}</code></td>
<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>
</td> </td>
@endforeach @endforeach
</tbody> </tbody>
@ -148,7 +150,7 @@ $(document).ready(function(){
'X-CSRF-TOKEN': '{{ csrf_token() }}' 'X-CSRF-TOKEN': '{{ csrf_token() }}'
}, },
success: function(data) { success: function(data) {
$("#gen_pass").html('<strong>Generated Password:</strong> ' + data).slideDown(); $("#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();
$('input[name="password"], input[name="password_confirmation"]').val(data); $('input[name="password"], input[name="password_confirmation"]').val(data);
return false; return false;
} }