sutty/app/views/usuaries/invite.haml

27 lines
851 B
Text
Raw Normal View History

2019-07-05 23:55:59 +00:00
- invite_as = t("usuaries.invite_as.#{params[:invite_as]}")
.row
.col
= render 'layouts/breadcrumb',
crumbs: [ link_to(t('sites.index'), sites_path),
@site.name,
link_to(t('posts.index'),
site_usuaries_path(@site)),
t('.title', invite_as: invite_as) ]
= render 'layouts/help', help: t('help.breadcrumbs')
.row
.col
%h1= t('.title', invite_as: invite_as)
.row
.col
= form_with url: site_usuaries_invite_path(@site) do |f|
= f.hidden_field :invite_as, value: params[:invite_as]
.form-group
= f.label :invitaciones do
= t('.invitaciones')
%small.text-muted.form-text= t('.help.invitaciones',
invite_as: invite_as)
= f.text_area :invitaciones, class: 'form-control'
.form-group
= f.submit t('.submit'), class: 'btn btn-success'