From 6d1ed851b5b5bce6c412745dac72b030fbf49d1b Mon Sep 17 00:00:00 2001 From: Adam Wester Date: Sat, 21 Nov 2015 22:03:29 -0500 Subject: [PATCH] #3228 - add confirm modal for delete --- .../rest_framework/css/bootstrap-tweaks.css | 5 +++++ .../templates/rest_framework/base.html | 22 ++++++++++++++++--- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/rest_framework/static/rest_framework/css/bootstrap-tweaks.css b/rest_framework/static/rest_framework/css/bootstrap-tweaks.css index f3d20cca..17085b49 100644 --- a/rest_framework/static/rest_framework/css/bootstrap-tweaks.css +++ b/rest_framework/static/rest_framework/css/bootstrap-tweaks.css @@ -227,3 +227,8 @@ body a:hover { width: 20px; margin-top: 3px; } + +.modal-footer form { + margin-left: 5px; + margin-right: 5px; +} diff --git a/rest_framework/templates/rest_framework/base.html b/rest_framework/templates/rest_framework/base.html index 558d634c..b97e36aa 100644 --- a/rest_framework/templates/rest_framework/base.html +++ b/rest_framework/templates/rest_framework/base.html @@ -1,6 +1,7 @@ {% load staticfiles %} {% load rest_framework %} {% load i18n %} + @@ -101,9 +102,24 @@ {% endif %} {% if delete_form %} -
- -
+ + + + {% endif %} {% if filter_form %}