summaryrefslogtreecommitdiffstats
path: root/includes/admin/views/_concerts_table.php
Commit message (Collapse)AuthorAgeFilesLines
* Rename and reorganize more source files.Harald Eilertsen2023-01-201-448/+0
|
* Fix ConcertTable tests and markup.Harald Eilertsen2022-06-181-5/+3
|
* Add phpcs config and do automatic fixups.Harald Eilertsen2022-06-181-158/+137
|
* Filtered out concerts older than todayAndreaChirulescu2022-03-271-1/+1
| | | | Concerts should show with upper case
* Security: Escape event and link urls before using.Harald Eilertsen2022-03-121-2/+2
|
* ConcertsTable: Initialize more properties in constructor.Harald Eilertsen2022-03-121-0/+5
|
* Security: Escape band and venue name in concerts table.Harald Eilertsen2022-03-121-2/+2
|
* ConcertsTable: Initialize page_no on construct.Harald Eilertsen2022-03-121-1/+1
| | | | | Just to make sure it has a default value and is guaranteed initialized befor it is being used.
* Security: Add CSRF checks when updating concerts table.Harald Eilertsen2022-03-121-1/+17
|
* Move code to update concert table to concert table class.Harald Eilertsen2022-03-101-2/+102
| | | | | | Puts everything that belongs together into the same place. This means the concerts table is getting a tad large, but let's refactor that later.
* Fix more psalm issuesHarald Eilertsen2022-03-091-0/+2
|
* Merge remote-tracking branch 'andrea/andreaschanges' into devHarald Eilertsen2022-03-091-11/+17
|\ | | | | | | And fixup most whitespace issues while at it.
| * iCal file download fixes to generate one file per concertAndreaChirulescu2022-02-271-132/+136
| | | | | | | | giglog import fixes to catch errors and ignore old concerts
| * Pagination fix to resest page if out of rangeAndreaChirulescu2022-02-131-1/+6
| |
* | Fix various psalm errors.Harald Eilertsen2022-03-091-0/+2
| |
* | Some cleanup in render_concerts_tableHarald Eilertsen2022-02-221-33/+23
|/
* Fix so pagination remembers filters in shortcode too.Harald Eilertsen2022-02-131-4/+4
|
* Remember filter settings when paginating.Harald Eilertsen2022-02-131-33/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch does changes quite a bit of how things work under the hood. It changes the filter settings from using POST to using query args in a GET request instead. This has some challenges: 1. The query args from the form will overwrite any query args in the original URL, so we have to keep the query args that was passed in as hidden fields in the form. 2. Since we try to keep the passed in query args, we need to filter out the query args that we expect to set in the form, otherwise query args that are dropped by the form will still be present as hidden args. Not too happy about how this works tbh, but at least it seems to work reasonably well for now. I've also renamed the args set by the form to make the URL a bit nicer, i.e "city" instead of "selectcity" etc for the query arg keys. I've also refactored quite a bit to make the code more manageable. Like using the view helper to create the month selector, so it's consistent with the others, and remembers it's selection. (I also simplified it to simply list the months from jan to dec, instead of starting at the current month. If it's important to keep the old behaviour I'll change it back.) There's a few problems still with this implementation. 1. It only works in the admin-section for now. Not sure why. Probably because shortcodes... 2. In the admin section it gains the `cid` and `pid` query args that should not be there. Not sure why. 3. If we change the filters while being on a page larger than the total number of pages after the filter change, we stay on the page even if it's not a valid page after the filter change. This should be trivial to fix.
* Refactor rendering of the concerts table.Harald Eilertsen2022-02-121-58/+79
| | | | | | | | The main render function was getting too large and difficult to work with. Splitting it up a little to make it more manageable. Also fix styling to make the pagination links fall on one line a bit nicer.
* Fix pagination of concert table.Harald Eilertsen2022-02-121-6/+7
| | | | | | | There's potential vulnerabilities here still, and I'm unsure if get_permalink() is entirely safe to use in this context. Seems to do the right thing, but the docs for the function indicates it has some edge cases.
* More indentation and format if statements.Harald Eilertsen2022-02-121-124/+134
|
* more pagination details fixesAndreaChirulescu2022-02-111-26/+57
|
* css small fixed for table displayAndreaChirulescu2022-02-091-74/+114
| | | | added pagination to concert list
* Added a div to make table scrollable on mobilesAndreaChirulescu2021-09-241-2/+2
|
* Changed order of date column in concerts tableAndreaChirulescu2021-09-191-4/+3
|
* Padding in table so text doesn't connect between cellsAndreaChirulescu2021-09-191-2/+2
| | | | Added a paragraph to have a bit of space under filters
* tests: Make an actual test for ConcertsTableHarald Eilertsen2021-09-111-3/+3
| | | | | | | | | | | There's a bit of setup to make this work as it should, we need to ensure that the current user and current screen is set to proper values so that the WordPress api's `is_admin()` and `current_user_can()` work as they should. This first test just tests that all the expected forms are being rendered for the admin user accessing the table through the site admin interface.
* fixed proper class naming for Apply buttonAndreaChirulescu2021-09-061-1/+1
|
* removed some extra characters that got lost in table HTMLAndreaChirulescu2021-09-061-1/+1
|
* Fix indentation and whitespace, add braces where missing.Harald Eilertsen2021-09-061-41/+46
|
* added images for checkbox and rediconAndreaChirulescu2021-09-051-4/+5
| | | | added class for City dropdown form
* used auto ident this timeAndreaChirulescu2021-09-051-165/+165
|
* used is_admin() to check if user shoudl see xtra columnsAndreaChirulescu2021-09-051-184/+184
| | | | Re-idented the file
* Extra changes to hide admincolumns on giglog page If logged in but not using ↵AndreaChirulescu2021-09-051-6/+8
| | | | plugin
* CHanges in the concerts table for logged/non logged user. Fixed row header ↵AndreaChirulescu2021-09-051-19/+30
| | | | with city
* Fix some bugs in generated HTML for ConcertsTable.Harald Eilertsen2021-09-051-5/+5
|
* Merge remote-tracking branch 'andrea/andreaschanges' into devHarald Eilertsen2021-09-051-11/+14
|\
| * Re-added the changes for looks, and city/venue selectorAndreaChirulescu2021-09-051-11/+14
| |
* | ConcertsTable: fix getting city row when changing cities.Harald Eilertsen2021-09-051-1/+1
|/
* Move the concerts table and edit form out of AdminPage.Harald Eilertsen2021-09-041-0/+199
Currently the AdminPage is still responsible for updating changes to any of the concerts, but I'd like to get that into their respective classes too. That way the AdminPage will just be a simple class to handle the layout of the page, while all the specific functionality is in their own classes. This is also the first step to be able to reuse the concerts table on the public end of the site.