Commit Graph

747 Commits

Author SHA1 Message Date
Antoine Bartuccio 6d0eba6bcf Merge branch 'rework-front' into 'master'
Markdown widget follows the required attribute

See merge request ae/Sith!249
2019-10-17 14:47:56 +02:00
Antoine Bartuccio 4d04b21f04 Merge branch 'cleanup-forms' into 'master'
Remove unused multiple-select library

See merge request ae/Sith!250
2019-10-17 14:46:02 +02:00
Antoine Bartuccio 9278419345
core: rename GenericContentPermission into GenericContentPermissionMixinBuilder 2019-10-17 11:56:02 +02:00
Antoine Bartuccio a6088c0e4a
core: refactor permissions mixins 2019-10-17 11:24:51 +02:00
Antoine Bartuccio fe9164bfef
core: don't use try/except to catch type of view in permissions mixins 2019-10-16 19:28:32 +02:00
tleb ad3f003fbb Remove unused multiple-select library 2019-10-16 14:28:53 +02:00
tleb 7ecb057b68 Isolate easymde instances so that they can be referenced 2019-10-16 12:18:23 +02:00
tleb e932abfa74 Prevent pressing submit if the Markdown widget is empty 2019-10-15 10:41:10 +02:00
tleb 0011f4c7b0 Only register onchange once the submit button has been pressed 2019-10-15 10:23:15 +02:00
tleb 13312e9879 Highlight a markdown input in red if required and submit is pressed
Kind of copy the behaviour of a Firefox input
Once the submit button has been pressed, highlight in red the text
input if it's required but empty
2019-10-15 09:54:10 +02:00
tleb ced90c23db More JS-like, callback as last argument 2019-10-15 09:53:44 +02:00
Antoine Bartuccio 42f5773f51 Merge branch 'fix-guy-feature' into 'master'
Fix the guyguy "feature" on the profile page

See merge request ae/Sith!248
2019-10-15 00:26:04 +02:00
tleb 34df825718 Fix the guyguy "feature" on the profile page 2019-10-14 23:49:32 +03:00
Robin Trioux 65c3483c1f core:login allow the user to create an account when not logged 2019-10-13 18:43:30 +02:00
Antoine Bartuccio d7075eb762
django2.2: fix breaking change for getting uploaded files size 2019-10-08 22:46:38 +02:00
Antoine Bartuccio cf3f5ea60c
django2.2: fix django server crash because of breaking change in widget rendering method 2019-10-08 22:46:37 +02:00
Antoine Bartuccio 59185ab2a8
django2.2: rewrite login and password stack because of removed API 2019-10-08 22:46:37 +02:00
Antoine Bartuccio 308cf30a5a
django2.2: replace deprecated login view 2019-10-08 22:46:37 +02:00
Antoine Bartuccio 99c8d95443
django2.2: remove direct assignments to many-to-many fields 2019-10-08 22:46:37 +02:00
Antoine Bartuccio 97c316b62e
django2.2: replace removed is_anonymous() and is_authenticated to their now used counterparts 2019-10-08 22:46:03 +02:00
Antoine Bartuccio 90921fd4cd
django2.2: some migrations to make django happy 2019-10-08 22:46:03 +02:00
Antoine Bartuccio f7548ab8d1
django2.2: add on_delete on migrations for OneToOneField 2019-10-08 22:46:03 +02:00
Antoine Bartuccio 3cb306bc91
django2.2: add on_delete on migrations for ForeignKey 2019-10-08 22:46:03 +02:00
Antoine Bartuccio c20d5855e4
django2.2: remove view_page permission as it clash with built-in permission
Need a bit of discussion as I'm not an expert in django built-in permissions
An issue on github says it's related to https://docs.djangoproject.com/en/2.1/releases/2.1/#considerations-for-the-new-model-view-permission
2019-10-08 22:46:02 +02:00
Antoine Bartuccio 00bd60ef4f
django2.2: add exception parameter in forbidden and not_found views 2019-10-08 22:46:02 +02:00
Antoine Bartuccio 4dadb1dbc0
django2.2: add default mandatory on_delete on all ForeignKey 2019-10-08 22:46:01 +02:00
Antoine Bartuccio 2616e8b24c
django2.2: relpace django.core.urlresolvers by django.urls 2019-10-08 22:46:01 +02:00
Antoine Bartuccio be855c6c90
django2.2: migrate url to re_path 2019-10-08 22:46:01 +02:00
Antoine Bartuccio 2a9b89fd2a
core: remove README wiki page that wasn't helpful and anyway broken with rst files 2019-10-08 11:12:22 +02:00
Antoine Bartuccio 5c3c14ab37
core: wrap compilemessages to avoid compiling whole env and avoid crash at sphinx messages compilation 2019-10-08 00:59:00 +02:00
Antoine Bartuccio db10f7b963
documentation: tutorial about rights management 2019-10-07 23:51:37 +02:00
Antoine Bartuccio 8809753108
documentation fix tests because of missing README.md 2019-10-07 23:51:37 +02:00
Antoine Bartuccio 05e5008305
documentation: base structure for new documentation 2019-10-07 23:51:35 +02:00
Antoine Bartuccio 411c117f0f Merge branch 'performances' into 'master'
Improve performances on forum and SAS

See merge request ae/Sith!235
2019-09-16 14:23:52 +02:00
Antoine Bartuccio b8ad2d4835
sas: add pagination on AlbumView 2019-09-16 01:26:20 +02:00
Antoine Bartuccio 63ec5d68f4
core: fix error 500 when editing properties of user without linked customer 2019-09-15 17:05:07 +02:00
Antoine Bartuccio 1f86827e46
core: improve performances on not found images 2019-09-15 16:22:13 +02:00
Antoine Bartuccio 5a3f90fd28
core: fix error 500 with expired reset password links 2019-09-10 16:56:58 +02:00
Antoine Bartuccio 9181e77d55
core: add some cache on birthdays and counters_activity 2019-09-09 01:20:15 +02:00
Antoine Bartuccio f1b3a174b6
core: improve performances on notification reads and display 2019-09-09 00:45:08 +02:00
Antoine Bartuccio eb9821ed36 Merge branch 'sas' into 'master'
core: add index on folder and sas properties of SithFile to speed up SAS

See merge request ae/Sith!231
2019-09-06 16:47:18 +02:00
Antoine Bartuccio 83e225a744
core: add index on folder and sas properties of SithFile to speed up SAS 2019-09-06 16:16:03 +02:00
Antoine Bartuccio a69f7b12b1
pedagogy: add script to remove all previous doubled comments 2019-09-04 20:49:17 +02:00
Antoine Bartuccio 3fc8688941
com/core: remove links to index edition that caused error 500 2019-08-29 17:23:27 +02:00
Antoine Bartuccio d7b351a1aa Merge branch 'cyl' into 'master'
[COM] Make the news visible for non-authenticated user and birthday visible for subriber only

See merge request ae/Sith!225
2019-08-29 15:07:08 +02:00
Cyl 9e0c4e70d4 [COM] Make the news visible for non-authenticated user and birthday visible for subriber only 2019-08-28 20:40:31 +02:00
Antoine Bartuccio 66d5c71a92
com: add weekmail banner and footer for A19 2019-08-27 18:56:43 +02:00
Antoine Bartuccio 824ea37f44 Merge branch 'pedagogy_v2' into 'master'
Better display on mobile for guide page

See merge request ae/Sith!221
2019-08-26 12:11:26 +02:00
Antoine Bartuccio f09de0ab7d
pedagogy: remove stars on small devices for grade 2019-08-08 12:46:51 +02:00
Antoine Bartuccio d29603c584
pedagogy: fix display of guide on smaller devices 2019-08-07 20:03:21 +02:00