mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 17:06:21 +00:00
fix: formularios
This commit is contained in:
parent
27d7589f9a
commit
5211c9bd28
4 changed files with 20 additions and 17 deletions
|
@ -1,2 +1,2 @@
|
||||||
- ActorModeration.events.each do |actor_event|
|
- ActorModeration.events.each do |actor_event|
|
||||||
= render 'components/dropdown_button', text: t(".submenu_#{actor_event}"), name: 'actor_moderation_action', value: actor_event
|
= render 'components/dropdown_button', text: t(".submenu_#{actor_event}"), name: 'actor_moderation_action', value: actor_event, form_id: form_id
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
.d-flex.py-2
|
.d-flex.py-2
|
||||||
= render 'components/dropdown', text: t('.text_checked') do
|
= render 'components/dropdown', text: t('.text_checked') do
|
||||||
= render 'components/profiles_checked_submenu'
|
= render 'components/profiles_checked_submenu', form_id: form_id
|
||||||
|
|
||||||
= render 'components/dropdown', text: t('.text_show') do
|
= render 'components/dropdown', text: t('.text_show') do
|
||||||
= render 'components/profiles_show_submenu', actor_moderations: actor_moderations
|
= render 'components/profiles_show_submenu', actor_moderations: actor_moderations
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
.row.no-gutters.pt-2
|
.row.no-gutters.pt-2
|
||||||
.col-1
|
.col-1
|
||||||
= render 'components/checkbox', id: actor_moderation.id, name: 'actor_moderation[]', value: actor_moderation.id, data: { target: 'select-all.input' }
|
= render 'components/checkbox', id: actor_moderation.id, form_id: form_id, name: 'actor_moderation[]', value: actor_moderation.id, data: { target: 'select-all.input' }
|
||||||
.col-11
|
.col-11
|
||||||
%h4
|
%h4
|
||||||
= link_to text_plain(profile['name']), site_actor_moderation_path(id: actor_moderation)
|
= link_to text_plain(profile['name']), site_actor_moderation_path(id: actor_moderation)
|
||||||
|
|
|
@ -1,14 +1,17 @@
|
||||||
%form{ action: site_actor_moderations_action_on_several_path, method: :post }
|
- form_id = 'actor_moderations_action_on_several'
|
||||||
.row.no-gutters.pt-2{ data: { controller: 'select-all' } }
|
|
||||||
.col-1.d-flex.align-items-center
|
= form_tag site_actor_moderations_action_on_several_path, id: form_id, method: :patch
|
||||||
= render 'components/select_all', id: 'actors'
|
|
||||||
.col-11
|
.row.no-gutters.pt-2{ data: { controller: 'select-all' } }
|
||||||
-# Filtros
|
.col-1.d-flex.align-items-center
|
||||||
= render 'components/profiles_filters', actor_moderations: actor_moderations
|
= render 'components/select_all', id: 'actors', form_id: form_id
|
||||||
.col-12
|
.col-11
|
||||||
- if actor_moderations.count.zero?
|
-# Filtros
|
||||||
%h4= t('moderation_queue.nothing')
|
= render 'components/profiles_filters', actor_moderations: actor_moderations, form_id: form_id
|
||||||
- actor_moderations.find_each do |actor_moderation|
|
.col-12
|
||||||
- cache [actor_moderation, actor_moderation.actor] do
|
- if actor_moderations.count.zero?
|
||||||
%hr
|
%h4= t('moderation_queue.nothing')
|
||||||
= render 'account', actor_moderation: actor_moderation, profile: actor_moderation.actor.content
|
- actor_moderations.find_each do |actor_moderation|
|
||||||
|
- cache [actor_moderation, actor_moderation.actor] do
|
||||||
|
%hr
|
||||||
|
= render 'account', actor_moderation: actor_moderation, profile: actor_moderation.actor.content, form_id: form_id
|
||||||
|
|
Loading…
Reference in a new issue