parent
174b57ee59
commit
466f883d34
12 changed files with 99 additions and 50 deletions
@ -1,8 +1,9 @@ |
|||||||
# -*- coding: utf-8 -*- |
# -*- coding: utf-8 -*- |
||||||
from django.conf.urls import patterns, url |
from django.conf.urls import patterns, url |
||||||
|
|
||||||
urlpatterns = patterns('', |
urlpatterns = patterns('city.views', |
||||||
url(r'^add/$', 'city.views.city_add'), |
url(r'^add/$', 'city_add'), |
||||||
url(r'^change/(.*)/$', 'city.views.city_change'), |
url(r'^delete/(?P<url>.*)/$', 'city_delete'), |
||||||
url(r'^all/$', 'city.views.city_all'), |
url(r'^change/(.*)/$', 'city_change'), |
||||||
|
url(r'^all/$', 'city_all'), |
||||||
) |
) |
||||||
@ -0,0 +1,20 @@ |
|||||||
|
{% extends 'base.html' %} |
||||||
|
|
||||||
|
{% block body %} |
||||||
|
{% if form %} |
||||||
|
<form> |
||||||
|
<p>Вы действительно хотите удалить <b>{{ object }}</b>?</p><br> |
||||||
|
{{ form.url }} |
||||||
|
|
||||||
|
<input type="submit" class="btn-primary" value="Да"> |
||||||
|
<a class="btn" href="{{ prev_page }}">Нет</a> |
||||||
|
</form> |
||||||
|
{% else %} |
||||||
|
{{ msg }} |
||||||
|
<br> |
||||||
|
<a href="{{ prev_page }}">Вернуться</a> |
||||||
|
|
||||||
|
|
||||||
|
{% endif %} |
||||||
|
|
||||||
|
{% endblock %} |
||||||
Loading…
Reference in new issue