home » zplus/freepost.git
ID: c16121ee793376402ffc3c52464b3beaa0dda454
47 lines — 1K — View raw


{% extends 'layout.html' %}

{# Set variables for base layour #}
{% set title = 'Submit' %}

{% block content %}

    {% if flash %}
        <div class="alert bg-red">
            {{ flash|safe }}
        </div>
    {% endif %}

    <form action="" method="post" class="submit">
        <h3>Title</h3>
        <div>
            <input type="text" name="title" class="form-control" required='required' autofocus />
        </div>

        <h3>Link</h3>
        <div>
            <input type="text" name="link" class="form-control" />
        </div>

        {% if settings ('defaults', 'topics_per_post') > 0 %}
            <h3>Topics</h3>
            <div>
                <input type="text" name="topics" value="{{ request.query.topic }}" class="form-control" />
            </div>
            <div>
                Max {{ settings ('defaults', 'topics_per_post') }}
                (eg. FreeSoftware OpenData ...)
            </div>
        {% endif %}

        <h3>Text</h3>
        <div><em>Markdown is enabled</em></div>
        <div>
            <textarea name="text" rows=10 class="form-control"></textarea>
        </div>

        <div style="margin: 1em 0 0 0;">
            <input type="submit" class="button button_info" value="Submit post to c/{{ community }}" />
        </div>
    </form>

{% endblock %}