Commit Graph

1567 Commits

Author SHA1 Message Date
Cayo Puigdefabregas 86f3c3f483 fix validate trade form 2022-02-10 13:53:52 +01:00
Cayo Puigdefabregas adad689acd type to message from form.type.data instead of instance 2022-02-10 13:31:49 +01:00
Cayo Puigdefabregas f3ffcd89ca fixing js form for trade 2022-02-10 13:22:47 +01:00
Santiago L 9cfcbd1c22 flake8: exclude legacy code 2022-02-10 11:37:45 +01:00
Santiago L ea26dc2e2f
Merge pull request #201 from eReuse/feature/server-side-render-actions-documents
Server side render Data Wipe Action
2022-02-10 11:30:16 +01:00
Santiago L df4c6f7407 flake8: remove unused imports & sort them 2022-02-10 11:29:47 +01:00
Santiago L d66e2b77fd Run flake8 linter on github workflow 2022-02-10 11:16:57 +01:00
Cayo Puigdefabregas cd16baaadb skeleton for trade action 2022-02-09 14:06:28 +01:00
Cayo Puigdefabregas f2d6c198cc fix css for form documents into data_wipe html 2022-02-09 11:28:57 +01:00
Cayo Puigdefabregas 1ed5d394c5 fix the new version of dispatch for NewDataWipeView 2022-02-09 11:27:08 +01:00
Cayo Puigdefabregas d102eaed9c resolve conflict 2022-02-09 10:18:56 +01:00
Cayo Puigdefabregas 764d749db0 datawipe form example as 2 forms in one 2022-02-08 13:59:50 +01:00
Santiago L 0af1de4a1b
Merge pull request #133 from eReuse/dependabot/pip/pyyaml-5.4
Bump pyyaml from 3.13 to 5.4
2022-02-08 13:24:37 +01:00
Santiago L 9013e7a7e1 Merge branch 'testing' into feature/server-side-render 2022-02-08 11:58:48 +01:00
Santiago L 0eec5b549f
Merge pull request #196 from eReuse/feature/server-side-render-actions
Feature: server side render actions
2022-02-08 11:54:05 +01:00
Santiago L b103a1a51d Rename attribute `_form` --> `form_class` 2022-02-08 11:52:30 +01:00
Santiago L e15e457481 Refactor: create method `get_next_url()` 2022-02-08 11:49:13 +01:00
Santiago L f1a78e23f6 Include action type on message 2022-02-08 11:39:27 +01:00
Santiago L aeb765dcd7 Use built-in flask.flash to implement messages 2022-02-08 11:39:08 +01:00
dependabot[bot] b9c5ae0822
Bump webargs from 4.0.0 to 5.5.3 (#198)
Bumps [webargs](https://github.com/marshmallow-code/webargs) from 4.0.0 to 5.5.3.
- [Release notes](https://github.com/marshmallow-code/webargs/releases)
- [Changelog](https://github.com/marshmallow-code/webargs/blob/dev/CHANGELOG.rst)
- [Commits](https://github.com/marshmallow-code/webargs/compare/4.0.0...5.5.3)

---
updated-dependencies:
- dependency-name: webargs
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-07 18:34:14 +01:00
dependabot[bot] dd15860b6e
Bump pyyaml from 3.13 to 5.4
Bumps [pyyaml](https://github.com/yaml/pyyaml) from 3.13 to 5.4.
- [Release notes](https://github.com/yaml/pyyaml/releases)
- [Changelog](https://github.com/yaml/pyyaml/blob/master/CHANGES)
- [Commits](https://github.com/yaml/pyyaml/compare/3.13...5.4)

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-07 17:31:08 +00:00
dependabot[bot] d95e6a5f29
Bump requests from 2.19.1 to 2.27.1 (#5)
* Bump requests from 2.19.1 to 2.20.0

Bumps [requests](https://github.com/requests/requests) from 2.19.1 to 2.20.0.
- [Release notes](https://github.com/requests/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/master/HISTORY.md)
- [Commits](https://github.com/requests/requests/compare/v2.19.1...v2.20.0)

Signed-off-by: dependabot[bot] <support@github.com>

* Bump requests from 2.20.0 to 2.27.1

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Santiago Lamora <santiago@ribaguifi.com>
2022-02-07 18:30:16 +01:00
dependabot[bot] c965ead7ed
Bump werkzeug from 0.14.1 to 0.15.3 (#2)
Bumps [werkzeug](https://github.com/pallets/werkzeug) from 0.14.1 to 0.15.3.
- [Release notes](https://github.com/pallets/werkzeug/releases)
- [Changelog](https://github.com/pallets/werkzeug/blob/master/CHANGES.rst)
- [Commits](https://github.com/pallets/werkzeug/compare/0.14.1...0.15.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Santiago Lamora <santiago@ribaguifi.com>
2022-02-07 18:20:01 +01:00
dependabot[bot] a864bfc78d
Bump flask-cors from 3.0.6 to 3.0.9 (#142)
* Bump flask-cors from 3.0.6 to 3.0.9

Bumps [flask-cors](https://github.com/corydolphin/flask-cors) from 3.0.6 to 3.0.9.
- [Release notes](https://github.com/corydolphin/flask-cors/releases)
- [Changelog](https://github.com/corydolphin/flask-cors/blob/master/CHANGELOG.md)
- [Commits](https://github.com/corydolphin/flask-cors/compare/3.0.6...3.0.9)

Signed-off-by: dependabot[bot] <support@github.com>

* Bump flask-cors from 3.0.9 to 3.0.10

Bumps [flask-cors](https://github.com/corydolphin/flask-cors) from 3.0.9 to 3.0.10
- [Release notes](https://github.com/corydolphin/flask-cors/releases)
- [Changelog](https://github.com/corydolphin/flask-cors/blob/master/CHANGELOG.md)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Santiago Lamora <santiago@ribaguifi.com>
2022-02-07 18:07:53 +01:00
Santiago L 31728613a7
Merge pull request #197 from eReuse/ci-enable-pip-cache
Enable pip cache on GitHub Actions
2022-02-07 14:54:10 +01:00
Santiago L 574ac41239 Render messages on base_site.html & add new action message 2022-02-07 14:52:17 +01:00
Santiago L 0d27800948 Create module to store user messages using sessions
Module ereuse_devicehub.messages inspired by django.contrib.messages
2022-02-07 14:50:19 +01:00
Cayo Puigdefabregas 2542719378 fix insert hash for force not to do a commit 2022-02-07 14:03:01 +01:00
Cayo Puigdefabregas 2a92b1f747 add form for data wipe 2022-02-07 14:02:28 +01:00
Cayo Puigdefabregas 94604dd029 view for data wipe 2022-02-07 14:01:56 +01:00
Cayo Puigdefabregas 8b467b95c3 template for data wipe 2022-02-07 14:01:38 +01:00
Santiago L 0b075d1277 Enable pip cache on GitHub Actions 2022-02-07 13:08:21 +01:00
Cayo Puigdefabregas 579e0e35f0 Merge branch 'feature/server-side-render-actions' into feature/server-side-render-actions-documents 2022-02-04 13:23:33 +01:00
Cayo Puigdefabregas c340122d87 check the checkbox in a devices list when one form is invalid 2 2022-02-04 13:22:47 +01:00
Cayo Puigdefabregas a55944e379 check the checkbox in a devices list when one form is invalid 2022-02-04 13:16:27 +01:00
Cayo Puigdefabregas 662f75bb7b refactoring and put again the lot in form of actions 2022-02-04 12:10:27 +01:00
Cayo Puigdefabregas f011e29ce9 add description of device in actions 2022-02-04 11:30:29 +01:00
Cayo Puigdefabregas c10a5f24b4 add count to allocate action 2022-02-03 14:05:15 +01:00
Cayo Puigdefabregas 7f9a6784e9 add count of devices in action form 2022-02-03 13:58:54 +01:00
Cayo Puigdefabregas aeef04b92c change modal-fullscreen by modal-lg 2022-02-03 11:53:18 +01:00
Cayo Puigdefabregas 820078dd3f UX: inform user about the type action thas is going to be created --> show type of action 2022-02-03 11:44:51 +01:00
Cayo Puigdefabregas 4ebb312e59 first step for datawipe form 2022-02-03 11:27:16 +01:00
Cayo Puigdefabregas e8b5c1e310 deactive dataWipe action 2022-02-03 10:51:48 +01:00
Cayo Puigdefabregas f79abb05cd isort 2022-02-03 10:50:36 +01:00
Cayo Puigdefabregas 4107d67832 fix css bug for dropdown menu action 2022-02-03 10:28:15 +01:00
Cayo Puigdefabregas 87faee3444 fix the return correct page when the submit is false 2022-02-03 10:14:10 +01:00
Cayo Puigdefabregas c0918e7b57 fix error message in form 2022-02-02 14:17:42 +01:00
Cayo Puigdefabregas 71f5a8a98b fix doble query 2022-02-02 13:51:54 +01:00
Cayo Puigdefabregas 8149d0ed7c reversed actions for see the better the traceability log 2022-02-02 13:27:53 +01:00
Cayo Puigdefabregas 9a68ad7ab8 fix dictionary style 2022-02-02 13:09:11 +01:00