~cytrogen/masto-fe

ref: 6ac4848fbb08bc5c439d7d738cecc163cb5ec231 masto-fe/app/views/admin/webhooks/_form.html.haml -rw-r--r-- 597 bytes
6ac4848f — Laura Hausmann Merge remote-tracking branch 'upstream' into glitch 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
= 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)) }

.fields-group
  = form.input :template, wrapper: :with_block_label, input_html: { placeholder: '{ "content": "Hello {{object.username}}" }' }