ShareDAV/templates/share-add-user.html

25 lines
884 B
HTML
Raw Permalink Normal View History

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>
{{ end }}