diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2018-06-15 18:00:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-15 18:00:23 +0200 |
commit | ca85658975dd6c85fbe5cc725698fe3a34d1234e (patch) | |
tree | 10a3d40ea8a1d74e8f4b2a8553d7cb11e23d588c /app/views/auth/registrations | |
parent | 33dd9bf36d7cb7c94f76520357879d1a913c4ccb (diff) |
Add autofollow option to invites (#7805)
* Add autofollow option to invites * Trigger CodeClimate rebuild
Diffstat (limited to 'app/views/auth/registrations')
-rw-r--r-- | app/views/auth/registrations/new.html.haml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/auth/registrations/new.html.haml b/app/views/auth/registrations/new.html.haml index 2d4c0f5ac..0fac8e10d 100644 --- a/app/views/auth/registrations/new.html.haml +++ b/app/views/auth/registrations/new.html.haml @@ -7,6 +7,11 @@ = simple_form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| = render 'shared/error_messages', object: resource + - if @invite.present? && @invite.autofollow? + .fields-group{ style: 'margin-bottom: 30px' } + %p.hint{ style: 'text-align: center' }= t('invites.invited_by') + = render 'authorize_follows/card', account: @invite.user.account + = f.simple_fields_for :account do |ff| .input-with-append = ff.input :username, autofocus: true, placeholder: t('simple_form.labels.defaults.username'), required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.username'), :autocomplete => 'off' } |