Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
cse4707-secure-messaging/app/forms/edit.php
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
40 lines (40 sloc)
1.52 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Modal Structure --> | |
<form id="edit-modal-<?php echo $user->id ?>" class="modal" action="create.php" method="post"> | |
<div class="modal-content"> | |
<h4 class="row">Edit account for <?php echo $user->username ?></h4> | |
<div class="row"> | |
<div class="col s12"> | |
<div class="row"> | |
<input name="username" type="hidden" value="<?php echo $user->username ?>" /> | |
<div class="input-field col s12 valign-wrapper"> | |
<i class="material-icons prefix valign">lock</i> | |
<input id="password" name="password" type="password" class="validate" /> | |
<label for="password">New password</label> | |
</div> | |
<div class="input-field col s12"> | |
<h6> Access level: </h6> | |
<input | |
class="with-gap" name="access" type="radio" | |
id="access-edit1-<?php echo $user->id ?>" value="admin" checked="checked" | |
/> | |
<label for="access-edit1-<?php echo $user->id ?>">Admin</label> <br /> | |
<input | |
class="with-gap" name="access" type="radio" | |
id="access-edit2-<?php echo $user->id ?>" value="user" | |
/> | |
<label for="access-edit2-<?php echo $user->id ?>">User</label> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
<div class="modal-footer input-field"> | |
<button | |
class="waves-effect waves-green btn-flat" | |
type="submit" name="action" | |
onclick="Materialize.toast('User updated', 4000)" | |
> | |
Change | |
</button> | |
</div> | |
</form> |