1
0
Fork 0
forked from gitea/nas

Fix haml-lint LineLength cops in app/views/admin (#28680)

This commit is contained in:
Matt Jankowski 2024-03-15 07:19:00 -04:00 committed by GitHub
parent 7720c684c5
commit f445d33fd6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
37 changed files with 576 additions and 146 deletions

View file

@ -1,10 +1,21 @@
= render 'shared/error_messages', object: form.object
.fields-group
= form.input :url, wrapper: :with_block_label, input_html: { placeholder: 'https://' }
= 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)) }
= 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}}" }' }
= form.input :template,
wrapper: :with_block_label,
input_html: { placeholder: '{ "content": "Hello {{object.username}}" }' }