Initial commit
This commit is contained in:
17
templates/admin/display_form.html
Normal file
17
templates/admin/display_form.html
Normal file
@@ -0,0 +1,17 @@
|
||||
{% extends 'admin/base.html' %}
|
||||
{% block content %}
|
||||
<h4>{{ 'Edit' if display else 'New' }} Display</h4>
|
||||
<form method="post" class="mt-3" style="max-width: 560px;">
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Name</label>
|
||||
<input class="form-control" name="name" value="{{ display.name if display else '' }}" required />
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Public ID</label>
|
||||
<input class="form-control" name="public_id" value="{{ display.public_id if display else '' }}" required />
|
||||
<div class="form-text">URL will be /display/<public_id></div>
|
||||
</div>
|
||||
<button class="btn btn-primary" type="submit">Save</button>
|
||||
<a class="btn btn-link" href="{{ url_for('admin.displays_list') }}">Cancel</a>
|
||||
</form>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user