Web UI to edit conference title

Resolves: #3
This commit is contained in:
Edward Betts 2023-09-25 13:05:12 +01:00
parent b36ff3a9c1
commit 08a4ffa89f
2 changed files with 32 additions and 3 deletions

View file

@ -86,6 +86,21 @@
</div>
</div>
{% if is_admin() %}
<form method="POST">
<div>
<label for="title">title</label>
<input type="text" name="title" id="title" value="{{ item.title }}">
</div>
<div>
<label for="short_name">short name</label>
<input type="text" name="short_name" id="short_name" value="{{ item.short_name }}">
</div>
<button type="submit" class="btn btn-primary">Submit</button>
</form>
{% endif %}
<h3>Talks</h3>
<p>{{ item.events.count() }} talks</p>