general: update dialogs to match style guide

This commit is contained in:
Frédéric Péters 2016-03-19 10:15:14 +01:00
parent 6658a4d4c2
commit f38ae35825
4 changed files with 37 additions and 13 deletions

View File

@ -2,12 +2,15 @@
{% load i18n %}
{% block content %}
<form method="post">
<h5>
<p>
{% blocktrans with title=object.title %}
Are you sure you want to delete the announce "{{ title }}" ?
{% endblocktrans %}
</h5>
</p>
{% csrf_token %}
<button>{% trans "Delete" %}</button>
<div class="buttons">
<button>{% trans "Delete" %}</button>
<a class="cancel" href="{{ object.get_absolute_url }}">{% trans 'Cancel' %}</a>
</div>
</form>
{% endblock %}

View File

@ -1,15 +1,22 @@
{% extends "corbo/manage.html" %}
{% load i18n %}
{% block appbar %}
{% if object %}
<h2>{% trans "Modify Announce" %}</h2>
{% else %}
<h2>{% trans "New Announce" %}</h2>
{% endif %}
{% endblock %}
{% block content %}
<form method="post">
{% csrf_token %}
{{ form.media }}
<ul>
{{ form.as_ul }}
<li>
{{ form.as_p }}
<div class="buttons">
<button>{% trans "Save" %}</button>
</li>
</ul>
</div>
<script type="text/javascript">
$(function() {
$(".datepicker" ).datepicker();

View File

@ -3,12 +3,15 @@
{% block content %}
<form method="post">
{% csrf_token %}
<h5>
<p>
{% blocktrans with name=object.name %}
Are you sure you want to delete category "{{ name }}"?
{% endblocktrans %}
</h5>
<p class="text_preview">{% trans "All its announces of will be also deleted" %}</p>
<button>{% trans "Delete" %}</button>
</p>
<p>{% trans "All its announces of will be also deleted" %}</p>
<div class="buttons">
<button>{% trans "Delete" %}</button>
<a class="cancel" href="{{ object.get_absolute_url }}">{% trans 'Cancel' %}</a>
</div>
</form>
{% endblock %}

View File

@ -1,9 +1,20 @@
{% extends "corbo/manage.html" %}
{% load i18n %}
{% block appbar %}
{% if object %}
<h2>{% trans "Modify Category" %}</h2>
{% else %}
<h2>{% trans "New Category" %}</h2>
{% endif %}
{% endblock %}
{% block content %}
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<button>{% trans "Save" %}</button>
<div class="buttons">
<button>{% trans "Save" %}</button>
</div>
</form>
{% endblock %}