1
|
{% extends "corbo/announce_list.html" %}
|
2
|
{% load i18n %}
|
3
|
|
4
|
{% block breadcrumb %}
|
5
|
{{ block.super }}
|
6
|
{% if category %}
|
7
|
<a href='{% url "view_category" slug=category.slug %}'>{{ category }}</a>
|
8
|
{% endif %}
|
9
|
{% endblock %}
|
10
|
|
11
|
{% block appbar %}
|
12
|
{% if object %}
|
13
|
<h2>{% trans "Edit Announce" %}</h2>
|
14
|
<a href='{% url "delete_announce" pk=object.pk %}' rel='popup'>{% trans 'Delete' %}</a>
|
15
|
{% else %}
|
16
|
<h2>{% trans "New Announce" %}</h2>
|
17
|
{% endif %}
|
18
|
</h2>
|
19
|
|
20
|
{% endblock %}
|
21
|
|
22
|
{% block content %}
|
23
|
<form method="post">
|
24
|
{% csrf_token %}
|
25
|
{{ form.media }}
|
26
|
{{ form.as_p }}
|
27
|
<div class="buttons">
|
28
|
<button>{% trans "Save" %}</button>
|
29
|
<a class="cancel" href="{% url 'view_category' slug=category.slug %}">{% trans 'Cancel' %}</a>
|
30
|
</div>
|
31
|
<script type="text/javascript">
|
32
|
$(function() {
|
33
|
$(".datetimepicker" ).datetimepicker();
|
34
|
});
|
35
|
</script>
|
36
|
</form>
|
37
|
{% endblock %}
|