mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 02:41:41 +00:00
acomodar la sección de usuaries al resto del sitio
This commit is contained in:
parent
c2b150df12
commit
f3fcf11da3
2 changed files with 19 additions and 24 deletions
|
@ -1,13 +1,10 @@
|
||||||
.row
|
.row.justify-content-center
|
||||||
.col
|
.col.col-md-8
|
||||||
%h1= t('.title')
|
%h1= t('.title')
|
||||||
|
|
||||||
.row
|
|
||||||
.col
|
|
||||||
-# Una tabla de usuaries y otra de invitades, con acciones
|
-# Una tabla de usuaries y otra de invitades, con acciones
|
||||||
- %i[usuaries invitades].each do |u|
|
- %i[usuaries invitades].each do |u|
|
||||||
%h2
|
%h2.mt-5= t(".#{u}")
|
||||||
= t(".#{u}")
|
|
||||||
.btn-group{ role: 'group', 'aria-label': t('.actions') }
|
.btn-group{ role: 'group', 'aria-label': t('.actions') }
|
||||||
- if @policy.invite?
|
- if @policy.invite?
|
||||||
= link_to t('.invite'),
|
= link_to t('.invite'),
|
||||||
|
@ -21,7 +18,7 @@
|
||||||
class: 'btn',
|
class: 'btn',
|
||||||
data: { toggle: 'tooltip' },
|
data: { toggle: 'tooltip' },
|
||||||
title: t('.help.public_invite')
|
title: t('.help.public_invite')
|
||||||
%p= t(".help.#{u}")
|
%p.lead= t(".help.#{u}")
|
||||||
%table.table.table-condensed
|
%table.table.table-condensed
|
||||||
%tbody
|
%tbody
|
||||||
- @site.send(u).each do |cuenta|
|
- @site.send(u).each do |cuenta|
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
- invite_as = t("usuaries.invite_as.#{params[:invite_as]}")
|
- invite_as = t("usuaries.invite_as.#{params[:invite_as]}")
|
||||||
|
|
||||||
.row
|
.row.justify-content-center
|
||||||
.col
|
.col.col-md-8
|
||||||
%h1= t('.title', invite_as: invite_as)
|
%h1= t('.title', invite_as: invite_as)
|
||||||
|
|
||||||
.row
|
|
||||||
.col
|
|
||||||
= form_with url: site_usuaries_invite_path(@site), local: true do |f|
|
= form_with url: site_usuaries_invite_path(@site), local: true do |f|
|
||||||
= f.hidden_field :invited_as, value: params[:invite_as].singularize
|
= f.hidden_field :invited_as, value: params[:invite_as].singularize
|
||||||
.form-group
|
.form-group
|
||||||
|
|
Loading…
Reference in a new issue