2013-01-06 12:07:37 +01:00
|
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
|
|
{% load tags %}
|
|
|
|
|
{% load i18n %}
|
2013-03-17 17:16:37 +01:00
|
|
|
|
{% load staticfiles %}
|
|
|
|
|
|
|
|
|
|
{% block header %}
|
2013-10-15 16:18:40 +02:00
|
|
|
|
{{ block.super }}
|
2013-05-28 20:31:01 +02:00
|
|
|
|
<link type="text/css" rel="stylesheet" media="all" href="{% static 'styles/motion.css' %}" />
|
2013-03-17 17:16:37 +01:00
|
|
|
|
<link type="text/css" rel="stylesheet" media="all" href="{% static 'styles/ckeditor.css' %}" />
|
2013-08-31 00:17:32 +02:00
|
|
|
|
<link href="{% static 'styles/jquery.bsmselect.css' %}" type="text/css" rel="stylesheet" />
|
2013-03-17 17:16:37 +01:00
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
{% block javascript %}
|
2013-10-15 16:18:40 +02:00
|
|
|
|
{{ block.super }}
|
2013-04-15 21:12:29 +02:00
|
|
|
|
<script type="text/javascript" src="{% static 'javascript/ckeditor/ckeditor.js' %}"></script>
|
|
|
|
|
<script type="text/javascript" src="{% static 'javascript/ckeditor-config.js' %}"></script>
|
2013-08-31 00:17:32 +02:00
|
|
|
|
<script type="text/javascript" src="{% static 'javascript/jquery.bsmselect.js' %}"></script>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
// use jquery-bsmselect for all <select multiple> form elements
|
|
|
|
|
$("select[multiple]").bsmSelect({
|
|
|
|
|
removeLabel: '<sup><b>X</b></sup>',
|
|
|
|
|
containerClass: 'bsmContainer',
|
|
|
|
|
listClass: 'bsmList-custom',
|
|
|
|
|
listItemClass: 'bsmListItem-custom',
|
|
|
|
|
listItemLabelClass: 'bsmListItemLabel-custom',
|
|
|
|
|
removeClass: 'bsmListItemRemove-custom'
|
|
|
|
|
});
|
2013-10-15 16:18:40 +02:00
|
|
|
|
|
|
|
|
|
// Init CKeditor
|
|
|
|
|
$(function() {
|
|
|
|
|
CKEDITOR.replace('id_text', ck_options);
|
|
|
|
|
CKEDITOR.replace('id_reason', ck_options);
|
|
|
|
|
});
|
2013-08-31 00:17:32 +02:00
|
|
|
|
</script>
|
2013-03-17 17:16:37 +01:00
|
|
|
|
{% endblock %}
|
|
|
|
|
|
2013-03-09 14:29:40 +01:00
|
|
|
|
{% block title %}
|
|
|
|
|
{% if motion %}
|
|
|
|
|
{% trans "Edit motion" %}
|
|
|
|
|
{% else %}
|
|
|
|
|
{% trans "New motion" %}
|
|
|
|
|
{% endif %}
|
2013-06-14 20:24:48 +02:00
|
|
|
|
– {{ block.super }}
|
2013-03-09 14:29:40 +01:00
|
|
|
|
{% endblock %}
|
2013-01-06 12:07:37 +01:00
|
|
|
|
|
|
|
|
|
{% block content %}
|
2013-03-09 14:29:40 +01:00
|
|
|
|
<h1>
|
|
|
|
|
{% if motion %}
|
|
|
|
|
{% trans "Edit motion" %}
|
|
|
|
|
{% else %}
|
|
|
|
|
{% trans "New motion" %}
|
|
|
|
|
{% endif %}
|
|
|
|
|
<small class="pull-right">
|
2013-04-22 19:59:05 +02:00
|
|
|
|
{% if motion %}
|
2013-09-07 10:14:54 +02:00
|
|
|
|
<a href="{{ motion|absolute_url }}" class="btn btn-mini"><i class="icon-chevron-left"></i> {% trans "Back to motion" %}</a>
|
2013-04-22 19:59:05 +02:00
|
|
|
|
{% else %}
|
|
|
|
|
<a href="{% url 'motion_list' %}" class="btn btn-mini"><i class="icon-chevron-left"></i> {% trans "Back to overview" %}</a>
|
|
|
|
|
{% endif %}
|
2013-03-09 14:29:40 +01:00
|
|
|
|
</small>
|
|
|
|
|
</h1>
|
2013-01-06 12:07:37 +01:00
|
|
|
|
<form action="" method="post">{% csrf_token %}
|
2013-03-09 14:29:40 +01:00
|
|
|
|
{% include "form.html" %}
|
|
|
|
|
<p>
|
|
|
|
|
{% include "formbuttons_saveapply.html" %}
|
|
|
|
|
<a href='{% url 'motion_list' %}' class="btn">
|
|
|
|
|
{% trans 'Cancel' %}
|
2013-01-06 12:07:37 +01:00
|
|
|
|
</a>
|
2013-03-09 14:29:40 +01:00
|
|
|
|
</p>
|
2013-01-06 12:07:37 +01:00
|
|
|
|
<small>* {% trans "required" %}</small>
|
|
|
|
|
</form>
|
|
|
|
|
{% endblock %}
|