Permalink
Browse files

delete confirmation style, had to override delete_confirmation.html

  • Loading branch information...
1 parent a5000c2 commit d93ea3aba71a0a14cbe7ca1e28f44d3c7f071a7f @alesdotio alesdotio committed Nov 16, 2012
@@ -198,6 +198,14 @@ a.addlink {
// changeform
.change-form {}
+// delete page
+.delete-confirmation .colM {
+ @include box(); padding: 20px; margin: 15px !important;
+ h1 { margin: 0 0 10px 0; }
+ li { line-height: 16px; }
+ input[type="submit"] { @include button-red(); float: right; }
+}
+
// cms pagelist
#sitemap li a.addlink, #sitemap li a.deletelink { width: 11px; height: 11px; }
.tree {
@@ -110,18 +110,18 @@
@mixin button-red {
@include pie;
- @include background-image(linear-gradient($button-red-light-color, $button-red-medium-color));
- @include box-shadow($button-red-light-color 0 0 $button-shadow-width inset);
+ @include background-image(linear-gradient($button-red-light-color, $button-red-medium-color) !important);
+ @include box-shadow($button-red-light-color 0 0 $button-shadow-width inset !important);
background-color: $button-red-medium-color !important;
- border: 1px solid $button-red-light-color;
- border-bottom: 1px solid $button-red-dark-color;
+ border: 1px solid $button-red-light-color !important;
+ border-bottom: 1px solid $button-red-dark-color !important;
color: $button-red-font-color !important;
&:hover {
- background: $button-red-light-color;
- color: $button-red-font-color;
+ background: $button-red-light-color !important;
+ color: $button-red-font-color !important;
}
&:active {
- background: $button-red-medium-color;
+ background: $button-red-medium-color !important;
}
&.animate {
@include stripes(.2);

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -0,0 +1,46 @@
+{% extends "admin/base_site.html" %}
+{% load i18n %}
+{% load url from future %}
+{% load admin_urls %}
+
+{% block bodyclass %}delete-confirmation{% endblock %}
+
+{% block breadcrumbs %}
+<div class="breadcrumbs">
+<a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
+&rsaquo; <a href="{% url 'admin:app_list' app_label=opts.app_label %}">{{ app_label|capfirst }}</a>
+&rsaquo; <a href="{% url opts|admin_urlname:'changelist' %}">{{ opts.verbose_name_plural|capfirst|escape }}</a>
+&rsaquo; <a href="{% url opts|admin_urlname:'changelist' %}{{ object.pk }}">{{ object|truncatewords:"18" }}</a>
+&rsaquo; {% trans 'Delete' %}
+</div>
+{% endblock %}
+
+{% block content %}
+{% if perms_lacking or protected %}
+ {% if perms_lacking %}
+ <p>{% blocktrans with escaped_object=object %}Deleting the {{ object_name }} '{{ escaped_object }}' would result in deleting related objects, but your account doesn't have permission to delete the following types of objects:{% endblocktrans %}</p>
+ <ul>
+ {% for obj in perms_lacking %}
+ <li>{{ obj }}</li>
+ {% endfor %}
+ </ul>
+ {% endif %}
+ {% if protected %}
+ <p>{% blocktrans with escaped_object=object %}Deleting the {{ object_name }} '{{ escaped_object }}' would require deleting the following protected related objects:{% endblocktrans %}</p>
+ <ul>
+ {% for obj in protected %}
+ <li>{{ obj }}</li>
+ {% endfor %}
+ </ul>
+ {% endif %}
+{% else %}
+ <p>{% blocktrans with escaped_object=object %}Are you sure you want to delete the {{ object_name }} "{{ escaped_object }}"? All of the following related items will be deleted:{% endblocktrans %}</p>
+ <ul>{{ deleted_objects|unordered_list }}</ul>
+ <form action="" method="post">{% csrf_token %}
+ <div>
+ <input type="hidden" name="post" value="yes" />
+ <input type="submit" value="{% trans "Yes, I'm sure" %}" />
+ </div>
+ </form>
+{% endif %}
+{% endblock %}

0 comments on commit d93ea3a

Please sign in to comment.