2019-07-05 23:55:59 +00:00
|
|
|
- invite_as = t("usuaries.invite_as.#{params[:invite_as]}")
|
2019-09-04 16:50:27 +00:00
|
|
|
|
|
|
|
= render 'layouts/breadcrumb',
|
2019-09-12 16:57:25 +00:00
|
|
|
crumbs: [link_to(t('sites.index.title'), sites_path),
|
2019-09-04 16:50:27 +00:00
|
|
|
@site.name,
|
|
|
|
link_to(t('posts.index'), site_usuaries_path(@site)),
|
|
|
|
t('.title', invite_as: invite_as)]
|
|
|
|
|
2019-07-05 23:55:59 +00:00
|
|
|
.row
|
|
|
|
.col
|
|
|
|
%h1= t('.title', invite_as: invite_as)
|
|
|
|
|
|
|
|
.row
|
|
|
|
.col
|
|
|
|
= form_with url: site_usuaries_invite_path(@site) do |f|
|
2019-07-06 00:21:49 +00:00
|
|
|
= f.hidden_field :invited_as, value: params[:invite_as].singularize
|
2019-07-05 23:55:59 +00:00
|
|
|
.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
|
2019-09-12 16:55:20 +00:00
|
|
|
= f.submit t('.submit'), class: 'btn'
|