summaryrefslogtreecommitdiff
path: root/elm/StaffEdit
AgeCommit message (Collapse)AuthorFilesLines
2019-12-10Elm: Add Redirect response + fix redirect to last post on replyYorhel1-1/+1
Fixes https://vndb.org/t2520/14#334 - I originally had some trouble to do this because `load` doesn't actually reload the page if you're just changing the hash. The `reload` following it handles that now. The Redirect response is just cleanup, there's several places that could benefit form it.
2019-12-08Fix json_api() URL matching + move URL parameters to POST bodyYorhel1-9/+5
For more consistency. Only exception right now is the password reset form, which still has parameters in the URL. Didn't convert it as that code doesn't use the elm_form() framework at the moment.
2019-12-06Add link to d9#3 to quick reply box + allow customizing TextPreview headerYorhel1-1/+1
2019-12-01v2rw: Convert thread display + poll votingYorhel1-1/+1
I did not reimplement the 'poll_recast' and 'poll_preview' settings, these actions are now always permitted. Updated CSS a little bit to highlight the linked post and fix the double border at the bottom. The nice thing about the sql_visible_threads() function I wrote earlier is that is can also be used for access control on a single thread. More code re-use. \o/
2019-11-27Elm: Use fieldset to disable the form while loadingYorhel1-1/+1
I wasn't able to do this while the .maintabs used floats.
2019-10-21Elm: Add text preview framework + BBCode preview in formsYorhel1-10/+11
2019-10-16Fix editing of staff entries without WikidataYorhel1-3/+3
And I can't say the wikidata field is all that intuitive to edit. Need to look at it later...
2019-10-16v2rw: Convert staff adding/editing formYorhel2-0/+239
This is the first major editing form to be converted, so I'm expecting a little breakage. A good chunk of this code has been copied from v3. In terms of the UI there has been a small change: aliases that are still referenced do not have the 'remove' link and instead have a flag that shows that they are still referenced. This ought to be a bit friendlier than throwing an error message after the user has submitted the form. Some other things I'd like to improve in this form: - BBCode preview - Pasting in external links and letting the form figure out the Pixiv ID, etc. - Or perhaps even: Integrate AniDB/Wikidata search/autocompletion.