- Issue created by @maxwellkeeble
- 🇳🇱Netherlands johnv
Adding tags, to attract volunteers.
Options:
- add a JS link to clear the data
- add a checkbox. if set, the season is deleted upon saving
- add a text, with instructions how to delete (e.g., 'just remove all timeslots', or 'set season name to XYZ'). Perhaps with some additional php coding. - Status changed to Needs review
about 1 year ago 4:00pm 9 November 2023 - last update
about 1 year ago Patch Failed to Apply - 🇳🇱Netherlands johnv
Please try this.
A JS link would be nicer perhaps, but I am not a hero in that.
This should do the trick. - 🇩🇪Germany blecheimer
for me it worked (I applied it manually). I would remove the ":" after the line: "Remove upon save:"
- last update
about 1 year ago Patch Failed to Apply - 🇳🇱Netherlands johnv
The trailing colon was added by the theme.
Not sure how to remove that. It must be done in twig, or css.I tried a '#pre_render' and '#post_render' in php, but that is too early.
$operations['delete'] = [ '#type' => 'checkbox', '#title' => t('Remove upon save'), '#post_render' => [ [static::class, 'postRenderCheckboxTitle'], ], '#title_display' => 'after', // {'before', 'after', ' invisible' } '#attributes' => [ 'class' => ['office-hours-season-delete-link', 'office-hours-link'], ], ];
The post_render array gives:
<label for="edit-field-officehours2-office-hours-season-200-season-header-operations-data-delete" class="form-item__label option">Remove upon save</label>
I will leave that for someone else, leaving this ticket open on 'needs work'.
- Status changed to Needs work
about 1 year ago 10:22am 10 November 2023