edited230126
This commit is contained in:
@@ -27,10 +27,6 @@
|
||||
<div class="col-md-6">
|
||||
<h2 class="h5">Users</h2>
|
||||
<form method="post" action="{{ url_for('admin.create_company_user', company_id=company.id) }}" class="card card-body mb-3">
|
||||
<div class="mb-2">
|
||||
<label class="form-label">Username</label>
|
||||
<input class="form-control" name="username" required />
|
||||
</div>
|
||||
<div class="mb-2">
|
||||
<label class="form-label">Email</label>
|
||||
<input class="form-control" type="email" name="email" required />
|
||||
@@ -46,7 +42,7 @@
|
||||
{% for u in company.users %}
|
||||
<div class="list-group-item d-flex justify-content-between align-items-center">
|
||||
<div>
|
||||
<strong>{{ u.username }}</strong>
|
||||
<strong>{{ u.email or "(no email)" }}</strong>
|
||||
<div class="text-muted">{{ u.email or "(no email set)" }}</div>
|
||||
</div>
|
||||
<div class="d-flex align-items-center gap-2">
|
||||
@@ -79,7 +75,17 @@
|
||||
<div class="list-group-item">
|
||||
<div class="d-flex justify-content-between">
|
||||
<div>
|
||||
<strong>{{ d.name }}</strong>
|
||||
<form method="post" action="{{ url_for('admin.update_display_name', display_id=d.id) }}" class="d-flex gap-2 align-items-center">
|
||||
<input
|
||||
class="form-control form-control-sm"
|
||||
style="max-width: 260px"
|
||||
name="name"
|
||||
value="{{ d.name }}"
|
||||
required
|
||||
maxlength="120"
|
||||
/>
|
||||
<button class="btn btn-outline-primary btn-sm" type="submit">Save</button>
|
||||
</form>
|
||||
<div class="text-muted monospace">Token: {{ d.token }}</div>
|
||||
<div class="text-muted">Player URL: <a href="{{ url_for('display.display_player', token=d.token) }}" target="_blank">{{ url_for('display.display_player', token=d.token, _external=true) }}</a></div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user