Commit Graph

283 Commits

Author SHA1 Message Date
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
Jeffrey Forman ec85c465d8 Merge pull request #38 from Dunedan/landscape.io-support
Adds a configuration file for static code analysis using Landscape.io.
2015-06-12 20:23:01 -04:00
Daniel Roschka 0d6af27cef Adds a configuration file for static code analysis using Landscape.io. 2015-06-12 14:50:20 +02:00
Daniel Roschka 515876a2a5 Merge branch 'master' into add-global-authentication 2015-06-08 19:24:36 +02:00
Daniel Roschka a16abc4042 Fixes tests broken by previous commit. 2015-06-08 19:20:53 +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 cbbc5f08c0 Merge branch 'Dunedan-static-template-tag' 2015-06-03 21:38:15 -04: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
jeffrey forman 15f6b6a924 Merge branch 'Dunedan-remove-hardcoded-links' 2015-06-03 20:04:59 -04:00
jeffrey forman 4fd1670e58 Merge branch 'remove-hardcoded-links' of https://github.com/Dunedan/binder into Dunedan-remove-hardcoded-links 2015-06-03 20:02:27 -04:00
Jeffrey Forman 6c048eed77 Merge pull request #34 from Dunedan/remove-dns-resolv-test
Remove tests for checking DNS resolution
2015-06-03 19:59:12 -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
Daniel Roschka ff2f5abcb1 Remove tests for checking DNS resolution
The tests checking the DNS resolution aren't reliable as they rely on specific
behavior of the DNS resolution on the local system. As they are reliable it
makes no sense to keep them as they are currently.
2015-05-30 16:42:59 +02:00
Jeffrey Forman 1137b97239 Merge pull request #27 from Dunedan/travisci-support
Add Travis CI support
2015-05-27 20:25:05 -04:00
jeffrey forman 05dc9bcf79 Merge branch 'Dunedan-revised-local-settings' 2015-05-27 20:15:19 -04:00
jeffrey forman d625e0245b Merge branch 'revised-local-settings' of https://github.com/Dunedan/binder into Dunedan-revised-local-settings
fixed import of get_object_or_404 which was erroneously removed

Conflicts:
	binder/views.py
2015-05-27 20:14:50 -04:00
jeffrey forman fc946c3fa0 Merge branch 'Dunedan-template-cleanup' 2015-05-27 20:04:14 -04: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 dc15440a98 Merge pull request #32 from Dunedan/fix-missing-cancel-buttons
Fixes missing cancel buttons
2015-04-05 14:09:07 -04:00
jeffrey forman f38f96660f Merge branch 'Dunedan-ship-jquery' 2015-04-05 07:23:09 -04: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
Jeffrey Forman fb7fab8306 Merge pull request #29 from Dunedan/fix-requirements
Fix contents of requirements.txt
2015-04-04 22:09:24 -04:00
jeffrey forman acd55f34aa Merge branch 'Dunedan-404-for-not-existing-servers' 2015-04-04 22:08:22 -04:00
jeffrey forman b62af7b64d fix UI tests that werent updated to match the new templates 2015-04-04 22:07:49 -04:00
jeffrey forman 5c35b2306e delete commented out HTML that was forgotten from before 2015-04-04 22:07:37 -04:00
jeffrey forman 880eee067d localhost wont always have an IPv6 address assigned to it 2015-04-04 20:33:53 -04:00
jeffrey forman 12654bd3a5 Merge branch 'fix-failing-tests' of https://github.com/Dunedan/binder into Dunedan-404-for-not-existing-servers 2015-04-04 20:28:31 -04:00
jeffrey forman a099a43250 Merge branch '404-for-not-existing-servers' of https://github.com/Dunedan/binder into Dunedan-404-for-not-existing-servers 2015-04-03 22:13:42 -04:00
Jeffrey Forman 2fef6d07af Merge pull request #23 from Dunedan/add-migrations
Added initial migrations for binders models.
2015-04-02 21:55:11 -04:00
Jeffrey Forman 074d62453f Merge pull request #22 from Dunedan/configurable-dns-port
Make the port for DNS queries per server configurable.
2015-04-02 21:54:23 -04:00
Daniel Roschka f6d95c2ac2 Fixes missing cancel buttons
The cancel buttons on the forms introduced with
1671bc4c2f vanished with
41f78b3eff.
This commit adds them back.
2015-04-02 19:21:33 +02:00
Daniel Roschka c885c823b5 Removes a broken label assignment from the form to add CNAMEs. 2015-04-02 13:41:28 +02:00
Daniel Roschka 8a67eeb8c5 Fixes label assignment to fields for radio button fields. 2015-04-02 13:39:18 +02:00
Daniel Roschka 581dc915fe Change in the behavior of local_settings.py
Up to now local_settings.py was used for binder specific configuration values.

This commit moves these values to settings.py, removes local_settings.py
from version control and adds logic to settings.py to allow settings in
local_settings.py to overwrite ones defined in settings.py, enabling
local_settings.py to be used as installation specific configuration file,
e.g. for custom database configuration.
2015-04-02 10:26:29 +02: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
Daniel Roschka 8acbc5526b Added support for Django 1.8. 2015-04-02 07:20:02 +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 479d79cd3f Fix contents of requirements.txt
Removes unneccessary beautifulsoup4 requirement from requirements.txt and adds
necessary requirement on Django.
2015-04-01 12:51:30 +02:00
jeffrey forman 6557f2c099 clean up how we parse multiple items in the selected list when deleting multiple records 2015-03-31 21:43:26 -04:00
Daniel Roschka 1af0f6cd43 Add Travis CI support
To improve the code quality of binder, this commit adds support for continuous
integration by using Travis CI (https://travis-ci.org/).
This will ensure that every commit and every pull request will trigger test
runs of the tests included in binder, helping to avoid code with broken tests.
2015-03-29 21:05:23 +02:00
Daniel Roschka a6747b4f25 Removed the checking for the exception message when trying to produce an
IntegrityError, because that message differs based on the environment.
2015-03-29 19:47:58 +02:00
Daniel Roschka 95b86434ff Fixes outstanding failing tests
Fixes three failing tests.
For test_ipinfo_ResolutionFail it fixes the following issues:
* failing when no network is available
* failing when Google changes the ip addresses of the service
* failing when the order of returned ip addresses is different
For test_DeleteRecordInitial_Empty and test_DeleteRecordInitial it fixes a not
existing BindServer object.
2015-03-29 19:03:53 +02:00
Daniel Roschka 6a769e4cbb Fixes the behavior for not existing BIND servers
When requesting one of binders BIND server specific URLs for a server not
present in binders database currently uncatched exceptions are thrown.

This commit fixes that for all URLs containing the server name, by instead of
throwing an uncatched exception, returning a proper HTTP 404 status code.
2015-03-29 14:04:43 +02:00
Daniel Roschka 30d812f838 Removed the initial migrations for binders models again as they are now part of
another pull request. The only migration left is the one for the newly added
field.
2015-03-28 18:48:25 +01:00
Daniel Roschka a3d97f97d2 Added initial migrations for binders models. 2015-03-28 18:46:55 +01:00
jeffrey forman 0da5e9ba89 Merge branch 'Dunedan-htm-to-html' 2015-03-28 08:55:51 -04:00