50 lines
1.5 KiB
HTML
50 lines
1.5 KiB
HTML
{% extends "base.html" %}
|
|
{% load i18n static %}
|
|
{% block head %}
|
|
<title> TipPy Blog</title>
|
|
{% endblock %}
|
|
|
|
{% block nav %}
|
|
{% include "nav.html" with ls=ls season=season %}
|
|
{% endblock %}
|
|
|
|
{% block body %}
|
|
<div id="content-main">
|
|
{% if form.errors %}
|
|
<div>
|
|
<p class="errornote">
|
|
{% if form.errors.items|length == 1 %}
|
|
{% trans "Please correct the error below." %}
|
|
{% else %}
|
|
{% trans "Please correct the errors below." %}
|
|
{% endif %}</p>
|
|
</div>
|
|
{% endif %}
|
|
<div class="row">
|
|
<div class="col-md-8">
|
|
<form class="form-horizontal" action="" method="post">{% csrf_token %}
|
|
<div class="form-group">
|
|
{{form.title.errors}}
|
|
<label for="id_title" class="col-sm-4 control-label required">{% trans 'Title' %}</label>
|
|
<div class="col-sm-5">
|
|
<input id="id_title" maxlength="32" name="title" class="form-control" type="text" />
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
{{form.content.errors}}
|
|
<label for="id_content" class="col-sm-4 control-label required">{% trans 'Content' %}</label>
|
|
<div class="col-sm-5">
|
|
<textarea class="form-control" maxlength="256" rows="2" id="id_content" name="content"></textarea>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="col-sm-offset-2 col-sm-10">
|
|
<button type="submit" class="btn btn-default">{% trans 'Sent' %}</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|