Commit Graph

15 Commits

Author SHA1 Message Date
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
jeffrey forman 9e5991df2c Merge branch 'responsive-layout' of https://github.com/Dunedan/binder into Dunedan-responsive-layout
Conflicts:
	binder/templates/base.html
2015-07-28 06:16:56 -04:00
Daniel Roschka 515876a2a5 Merge branch 'master' into add-global-authentication 2015-06-08 19:24:36 +02:00
Daniel Roschka f41133d733 Responsive layout for better experience on mobile devices
This commit changes the layout of binder to provide a better experience on
mobile devices and for form validation errors. It's outcome might not be
perfect yet, but I believe it's a really nice step forward.

The changes consist of:
* moving the menu from the left side to the top, so it doesn't consume
  additional screen space when scrolling down
* changed the width of the content to depend on the screen size. For larger
  screens the forms won't consume the whole width, but validation errors will
  be shown beside the form field containing the error
* showing field independent error messages on top of each form
* highlighting of form fields which contain errors
2015-06-05 16:50:48 +02:00
jeffrey forman a92553e6d8 Merge branch 'static-template-tag' of https://github.com/Dunedan/binder into Dunedan-static-template-tag 2015-06-03 20:13:16 -04:00
Daniel Roschka 9ed2be3b66 Use the static template tag when refering to static files. 2015-05-31 08:10:19 +02:00
Daniel Roschka 5476314232 Replaces hardcoded links in templates with Djangos url tag. 2015-05-30 22:27:25 +02:00
Daniel Roschka 2ffd7c4b39 Resolve merge conflict introduced with recent changes to master. 2015-05-30 18:17:29 +02:00
jeffrey forman 5effaf8c45 Merge branch 'template-cleanup' of https://github.com/Dunedan/binder into Dunedan-template-cleanup
resolve some conflicts with templates

Conflicts:
	binder/templates/bcommon/add_cname_record_form.html
	binder/templates/bcommon/delete_record_initial.html
2015-05-27 20:03:33 -04: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 796cb06055 Merge branch 'ship-jquery' of https://github.com/Dunedan/binder into Dunedan-ship-jquery 2015-04-05 07:22:23 -04:00
Daniel Roschka d46ffd1abc Clean up of various parts of the templates
* Replaced tabs for indentation with proper spaces to have only spaces for
  indentation
* Added the btn-default class to all buttons where it was missing
* Added relations between labels and the elements they are labeling using the
  naming schema Django uses by default (might become handy in the future)
* Added additional meta tags required by Bootstrap 3
* Moved the button for adding records in list_zone.html out of the table to get
  cleaner markup
* Swapped out the used version of Bootstrap against the minified one.
* Removed the commented out old code from delete_record_initial.html, because
  that's why we have version control
2015-04-02 08:32:27 +02:00
jeffrey forman 41f78b3eff move to bootstrap 3 (3.3.4). fairly significant template update 2015-04-01 21:28:56 -04:00
Daniel Roschka a5ebc7bad7 Ship jQuery with binder
Up to now jQuery has been the only resource required by binder which users had
to load from the internet. To enable binder to work in environments where no
internet access is available this commit adds jQuery 2.1.3 to binders static
files so no internet access is necessary anymore for using binder.
2015-04-01 15:22:13 +02:00
Daniel Roschka 8be9a4b2e3 Renaming all templates from *.htm to *.html
When using Djangos "makemessages" command to collect strings for i18n it only
considers templates with a file extenions of .txt and .html by default. For
more details see:
https://docs.djangoproject.com/en/dev/topics/i18n/translation/#message-files

Also when Django is refering to default template names (e.g. for error handling
or accounts) it always refers to file names with .html as file extension.

To avoid hassle in the future this commit aligns the file extension used for
templates to Djangos default of .html.
2015-03-26 22:13:42 +01:00