Files
myriad/myriad/templates/blog/edit.html

30 lines
1.0 KiB
HTML

{% extends 'base.html' %}
{% block header %}
<div class="title">{% block title %}Edit Blog Post{% endblock %}</div>
{% endblock %}
{% block content %}
<div class="container">
<form method="post">
<label for="title">Title</label>
<input name="title" id="title" value="{{post[3]}}"><br>
<label for="content">Content</label>
<textarea name="content" id="content">{{post[4]}}</textarea><br>
<label for="mid">Choose a member:</label>
<select name="mid" id="mid">
{% for member in members %}
<option value="{{member[0]}}" {% if member[0]==post[1] %}selected{% endif %}>{{ remove_html(member[1]) }}</option>
{% endfor %}
</select>
<br>
<input type="radio" id="public" name="privacy" value=1 {% if post[5]==1 %}checked{% endif %}>
<label for="public">Public</label><br>
<input type="radio" id="private" name="privacy" value=0 {% if post[5]==0 %}checked{% endif %}>
<label for="private">Private</label><br>
<input type="submit" value="Submit">
</form>
</div>
{% endblock %}