mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-12-23 18:40:34 +00:00
8ad0abd921
Fix #121
26 lines
863 B
Text
26 lines
863 B
Text
{% extends "base" %}
|
|
{% import "macros" as macros %}
|
|
|
|
{% block title %}
|
|
{{ "New post" | _ }}
|
|
{% endblock title %}
|
|
|
|
{% block content %}
|
|
<h1>{{ "Create a post" | _ }}</h1>
|
|
<form class="new-post" method="post">
|
|
{{ macros::input(name="title", label="Title", errors=errors, form=form, props="required") }}
|
|
|
|
{% if errors is defined and errors.content %}
|
|
{% for err in errors.content %}
|
|
<p class="error">{{ err.message | default(value="Unknown error") | _ }}</p>
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
<label for="content">{{ "Content" | _ }}</label>
|
|
<textarea id="content" name="content" value="{{ form.content | default(value="") }}"></textarea>
|
|
|
|
{{ macros::input(name="license", label="License", errors=errors, form=form, optional=true) }}
|
|
|
|
<input type="submit" value="{{ "Publish" | _ }}" />
|
|
</form>
|
|
{% endblock content %}
|