logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

_fields.html.haml (998B)


  1. .fields-group
  2. = f.input :name, placeholder: t('activerecord.attributes.doorkeeper/application.name')
  3. = f.input :website, placeholder: t('activerecord.attributes.doorkeeper/application.website')
  4. .fields-group
  5. = f.input :redirect_uri, wrapper: :with_block_label, label: t('activerecord.attributes.doorkeeper/application.redirect_uri'), hint: t('doorkeeper.applications.help.redirect_uri')
  6. %p.hint= t('doorkeeper.applications.help.native_redirect_uri', native_redirect_uri: Doorkeeper.configuration.native_redirect_uri)
  7. .field-group
  8. = f.input :scopes,
  9. label: t('activerecord.attributes.doorkeeper/application.scopes'),
  10. collection: Doorkeeper.configuration.scopes,
  11. wrapper: :with_label,
  12. include_blank: false,
  13. label_method: lambda { |scope| safe_join([scope, content_tag(:span, t("doorkeeper.scopes.#{scope}"), class: 'hint')]) },
  14. selected: f.object.scopes.all,
  15. required: false,
  16. as: :check_boxes,
  17. collection_wrapper_tag: 'ul',
  18. item_wrapper_tag: 'li'