2020-10-31 10:21:26 +01:00
|
|
|
{{ 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>
|
2020-10-24 16:57:00 +02:00
|
|
|
{{ end }}
|