aboutsummaryrefslogtreecommitdiffstats
path: root/pyblackbird_cc/resources/views.py (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-09-08wip: implementing checkoutMatthew Lemon1-20/+26
- also some formatting changes
2024-09-03Fix for tabbed filter in resource list pageMatthew Lemon1-6/+7
Previously the link selected on the tabbed filter navbar in resources list would filter the featured resources too. This fixes that.
2024-09-03Another docstring onlyMatthew Lemon1-0/+14
2024-09-03Adds a docstring to a view functionMatthew Lemon1-0/+14
2024-09-01wip: implementing the tabbed filter for standard resourcesMatthew Lemon1-2/+16
- it is filtering Featured resources too and it shouldn't. Fix.
2024-09-01Added pagination to the resource list pageMatthew Lemon1-1/+5
2024-08-08The Cancel button is now managed by crispy forms.Matthew Lemon1-2/+2
2024-08-05wip: adding delete and replace buttons for PDFsMatthew Lemon1-1/+1
2024-08-03Add feature to add PDFs to resourcesMatthew Lemon1-2/+48
Implemented the ability to upload and manage PDFs for resources. Added the necessary form, view, and templates to support this functionality. Updated routes and UI elements to integrate the new feature seamlessly.
2024-08-03Removes blackism....Matthew Lemon1-3/+1
2024-08-03Add S3 utility module and refactor S3 functions into itMatthew Lemon1-112/+2
Created a new `s3.py` utility module for handling S3 interactions including file uploads and generating presigned URLs. Refactored views to utilize these new utility functions and moved the PDF collection type function to a new `utils.py` module to improve code organization and readability.
2024-08-03Adds ability to update the thumbnail/feature imagesMatthew Lemon1-0/+30
2024-08-03wip: adding the update thumbnails formMatthew Lemon1-4/+15
2024-08-01Refactor PDF collection type conditions for readability.Matthew Lemon1-5/+5
Simplify conditional checks for PDF collection types by removing unnecessary line continuations. Also, fix param format in hx_download_button docstring and adjust string formatting for error messages.
2024-08-01Fix: bug where thumbnail image filenames were not being saved on the ↵Matthew Lemon1-0/+1
resource object.
2024-08-01Renamed additional_resource_categories to subcategories in ResourceInfo object.Matthew Lemon1-2/+2
2024-08-01Releasing the exception working to the error message.Matthew Lemon1-2/+2
2024-08-01Fix bug where new subcategories were being created on selectionMatthew Lemon1-7/+8
2024-07-29wip: Adds a new model for additional categoriesMatthew Lemon1-4/+6
- Adds new ResourceSubcategory - Uses this for choices= in the Resource form (create) - Adds this new model to the admin Doesn't validate in the edit form yet,
2024-07-28Added border and badge colour based on categoryMatthew Lemon1-0/+2
- You have to define them on the ResourceCategory model in the database
2024-07-11Adds ability to add colour class to main categoryMatthew Lemon1-0/+2
- Creates a new line in the database - Uses this in the template instead of the default bootstrap class
2024-06-22Fix erroneous return statementMatthew Lemon1-3/+1
2024-06-22Fixes bug where multiple PDFs not snappshottedMatthew Lemon1-7/+24
Includes test of new function which determines the length and composition of the snappshotted pages.
2024-05-26Removes extraneous code create_resource_objectsMatthew Lemon1-20/+0
2024-05-26Correctly handles the unique constraint on feature_slotMatthew Lemon1-34/+42
2024-05-26Better presentation of the feature resourcesMatthew Lemon1-1/+4
2024-05-26Removes breakpointMatthew Lemon1-1/+0
2024-05-26Basic feature slot presentation in index pageMatthew Lemon1-1/+9
2024-05-22wip: starting to test the featured resource viewMatthew Lemon1-0/+5
2024-05-16wip: replacing os.path.basename with PathMatthew Lemon1-3/+5
2024-05-16Cleans up a few LSP errorsMatthew Lemon1-11/+11
2024-05-15Basic form to update Resource metadataMatthew Lemon1-0/+23
2024-05-14Added cards to resource list pageMatthew Lemon1-0/+4
2024-05-14Further tidyingMatthew Lemon1-5/+3
2024-05-14Can now upload to SpacesMatthew Lemon1-1/+357