aboutsummaryrefslogtreecommitdiffstats
path: root/pyblackbird_cc (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-08-08The Cancel button is now managed by crispy forms.Matthew Lemon3-7/+12
2024-08-05wip: adding delete and replace buttons for PDFsMatthew Lemon3-85/+94
2024-08-03Add feature to add PDFs to resourcesMatthew Lemon6-6/+120
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-03Add return type hint to upload_snapshotted_pages_to_s3Matthew Lemon1-1/+1
This change explicitly specifies that the function upload_snapshotted_pages_to_s3 returns a boolean. Adding type hints helps improve code readability and maintainability by providing clear expectations on the function's return value.
2024-08-03Add admin models for PDFResource and PDFPageSnapshotMatthew Lemon2-1/+15
Expand the admin interface to include PDFResource and PDFPageSnapshot models. The new admin classes define `list_display` attributes to manage displayed columns in the admin list views.
2024-08-03Removes blackism....Matthew Lemon1-3/+1
2024-08-03Remove Client created log line that is unnecessary.Matthew Lemon1-1/+0
2024-08-03Add S3 utility module and refactor S3 functions into itMatthew Lemon4-113/+116
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-03Updated help text in form field.Matthew Lemon1-1/+1
2024-08-03Adds ability to update the thumbnail/feature imagesMatthew Lemon5-10/+82
2024-08-03wip: adding the update thumbnails formMatthew Lemon5-5/+47
2024-08-02Refactored list template into includes to fix div hell.Matthew Lemon3-143/+104
2024-08-02wip: trying to fix fucked divs on index pageMatthew Lemon1-139/+140
More to come - going to have to redo all the HTML on this page.
2024-08-01Fix: div problems in index page.Matthew Lemon1-140/+139
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-01Responsive feature cards on index pageMatthew Lemon1-75/+82
- Width is responsive - Breakpoints allow for stacking at smaller ones
2024-08-01Renamed additional_resource_categories to subcategories in ResourceInfo object.Matthew Lemon1-2/+2
2024-08-01Ordering the subcategories dropdown list on the update form.Matthew Lemon1-0/+1
2024-08-01Ordering the subcategories on the admin page.Matthew Lemon1-1/+3
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 Lemon5-12/+56
2024-08-01Fix error with validation on additional_resource_categoryMatthew Lemon1-1/+0
2024-07-29wip: Adds a new model for additional categoriesMatthew Lemon7-9/+119
- 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-29Formatting changes onlyMatthew Lemon1-25/+24
2024-07-29wip: creating a multiple choice field for additional categoriesMatthew Lemon2-4/+12
2024-07-29Tidy up the HTML onlyMatthew Lemon1-3/+8
2024-07-29Now handles EFL badges for non-featured cardsMatthew Lemon1-2/+7
2024-07-29Handle the long EFL badge nameMatthew Lemon1-2/+7
The full title of "English as a Foreign Language (EFL)" did not fit inside a badge, so we have had to add a conditional in the template to guard against it.
2024-07-29Card border changesMatthew Lemon1-2/+2
2024-07-28UI changes on index (see eblow)Matthew Lemon1-44/+49
- removed Detail button - put Edit button in a card footer - Formatting the html
2024-07-28Tweak to the width of the non-featured resource cardMatthew Lemon1-1/+2
2024-07-28Added border and badge colour based on categoryMatthew Lemon4-4/+26
- You have to define them on the ResourceCategory model in the database
2024-07-11Very simple border round feature block for EY LiteracyMatthew Lemon3-4/+17
2024-07-11Adds ability to add colour class to main categoryMatthew Lemon6-2/+33
- Creates a new line in the database - Uses this in the template instead of the default bootstrap class
2024-07-11Curriculum is optional and age ranges are fixedMatthew Lemon4-6/+46
2024-07-07Better display of number of files in PDFMatthew Lemon1-4/+6
- The header bar now contains a Number of files: X dependent on the number of files in the resource - The File Preview header now includes a counter number if this is a multi-page PDF - The title of PDF file is put alongside the File Preview text in the h4
2024-07-07Better implementation of carouselMatthew Lemon3-2/+20
- Removed the primary coloured background - Changed the colour of the next and previous icons - Reduced the width of the actual image
2024-07-04Basic implementation of a carouselMatthew Lemon1-9/+28
Needs lots of work and tidying up mind...
2024-06-29Adds htmx.js local fileMatthew Lemon1-0/+1
2024-06-23Removed pypdfium2 which doesn't build on FreeBSDMatthew Lemon1-17/+19
Libraries used: - PdPDF2 (to get basic PDF length) - https://pypi.org/project/PyPDF2/ - pdf2image (to extract images from each page) - https://github.com/Belval/pdf2image Reduction of quality of screenshotted image is in place. Reduced pdf screenshot quality considerably
2024-06-22Fix erroneous return statementMatthew Lemon1-3/+1
2024-06-22Removes unnecessary commentMatthew Lemon1-28/+0
2024-06-22Better use of pytest-django markMatthew Lemon1-3/+2
2024-06-22Fixes bug where multiple PDFs not snappshottedMatthew Lemon2-7/+38
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-26Tweaking bordersMatthew Lemon1-1/+1
2024-05-26Changes the flex alignment to start for non-featured resourcesMatthew Lemon1-1/+1
2024-05-26Tweaking the layout of the list pageMatthew Lemon2-5/+9
2024-05-26Correctly handles the unique constraint on feature_slotMatthew Lemon5-69/+88