From 4cc3dd3b236d6f5eb17d08648780afb86b1bb9af Mon Sep 17 00:00:00 2001 From: Alec Perkins Date: Sat, 8 Sep 2012 00:40:11 -0400 Subject: Disable OPTIONS if method isn't allowed --- .../static/djangorestframework/css/style.css | 13 +++++++++++++ djangorestframework/templates/djangorestframework/base.html | 9 ++++++--- 2 files changed, 19 insertions(+), 3 deletions(-) (limited to 'djangorestframework') diff --git a/djangorestframework/static/djangorestframework/css/style.css b/djangorestframework/static/djangorestframework/css/style.css index 8ab89510..3d6fdbdc 100644 --- a/djangorestframework/static/djangorestframework/css/style.css +++ b/djangorestframework/static/djangorestframework/css/style.css @@ -30,4 +30,17 @@ h2, h3 { .format-option { font-family: Menlo, Consolas, "Andale Mono", "Lucida Console", monospace; +} + +#options-form { + position: relative; +} + +/* To allow tooltips to work on disabled elements */ +.disabled-tooltip-shield { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; } \ No newline at end of file diff --git a/djangorestframework/templates/djangorestframework/base.html b/djangorestframework/templates/djangorestframework/base.html index 8f99ae5c..a81c2fb7 100644 --- a/djangorestframework/templates/djangorestframework/base.html +++ b/djangorestframework/templates/djangorestframework/base.html @@ -64,11 +64,14 @@