diff options
-rw-r--r-- | apioforum/static/style.css | 7 | ||||
-rw-r--r-- | apioforum/templates/config_thread.html | 10 | ||||
-rw-r--r-- | apioforum/templates/create_thread.html | 15 | ||||
-rw-r--r-- | apioforum/templates/view_forum.html | 2 |
4 files changed, 9 insertions, 25 deletions
diff --git a/apioforum/static/style.css b/apioforum/static/style.css index 9650598..a3d10d6 100644 --- a/apioforum/static/style.css +++ b/apioforum/static/style.css @@ -382,14 +382,13 @@ fieldset { margin-bottom: 15px; } .tag-editor input[type="checkbox"] { width: 12ch; } .new-tag { float: right; text-align: center; width: 12ch; margin-top: 10px } -.tag-filters { +.tag-selection { display: flex; flex-wrap: wrap; gap: 10px; - margin-bottom: 10px; } - -.tag-filters input[type="radio"] { vertical-align: top; } +.tag-selection input { vertical-align: top; } +.filter-tags { margin-bottom: 10px; } .md table { border: 1px solid var(--gray); diff --git a/apioforum/templates/config_thread.html b/apioforum/templates/config_thread.html index 1debe76..3f2939c 100644 --- a/apioforum/templates/config_thread.html +++ b/apioforum/templates/config_thread.html @@ -12,14 +12,14 @@ <fieldset> <legend>tags</legend> {% if avail_tags %} - <ul> + <section class="tag-selection"> {% for the_tag in avail_tags %} - <li> + <div> <input type="checkbox" id="tag_{{the_tag.id}}" name="tag_{{the_tag.id}}" {%- if the_tag.id in thread_tags %} checked{% endif %}> - <label for="tag_{{the_tag.id}}">#{{the_tag.id}} {{tag(the_tag)}}</label> - </li> + <label for="tag_{{the_tag.id}}">{{tag(the_tag)}}</label> + </div> {% endfor %} - </ul> + </section> {% else %} <p>there are no available tags.</p> {% endif %} diff --git a/apioforum/templates/create_thread.html b/apioforum/templates/create_thread.html deleted file mode 100644 index 90d1410..0000000 --- a/apioforum/templates/create_thread.html +++ /dev/null @@ -1,15 +0,0 @@ -{% extends 'base.html' %} -{% block header %} -<h1>{% block title %}create thread{% endblock %}</h1> -{% endblock %} - -{% block content %} -<form method="POST"> - <label for="title">thread title</label> - <input name="title" id="title"> - <br> - <label for="content">thread content</label> - <textarea name="content" id="content" class="new-post-box" placeholder="thread content here"></textarea> - <input type="submit" value="create"> -</form> -{% endblock %} diff --git a/apioforum/templates/view_forum.html b/apioforum/templates/view_forum.html index fe82532..ddfb950 100644 --- a/apioforum/templates/view_forum.html +++ b/apioforum/templates/view_forum.html @@ -77,7 +77,7 @@ you do not have permission to create threads in this forum {{ sortby_option("ca", "creation time (oldest first)") }} </select> <p>filter by tag:</p> - <section class="tag-filters"> + <section class="tag-selection filter-tags"> <div> <input {% if tagfilter_tag is none %}checked{% endif %} type=radio id=tagfilter-none name=tagfilter value=""> <label for=tagfilter-none>don't</label> |