index.html.haml 922 B

123456789101112131415161718192021222324252627282930313233
  1. - content_for :page_title do
  2. = t('settings.aliases')
  3. = simple_form_for @alias, url: settings_aliases_path do |f|
  4. = render 'shared/error_messages', object: @alias
  5. %p.hint= t('aliases.hint_html')
  6. %hr.spacer/
  7. .fields-group
  8. = f.input :acct, wrapper: :with_block_label, input_html: { autocapitalize: 'none', autocorrect: 'off' }
  9. .actions
  10. = f.button :button, t('aliases.add_new'), type: :submit, class: 'button'
  11. %hr.spacer/
  12. .table-wrapper
  13. %table.table.inline-table
  14. %thead
  15. %tr
  16. %th= t('simple_form.labels.account_alias.acct')
  17. %th
  18. %tbody
  19. - if @aliases.empty?
  20. %tr
  21. %td.muted-hint{ colspan: 2 }= t('aliases.empty')
  22. - else
  23. - @aliases.each do |account_alias|
  24. %tr
  25. %td= account_alias.pretty_acct
  26. %td= table_link_to 'trash', t('aliases.remove'), settings_alias_path(account_alias), data: { method: :delete }