mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-30 01:39:04 +01:00
22 lines
822 B
Text
22 lines
822 B
Text
= render 'shared/error_messages', object: form.object
|
|
|
|
.fields-group
|
|
= form.input :url,
|
|
wrapper: :with_block_label,
|
|
input_html: { placeholder: 'https://' }
|
|
|
|
.fields-group
|
|
= form.input :events,
|
|
collection: Webhook::EVENTS,
|
|
wrapper: :with_block_label,
|
|
include_blank: false,
|
|
as: :check_boxes,
|
|
collection_wrapper_tag: 'ul',
|
|
item_wrapper_tag: 'li',
|
|
disabled: Webhook::EVENTS.filter { |event| !current_user.role.can?(Webhook.permission_for_event(event)) },
|
|
label_method: ->(event) { tag.samp(event) }
|
|
|
|
.fields-group
|
|
= form.input :template,
|
|
wrapper: :with_block_label,
|
|
input_html: { placeholder: '{ "content": "Hello {{object.username}}" }' }
|