25 lines
884 B
HTML
25 lines
884 B
HTML
{{ define "page-content" }}
|
|
<form method="post" class="dialog">
|
|
<div class="form-content">
|
|
<input name="share" type="hidden" value="{{ .ShareId }}"/>
|
|
|
|
<label for="user">User</label>
|
|
<select name="user" id="user">
|
|
{{ range $user := .Users}}
|
|
<option value="{{ $user.Username }}">{{ $user.Username }}</option>
|
|
{{ end }}
|
|
</select>
|
|
|
|
<label for="role">Role</label>
|
|
<select name="role" id="role">
|
|
<option value="reader">Reader</option>
|
|
<option value="writer" selected>Writer</option>
|
|
<option value="admin">Admin</option>
|
|
</select>
|
|
|
|
</div>
|
|
<div class="form-controls">
|
|
<input type="submit" value="Add User"/>
|
|
</div>
|
|
</form>
|
|
{{ end }} |