camper/web/templates/admin
jordi fita mas 50bcbf012f Allow updating images in CKEditor-“powered” textarea
Had to create a custom build of CKEditor with the following plugins
added-in:

  * Autoformat
  * Block quote
  * Bold
  * General HTML Support
  * Heading
  * Image
  * Image caption
  * Image resize
  * Image style
  * Image toolbar
  * Image upload
  * Indent
  * Italic
  * Link
  * Link image
  * List
  * Media embed
  * Simple upload adapter
  * Source editing
  * Table
  * Table toolbar
  * Text transformation

The important bit is the “Simple uploader adapter”, that i modified to
upload the file as `media` instead of the default `upload` (i.e.,
modified ckeditor.js to replace "upload" with "media").

I also had to add the CSRF header somewhere in the HTML document for
JavaScript to be able to retrieve it and pass it to the uploader
adapter, or i would have to disable CSRF validation in that form, which
i did not like at all.
2024-01-16 01:26:35 +01:00
..
campsite Add additional information field to campsite types 2024-01-15 00:28:34 +01:00
carousel Add golang template to initialize x-data for translation in admin 2024-01-12 19:51:12 +01:00
home Use I18nInput instead of L10nInput to translate carousels 2024-01-12 19:33:44 +01:00
legal Add golang template to initialize x-data for translation in admin 2024-01-12 19:51:12 +01:00
media Move admin-only links inside the user’s menu 2023-09-25 13:13:19 +02:00
season Replace L10nInput with I18nInput in season 2024-01-12 20:26:45 +01:00
services Add position to services to be able to manually sort by admins 2024-01-13 01:15:24 +01:00
dashboard.gohtml Split templates and handlers into admin and public 2023-08-05 03:42:37 +02:00
form.gohtml Add golang template to initialize x-data for translation in admin 2024-01-12 19:51:12 +01:00
htmx.gohtml Move admin-only links inside the user’s menu 2023-09-25 13:13:19 +02:00
layout.gohtml Allow updating images in CKEditor-“powered” textarea 2024-01-16 01:26:35 +01:00
location.gohtml Add golang template to initialize x-data for translation in admin 2024-01-12 19:51:12 +01:00
login.gohtml Add the minimal CSS for the admin section from Numerus 2023-09-28 02:23:25 +02:00
payment.gohtml Add the payment form to admin 2023-10-27 16:08:13 +02:00
profile.gohtml Split templates and handlers into admin and public 2023-08-05 03:42:37 +02:00
taxDetails.gohtml Add tourist tax to company 2024-01-14 02:09:17 +01:00