Daniel Roschka
e13b42cd13
Refactors the views used to add and delete records.
...
Notable changes are:
* Refactored views, utilizing more of Djangos features, resulting in simpler
code.
* URLs are now the same when initially filling out a form and when editing a
submitted form which contained errors.
* Instead of a result page showing the response from the DNS server (which is
now logged using Djangos "logging" functionality) the user is now redirected
back to the record listing of the current zone when the action was successful
or stays on the form page when an error occured. Proper success/error
messages are shown in both cases by utilizing Djangos "messages"
functionality.
2015-09-05 19:03:21 +02:00
Daniel Roschka
52ebb1e1b1
Merge branch 'master' into add-global-authentication
2015-07-24 12:14:21 +02:00
Daniel Roschka
20d785840b
Fixes some python style issues.
...
No changes in binders functionality are included in this commit, just improved
python style
2015-06-13 12:05:42 +02:00
Daniel Roschka
7882ee9121
Add global authentication
...
This commit adds global authentication to binder to ensure that only valid
users are able to use it. This should enable binder to be used in
environemts where it's webfrontend is reachable for unauthenticated users as
well.
For setups where such a global authentication isn't desired it can be disabled
by simply removing the LoginRequiredMiddleware from the list of active
middlewares.
2015-04-05 21:06:01 +02:00
Jeffrey Forman
a7bc198c4d
Convert template URL href references to use 'url' template syntax for reverse URLs
2012-12-15 20:25:06 -05:00
Jeffrey Forman
e1c0e9d256
remove unused import
2012-11-25 18:09:56 -05:00
Jeffrey Forman
a7b531cf9b
add names to all url's
2012-11-24 22:57:08 -05:00
Jeffrey Forman
eb717e001a
Bring things up to 1.4 standards. A LOT of file moves, simplifying of paths. Removed bcommon directory under binder
2012-10-28 14:49:15 -04:00
Jeffrey Forman
60c6a9ee83
Make the admin UI work again now that I'm running django 1.4
2012-10-27 18:41:25 -04:00
Jeffrey Forman
4565e93d93
a fairly big rewrite of add/delete record that actually works!
2012-10-27 18:03:45 -04:00
Jeffrey Forman
00b22acba7
Add most of the framework for adding a cname record. templates, views, helper code.
...
Still need to cleanup helpers, figure out why delete is failing
2012-10-26 17:09:05 -04:00
Jeffrey Forman
a03f49c158
Code cleanup, standardize on dns_server and zone_name
...
Added bootstrap CSS framework
Added error handling around deleting with a bad key.
2011-11-26 13:03:00 -05:00
Jeffrey Forman
380657d5f5
Better handle when we try to list a zone that does not exist.
2011-11-25 17:43:26 -05:00
Jeffrey Forman
32aadb1ee2
End-to-end deletion working for single and multiple records.
2011-11-25 07:58:43 -05:00
Jeffrey Forman
00f8036991
End-to-end working version of adding forward/reverse A record from forward zone form.
2011-11-24 11:57:13 -05:00
Jeffrey Forman
6dd125eb67
WIP: Initial instrumentation of delete record functionality.
...
I have the confirmation page written. Need to work on parsing array to delete when confirmation received.
2011-04-24 22:11:43 -04:00
Jeffrey Forman
a981711c22
When input is prefect, adding a record works and shows output from dns update.
2011-04-24 20:52:56 -04:00
Jeffrey Forman
6a1275185d
WIP: Initial form written to add record. Displays, but does not work yet.
2011-04-23 16:23:25 -04:00
Jeffrey Forman
27a121ca0a
work on issue 1, handle errors when querying server for list of zones
...
handles errors such as connection refused, no host found, etc.
2011-04-23 11:19:01 -04:00
Jeffrey Forman
c6e1e5d592
Add root url '/' page with link to server list
2011-04-16 07:41:40 -04:00
Jeffrey Forman
3ed63a3c55
Add initial static directory with rudimentary CSS for tables
2011-04-14 22:08:22 -04:00
Jeffrey Forman
7135a48d64
Rudimentary first listing of zones from an NS works.
2011-04-14 15:29:58 -04:00
Jeffrey Forman
ad689c48d4
This make the zone list url append_slash happy
2011-04-14 14:30:06 -04:00
Jeffrey Forman
8f21491f3a
Handles listing dns servers and zones within
2011-04-13 22:27:40 -04:00
Jeffrey Forman
03ce6bb7db
/info now works listing the dns servers configured, each linked as well
2011-04-13 20:49:20 -04:00
Jeffrey Forman
2269155864
Enable admin ui
2011-04-10 15:02:33 -04:00