costapy/pages/public/users.html

31 lines
946 B
HTML

<input type="hidden" id="form-token" value="${token}">
<h2>Invitation</h2>
<input type="email" id="form-email" placeholder="Email" required > <br>
<input type="text" id="form-username" placeholder="Username (Optional)" > <br>
<div id="lister-roles">
<!-- hardcoded -->
<label><input type="checkbox" name="roles" value="2">Admin</label>
<label><input type="checkbox" name="roles" value="3">Member</label>
</div>
<hr>
<p>You need to insert your password for confirm the invitation</p>
<input type="password" id="form-password" placeholder="Password" > <br>
<hr>
<button type="button" onclick="invite()">Invite</button> <br>
<div id="alert-response" role="alert">
<b id="alert-status">Loading...</b> <span id="alert-desc">Please wait...</span>
</div>
<h2>User List</h2>
<ul id="lister-user"></ul>
<br><br>
<script type="text/javascript" src="/js/carrack.js"></script>
<script type="text/javascript" src="/js/users.js"></script>