Commit Graph

89 Commits

Author SHA1 Message Date
jtmy
8af7634e94 Fix missing extra_body block in allauth entrance.html 2024-08-19 21:54:05 -03:00
Reggie Riser
f86df89db9 Fixed invalid HTML in django-allauth field element template 2024-02-27 14:53:12 -05:00
Jelmer Draaijer
0e41e5e8d0 Added messages to entrance page 2024-02-24 19:32:56 +01:00
Jelmer Draaijer
2c93ef4009 Entrance justify-content-center with a sice of md-4 2024-02-24 19:31:34 +01:00
Jelmer Draaijer
44ca412dc1 Enable allauth.mfa for two-factor authentication 2024-02-08 16:52:16 +01:00
Jelmer Draaijer
6b90a9e701 Implement allauth elements and add body & main block for more override capabilities 2024-02-08 16:42:07 +01:00
Imran Rahman
a50f2bee94
Display custom 403_csrf.html while getting a csrf error in prod (#4464)
Co-authored-by: Imran Rahman <imranrahman.ix@gmail.com>
2023-07-24 12:41:10 +01:00
Andrew Chen Wang
a82622b592
Name shown twice in user_details.html if username set to email (#4436)
* Update user_detail.html

* Wrap long conditions over multiple lines

---------

Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
2023-07-10 17:46:42 +01:00
monosans
30e8506872
Add djLint for HTML formatting and linting (#4389)
* Add djLint for HTML formatting and linting

* Remove djLint pre-commit hook

* Bump djLint from 1.31.0 to 1.31.1
2023-06-27 22:52:36 +01:00
Bruno Alla
66660f41e6
Update cdn js URLs to latest Bootstrap 2023-04-26 10:29:07 +02:00
Andrew Chen Wang
1783257ed3
Add username_type option (#3958)
* Add username_type option

* Update docs

Signed-off-by: Andrew-Chen-Wang <acwangpython@gmail.com>

* Fix errors and lint

Signed-off-by: Andrew-Chen-Wang <acwangpython@gmail.com>

* Try linting again

* Try linting again

* Handle signup

* Fix url reverse in template

* Fix migration file

* Remove extra line in factories

* E2E tests for email username

* Fix style in users api views and serializers

* Fix style in users api views and serializers

* Add conditions for fields in UserAdminCreationForm

* Consistent Jinja tag conditions

* Fix more empty lines issues

* Tweak options order

* Test username email

* Fix code style

* Fix kwargs to reverse user details view

* Remove comment in template

* Fix error messages dict in user form

* Fix line wrapping

* Move custom manager into a separate module and add tests

---------

Signed-off-by: Andrew-Chen-Wang <acwangpython@gmail.com>
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
2023-04-15 11:53:15 +01:00
Bruno Alla
cbb0e19de7
Add Webpack support (#3623)
* Add support for Webpack as frontend pipeline

* Rename CI jobs

* Fix a couple of issues with Webpack + Docker

* Don't include Boostrap CSS from CDN with Webpack

* Rename variable

* Set publicPath in prod webpack config

* Fix removal of SASS files in post-gen hooks

* Add Webpack to readme usage section

* Run Django + Webpack dev server concurrently without Docker

* Fix async runserver command with Gulp/Webpack

* Upgrade django-webpack-loader to 1.5.0

* Pass variables required by Webpack at build time

* Upgrade django-webpack-loader to 1.7.0

* Add missing condition

* Add support for Azure Storage + Webpack

* Whitespaces

* Rename ROOT_DIR -> BASE_DIR

* Rename jobs

* Bump django-webpack-loader to latest

* Document limitation of Docker + Webpack + no Whitenoise

* Update section on custom Bootstrap compilation in generated readme
2023-01-29 12:12:12 +00:00
Bruno Alla
ab4a32d558
Unify compressor, gulp and custom bootstrap options (#3535) 2022-03-20 15:00:40 +00:00
Bruno Alla
e99120d87d Fix typo and trailing whitespaces 2022-01-04 17:49:40 +00:00
Will Gordon
785df85c4d
Hides 'sign up' elements when ACCOUNT_ALLOW_REGISTRATION is disabled (#1914)
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
2021-12-27 11:37:33 +00:00
Douglas
867bb9d5dc
Added Django's current language to the lang attribute of the html tag (#3174)
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
2021-12-24 10:09:57 +00:00
Bruno Alla
9f359939a9
Upgrade JS dependencies and upgrade to node 16 (#3400) 2021-11-16 20:29:43 +00:00
Bruno Alla
1aded6fafe Fix alerts for messages 2021-11-11 23:01:14 +00:00
Bruno Alla
90088116ff Add fluid container to fix horizontal padding 2021-11-11 21:08:44 +00:00
Bruno Alla
ab81e122d1 Fix navigation on mobile 2021-11-11 21:07:29 +00:00
Bruno Alla
3274ff1673 Update to latest Bootstrap 5 2021-09-11 18:16:54 +01:00
Bruno Alla
7412a3e4a7 Replace .sr-only by .visually-hidden 2021-09-11 18:10:22 +01:00
Bruno Alla
aceae00f0e Merge branch 'master' into bootstrap5 2021-09-11 17:57:13 +01:00
Andrew-Chen-Wang
88c487dfbd Convert trans to translate in templates
Signed-off-by: Andrew-Chen-Wang <acwangpython@gmail.com>
2021-07-27 01:20:30 -04:00
Andrew-Chen-Wang
7a87b1bd1f Fix gulp package installation (dropped jQuery)
* Add defer

Signed-off-by: Andrew-Chen-Wang <acwangpython@gmail.com>
2021-07-27 01:15:22 -04:00
Andrew-Chen-Wang
ba2f423600 Add bootstrap5 support + drop IE support
Signed-off-by: Andrew-Chen-Wang <acwangpython@gmail.com>
2021-07-27 01:10:18 -04:00
Kuo Chao Cheng
28544cb247 Wrap jQuery event after DOMContentLoaded 2021-06-25 12:05:12 +08:00
Bruno Alla
675cef0a95 Fix linting issues in template 2021-04-07 20:57:04 +01:00
Bruno Alla
c382894934 Fix pre-commit hook issues 2021-04-07 20:57:04 +01:00
Bruno Alla
ddc102d0f1
Merge pull request #2992 from Andrew-Chen-Wang/patch-3
Use exception var in status code pages if available
2021-02-23 08:43:33 +00:00
Andrew Chen Wang
1aa4c31b87
Change confusing CSRF 403 message
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
2021-02-22 15:45:05 -05:00
Andrew Chen Wang
ac0af4c178
Use exception var in 404.html if available 2021-01-01 22:44:02 -05:00
Andrew Chen Wang
3a1e94f41c
Use exception var in 403.html if available 2021-01-01 22:40:30 -05:00
Andrew Chen Wang
1fa5d79813
Add "defer" for inline Javascript
* Also utilize ECMAScript 6, 2015 syntax
2020-11-14 10:27:14 -05:00
Andrew-Chen-Wang
607c9676f5 Use defer for script tags (Fix #2922)
* This way, scripts from external URLs are loaded asynchronously. By putting it at the top of the file, the browser parses it first, downloads it while continuing to parse the HTML, and then executes on parsing finish
* Additionally, developers will not need to use $(window).ready() or the like in their files anymore.
* Added inline_javascript tag in case anyone wants to use the bottom of the HTML page to execute some Javascript. Using defer here has no effect as inline scripts defer by default

Signed-off-by: Andrew-Chen-Wang <acwangpython@gmail.com>
2020-11-04 11:54:21 -05:00
Andrew Chen Wang
fee9402e44
Use raw Jinja2 for cookiecutter template context
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
2020-07-21 00:02:14 -04:00
Andrew Chen Wang
69611313c9
Add author name and description to HTML meta 2020-06-30 10:01:50 -04:00
Harry Moreno
82c8b51272
Make update form button look like a button
without `ban-primary` the button looks like some floating text.
2019-11-25 16:43:30 -05:00
step21
c085345253
Rename 403_csrf.html to 403.html
403.html is the name that django expects, unless it is overriden. 403_csrf is a separate case, which according to django docs and mailing list should get a separate view/template. Fixes #2163 
Docs: https://docs.djangoproject.com/en/2.1/ref/csrf/#rejected-requests
Mailing list: https://groups.google.com/forum/#!msg/django-developers/O2raF0RVGA0/44-3Jz0jCwAJ
Stackoverflow: https://stackoverflow.com/questions/31981239/django-custom-403-template
2019-07-17 15:14:16 +02:00
Bruno Alla
2e32f1ff67
Added a button to close the message pop-up (#2162)
Added a button to close the message pop-up
2019-07-15 10:13:01 +01:00
2O4
5312d9b914
Added a button to close the message 2019-07-14 16:37:37 +02:00
2O4
3aa7181a46
Delete user_list.html
Following on Remove user list view #2062
2019-07-14 15:55:50 +02:00
2O4
3abf0fec3a fixed buttons 2019-07-11 13:44:38 +02:00
Bruno Alla
b91c70d755
Add a node image to run Gulp when selecting it with Docker (#1687)
## Description

Following up on @webyneter attempt in #1205, which is now getting outdated, I've tried to make Gulp task runner work with Docker. There is no documentation yet, but this seems to work locally with the custom bootstrap compilation...

- [x] Add a node image for local developement
- [x] Proxy the django image rather than localhost in Browser sync, pass header to keep hostname
- [x] Don't call the runserver command from Gulp, let docker-compose handle
- [x] Update package.json & gulpfile.js templates to reduce the number of unwanted empty lines
- [x] Use [multi-stage build](https://docs.docker.com/develop/develop-images/multistage-build/) in production to make sure the static assets are produced
- [x] Update documentation
- [x] Verify that the previous issue with static assets missing from production isn't there 

## Rationale

Currently, the static build isn't working nicely with Docker, extra manual setup is required.

Fixes #1762
2019-03-25 12:10:55 +00:00
Tubo Shi
a1508f2600 updated spacing utility class name 2018-11-30 18:12:08 +13:00
Mateusz Ostaszewski
80f6b1958e Update bootstrap to 4.1.1 (#1697)
* Update Bootstrap to 4.1.1

* Add myself to contributors
2018-07-12 12:35:28 +03:00
Nikita P. Shupeyko
74c838dc0c Link favicon from base.html 2018-05-05 22:25:07 +03:00
Bruno Alla
01e598df79 Link to unminified CSS if using django-compressor 2018-02-24 10:14:41 +00:00
Bruno Alla
19547ac937 Bootstrap4 workarounds cleanup (#1470)
* Cleanup workaround CSS for Bootstrap 4 + DDT fix

* Cleanup custom Bootstrap 4 + crispy forms workaround
2018-02-05 07:10:49 -08:00
Bruno Alla
af12f39996 Improve custom_bootstrap_compilation option (#1429)
* Add Bootstrap to package.json in case of custom_bootstrap_compilation

* Update JS task runners and base HTML to handle custom scss compilation

* Generate a vendors.js with custom bootstrap compilation + Gulp

* Update documentation accordingly

* Add missing if/endif in gulpfile

* Update to Bootstrap v4 final
2018-01-20 17:05:12 -08:00