decidim-conferences 0.27.4 → 0.28.0.rc5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/cells/decidim/conferences/conference_cell.rb +9 -4
- data/app/cells/decidim/conferences/conference_dropdown_metadata_cell.rb +19 -0
- data/app/cells/decidim/conferences/conference_g_cell.rb +23 -0
- data/app/cells/decidim/conferences/conference_metadata_cell.rb +21 -0
- data/app/cells/decidim/conferences/conference_s_cell.rb +13 -0
- data/app/cells/decidim/conferences/conference_speaker/show.erb +44 -58
- data/app/cells/decidim/conferences/conference_speaker_cell.rb +3 -13
- data/app/cells/decidim/conferences/content_blocks/highlighted_conferences_cell.rb +15 -14
- data/app/cells/decidim/conferences/content_blocks/highlighted_conferences_settings_form/show.erb +3 -0
- data/app/cells/decidim/conferences/content_blocks/highlighted_conferences_settings_form_cell.rb +19 -0
- data/app/cells/decidim/conferences/linked_participatory_spaces/show.erb +6 -8
- data/app/cells/decidim/conferences/linked_participatory_spaces_cell.rb +1 -10
- data/app/cells/decidim/conferences/media_link/show.erb +6 -8
- data/app/cells/decidim/conferences/partner/image.erb +3 -0
- data/app/cells/decidim/conferences/partner/show.erb +8 -8
- data/app/cells/decidim/conferences/partner/text.erb +1 -0
- data/app/cells/decidim/conferences/partner_cell.rb +4 -2
- data/app/cells/decidim/conferences/registration_type/join_conference.erb +15 -12
- data/app/cells/decidim/conferences/registration_type/registration_confirm.erb +12 -12
- data/app/cells/decidim/conferences/registration_type/show.erb +11 -14
- data/app/cells/decidim/conferences/registration_type_cell.rb +3 -3
- data/app/commands/decidim/conferences/admin/copy_conference.rb +1 -1
- data/app/commands/decidim/conferences/admin/create_conference.rb +2 -11
- data/app/commands/decidim/conferences/admin/create_conference_speaker.rb +2 -2
- data/app/commands/decidim/conferences/admin/create_media_link.rb +2 -2
- data/app/commands/decidim/conferences/admin/create_partner.rb +2 -2
- data/app/commands/decidim/conferences/admin/create_registration_type.rb +2 -2
- data/app/commands/decidim/conferences/admin/destroy_conference_speaker.rb +2 -2
- data/app/commands/decidim/conferences/admin/destroy_media_link.rb +1 -1
- data/app/commands/decidim/conferences/admin/destroy_partner.rb +3 -3
- data/app/commands/decidim/conferences/admin/destroy_registration_type.rb +1 -1
- data/app/commands/decidim/conferences/admin/invite_user_to_join_conference.rb +5 -5
- data/app/commands/decidim/conferences/admin/publish_conference.rb +9 -26
- data/app/commands/decidim/conferences/admin/send_conference_diplomas.rb +1 -1
- data/app/commands/decidim/conferences/admin/update_conference.rb +2 -11
- data/app/commands/decidim/conferences/admin/update_conference_speaker.rb +1 -1
- data/app/commands/decidim/conferences/admin/update_media_link.rb +1 -1
- data/app/commands/decidim/conferences/admin/update_partner.rb +1 -1
- data/app/commands/decidim/conferences/admin/update_registration_type.rb +1 -1
- data/app/commands/decidim/conferences/decline_invitation.rb +1 -1
- data/app/commands/decidim/conferences/join_conference.rb +5 -5
- data/app/constraints/decidim/conferences/current_component.rb +2 -2
- data/app/constraints/decidim/conferences/current_conference.rb +2 -2
- data/app/controllers/concerns/decidim/conferences/admin/conference_context.rb +1 -1
- data/app/controllers/decidim/conferences/admin/concerns/conference_admin.rb +2 -2
- data/app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb +6 -1
- data/app/controllers/decidim/conferences/admin/conference_attachments_controller.rb +5 -0
- data/app/controllers/decidim/conferences/admin/conference_invites_controller.rb +2 -1
- data/app/controllers/decidim/conferences/admin/conference_publications_controller.rb +10 -28
- data/app/controllers/decidim/conferences/admin/conference_registrations_controller.rb +1 -1
- data/app/controllers/decidim/conferences/admin/conference_user_roles_controller.rb +8 -90
- data/app/controllers/decidim/conferences/admin/conferences_controller.rb +2 -0
- data/app/controllers/decidim/conferences/admin/diplomas_controller.rb +1 -1
- data/app/controllers/decidim/conferences/admin/exports_controller.rb +1 -1
- data/app/controllers/decidim/conferences/admin/imports_controller.rb +1 -1
- data/app/controllers/decidim/conferences/admin/moderations/reports_controller.rb +1 -1
- data/app/controllers/decidim/conferences/admin/moderations_controller.rb +1 -1
- data/app/controllers/decidim/conferences/application_controller.rb +6 -0
- data/app/controllers/decidim/conferences/conference_registrations_controller.rb +3 -3
- data/app/controllers/decidim/conferences/conferences_controller.rb +10 -3
- data/app/events/decidim/conferences/conference_registration_notification_event.rb +3 -3
- data/app/events/decidim/conferences/conference_registrations_enabled_event.rb +1 -1
- data/app/events/decidim/conferences/conference_registrations_over_percentage_event.rb +1 -1
- data/app/events/decidim/conferences/conference_role_assigned_event.rb +6 -6
- data/app/forms/decidim/conferences/admin/conference_copy_form.rb +1 -1
- data/app/forms/decidim/conferences/admin/conference_form.rb +4 -15
- data/app/forms/decidim/conferences/admin/conference_user_role_form.rb +2 -17
- data/app/helpers/decidim/conferences/admin/conferences_helper.rb +0 -4
- data/app/helpers/decidim/conferences/conference_helper.rb +55 -0
- data/app/helpers/decidim/conferences/conference_program_helper.rb +1 -1
- data/app/helpers/decidim/conferences/media_attachments_helper.rb +0 -10
- data/app/helpers/decidim/conferences/partners_helper.rb +3 -1
- data/app/mailers/decidim/conferences/admin/invite_join_conference_mailer.rb +1 -1
- data/app/mailers/decidim/conferences/admin/send_conference_diploma_mailer.rb +1 -1
- data/app/mailers/decidim/conferences/conference_registration_mailer.rb +2 -2
- data/app/models/decidim/conference.rb +4 -4
- data/app/models/decidim/conference_user_role.rb +6 -34
- data/app/packs/entrypoints/decidim_conferences.js +5 -0
- data/app/packs/src/decidim/conferences/admin/conferences.js +6 -6
- data/app/packs/stylesheets/decidim/conferences/_conference.scss +102 -0
- data/app/packs/stylesheets/decidim/conferences/_media.scss +13 -0
- data/app/packs/stylesheets/decidim/conferences/_program.scss +43 -0
- data/app/packs/stylesheets/decidim/conferences/_registration.scss +39 -0
- data/app/packs/stylesheets/decidim/conferences/_speaker.scss +83 -0
- data/app/packs/stylesheets/decidim/conferences/conferences.scss +5 -3
- data/app/permissions/decidim/conferences/permissions.rb +2 -2
- data/app/presenters/decidim/conference_speaker_presenter.rb +1 -1
- data/app/presenters/decidim/conferences/admin_log/conference_invite_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/admin_log/conference_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/admin_log/conference_registration_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/admin_log/conference_speaker_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/admin_log/conference_user_role_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/admin_log/media_link_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/admin_log/partner_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/admin_log/registration_type_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/conference_stats_presenter.rb +3 -28
- data/app/queries/decidim/conferences/admin/admin_users.rb +4 -4
- data/app/queries/decidim/conferences/conferences_with_user_role.rb +2 -2
- data/app/queries/decidim/conferences/organization_conferences.rb +1 -1
- data/app/queries/decidim/conferences/organization_published_conferences.rb +1 -1
- data/app/views/decidim/conferences/admin/conference_copies/_form.html.erb +22 -28
- data/app/views/decidim/conferences/admin/conference_copies/new.html.erb +16 -5
- data/app/views/decidim/conferences/admin/conference_invites/_form.html.erb +17 -19
- data/app/views/decidim/conferences/admin/conference_invites/index.html.erb +69 -74
- data/app/views/decidim/conferences/admin/conference_invites/new.html.erb +21 -17
- data/app/views/decidim/conferences/admin/conference_registrations/index.html.erb +45 -45
- data/app/views/decidim/conferences/admin/conference_speakers/_form.html.erb +42 -46
- data/app/views/decidim/conferences/admin/conference_speakers/edit.html.erb +16 -6
- data/app/views/decidim/conferences/admin/conference_speakers/index.html.erb +52 -55
- data/app/views/decidim/conferences/admin/conference_speakers/new.html.erb +16 -6
- data/app/views/decidim/conferences/admin/conference_user_roles/_form.html.erb +14 -18
- data/app/views/decidim/conferences/admin/conference_user_roles/edit.html.erb +16 -6
- data/app/views/decidim/conferences/admin/conference_user_roles/index.html.erb +53 -56
- data/app/views/decidim/conferences/admin/conference_user_roles/new.html.erb +16 -6
- data/app/views/decidim/conferences/admin/conferences/_form.html.erb +88 -88
- data/app/views/decidim/conferences/admin/conferences/edit.html.erb +26 -12
- data/app/views/decidim/conferences/admin/conferences/index.html.erb +55 -64
- data/app/views/decidim/conferences/admin/conferences/new.html.erb +16 -8
- data/app/views/decidim/conferences/admin/diplomas/_form.html.erb +18 -24
- data/app/views/decidim/conferences/admin/diplomas/edit.html.erb +19 -5
- data/app/views/decidim/conferences/admin/media_links/_form.html.erb +15 -19
- data/app/views/decidim/conferences/admin/media_links/edit.html.erb +16 -6
- data/app/views/decidim/conferences/admin/media_links/index.html.erb +37 -40
- data/app/views/decidim/conferences/admin/media_links/new.html.erb +16 -6
- data/app/views/decidim/conferences/admin/partners/_form.html.erb +18 -22
- data/app/views/decidim/conferences/admin/partners/edit.html.erb +16 -6
- data/app/views/decidim/conferences/admin/partners/index.html.erb +45 -48
- data/app/views/decidim/conferences/admin/partners/new.html.erb +16 -6
- data/app/views/decidim/conferences/admin/registration_types/_form.html.erb +23 -23
- data/app/views/decidim/conferences/admin/registration_types/edit.html.erb +16 -6
- data/app/views/decidim/conferences/admin/registration_types/index.html.erb +52 -56
- data/app/views/decidim/conferences/admin/registration_types/new.html.erb +16 -6
- data/app/views/decidim/conferences/admin/send_conference_diploma_mailer/diploma_user.html.erb +2 -2
- data/app/views/decidim/conferences/conference_program/_program_item.html.erb +21 -24
- data/app/views/decidim/conferences/conference_program/_program_meeting.html.erb +29 -63
- data/app/views/decidim/conferences/conference_program/show.html.erb +27 -39
- data/app/views/decidim/conferences/conference_speakers/index.html.erb +12 -6
- data/app/views/decidim/conferences/conferences/_conference_hero.html.erb +33 -0
- data/app/views/decidim/conferences/conferences/_partners.html.erb +10 -13
- data/app/views/decidim/conferences/conferences/index.html.erb +17 -7
- data/app/views/decidim/conferences/conferences/show.html.erb +84 -50
- data/app/views/decidim/conferences/media/index.html.erb +33 -19
- data/app/views/decidim/conferences/registration_types/index.html.erb +25 -17
- data/app/views/layouts/decidim/admin/conference.html.erb +12 -14
- data/app/views/layouts/decidim/admin/conferences.html.erb +13 -8
- data/app/views/layouts/decidim/conference.html.erb +7 -17
- data/app/views/layouts/decidim/conferences/_conference_nav_item.html.erb +6 -0
- data/app/views/layouts/decidim/conferences/application.html.erb +6 -0
- data/config/assets.rb +1 -1
- data/config/environment.rb +3 -0
- data/config/initializers/wicked_pdf.rb +1 -1
- data/config/locales/ar.yml +1 -68
- data/config/locales/bg.yml +0 -1
- data/config/locales/ca.yml +35 -55
- data/config/locales/cs.yml +40 -58
- data/config/locales/de.yml +37 -57
- data/config/locales/el.yml +11 -57
- data/config/locales/en.yml +36 -56
- data/config/locales/es-MX.yml +34 -54
- data/config/locales/es-PY.yml +34 -54
- data/config/locales/es.yml +33 -53
- data/config/locales/eu.yml +179 -198
- data/config/locales/fi-plain.yml +33 -53
- data/config/locales/fi.yml +39 -59
- data/config/locales/fr-CA.yml +33 -53
- data/config/locales/fr.yml +34 -54
- data/config/locales/ga-IE.yml +0 -17
- data/config/locales/gl.yml +1 -68
- data/config/locales/hu.yml +15 -57
- data/config/locales/id-ID.yml +1 -62
- data/config/locales/it.yml +2 -68
- data/config/locales/ja.yml +34 -55
- data/config/locales/lb.yml +1 -59
- data/config/locales/lt.yml +21 -54
- data/config/locales/lv.yml +1 -65
- data/config/locales/nl.yml +1 -68
- data/config/locales/no.yml +1 -68
- data/config/locales/pl.yml +1 -66
- data/config/locales/pt-BR.yml +1 -68
- data/config/locales/pt.yml +1 -68
- data/config/locales/ro-RO.yml +11 -56
- data/config/locales/sk.yml +1 -65
- data/config/locales/sl.yml +0 -3
- data/config/locales/sq-AL.yml +1 -0
- data/config/locales/sr-CS.yml +0 -5
- data/config/locales/sv.yml +7 -67
- data/config/locales/th-TH.yml +1 -0
- data/config/locales/tr-TR.yml +12 -66
- data/config/locales/zh-CN.yml +1 -65
- data/config/locales/zh-TW.yml +6 -53
- data/db/migrate/20221116084952_add_weight_to_conferences.rb +7 -0
- data/lib/decidim/api/conference_speaker_type.rb +1 -1
- data/lib/decidim/conferences/admin_engine.rb +14 -138
- data/lib/decidim/conferences/content_blocks/registry_manager.rb +21 -0
- data/lib/decidim/conferences/engine.rb +17 -15
- data/lib/decidim/conferences/menu.rb +182 -0
- data/lib/decidim/conferences/participatory_space.rb +6 -200
- data/lib/decidim/conferences/query_extensions.rb +2 -2
- data/lib/decidim/conferences/seeds.rb +153 -0
- data/lib/decidim/conferences/test/factories.rb +10 -9
- data/lib/decidim/conferences/version.rb +1 -1
- metadata +46 -46
- data/app/cells/decidim/conferences/conference_address/show.erb +0 -11
- data/app/cells/decidim/conferences/conference_address_cell.rb +0 -11
- data/app/cells/decidim/conferences/conference_m/footer.erb +0 -9
- data/app/cells/decidim/conferences/conference_m/tags.erb +0 -1
- data/app/cells/decidim/conferences/conference_m_cell.rb +0 -42
- data/app/cells/decidim/conferences/content_blocks/highlighted_conferences/show.erb +0 -30
- data/app/cells/decidim/conferences/photo/show.erb +0 -26
- data/app/cells/decidim/conferences/photo_cell.rb +0 -41
- data/app/cells/decidim/conferences/photos_list/show.erb +0 -8
- data/app/cells/decidim/conferences/photos_list_cell.rb +0 -18
- data/app/commands/decidim/conferences/admin/create_conference_admin.rb +0 -114
- data/app/commands/decidim/conferences/admin/destroy_conference_admin.rb +0 -58
- data/app/commands/decidim/conferences/admin/notify_role_assigned_to_conference.rb +0 -22
- data/app/commands/decidim/conferences/admin/unpublish_conference.rb +0 -39
- data/app/commands/decidim/conferences/admin/update_conference_admin.rb +0 -53
- data/app/controllers/decidim/conferences/conference_widgets_controller.rb +0 -23
- data/app/queries/decidim/conferences/admin/conference_invites.rb +0 -60
- data/app/views/decidim/conferences/_order_by_conferences.html.erb +0 -3
- data/app/views/decidim/conferences/conferences/_promoted_conference.html.erb +0 -27
- data/app/views/decidim/conferences/media/_attachments.html.erb +0 -6
- data/app/views/decidim/conferences/shared/_conference_user_login.html.erb +0 -14
- data/app/views/layouts/decidim/_conference_hero.html.erb +0 -42
- data/app/views/layouts/decidim/_conferences_nav.html.erb +0 -46
- data/db/seeds/Exampledocument.pdf +0 -0
- data/db/seeds/city.jpeg +0 -0
- data/db/seeds/city2.jpeg +0 -0
- data/db/seeds/homepage_image.jpg +0 -0
- data/db/seeds/logo.png +0 -0
@@ -1,8 +1,18 @@
|
|
1
1
|
<% add_decidim_page_title(t("conference_speakers.new.title", scope: "decidim.admin")) %>
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
2
|
+
<div class="item_show__header">
|
3
|
+
<h2 class="item_show__header-title">
|
4
|
+
<%= t("conference_speakers.new.title", scope: "decidim.admin") %>
|
5
|
+
</h2>
|
6
|
+
</div>
|
7
|
+
<div class="item__edit item__edit-1col">
|
8
|
+
<div class="item__edit-form">
|
9
|
+
<%= decidim_form_for(@form, html: { class: "form-defaults form new_conference_speaker" }) do |f| %>
|
10
|
+
<%= render partial: "form", object: f %>
|
11
|
+
<div class="item__edit-sticky">
|
12
|
+
<div class="item__edit-sticky-container">
|
13
|
+
<%= f.submit t("conference_speakers.new.create", scope: "decidim.admin"), class: "button button__sm button__secondary" %>
|
14
|
+
</div>
|
15
|
+
</div>
|
16
|
+
<% end %>
|
7
17
|
</div>
|
8
|
-
|
18
|
+
</div>
|
@@ -1,21 +1,17 @@
|
|
1
|
-
<div class="
|
2
|
-
<div class="card-
|
3
|
-
<
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
</div>
|
16
|
-
<div class="columns xlarge-4">
|
17
|
-
<%= form.label :role %>
|
18
|
-
<%= select :conference_user_role, :role, @form.roles, include_blank: false %>
|
1
|
+
<div class="form__wrapper">
|
2
|
+
<div class="card pt-4">
|
3
|
+
<div class="card-section">
|
4
|
+
<div class="row">
|
5
|
+
<div class="columns">
|
6
|
+
<%= form.text_field :name, readonly: @form.persisted? %>
|
7
|
+
</div>
|
8
|
+
<div class="columns">
|
9
|
+
<%= form.email_field :email, readonly: @form.persisted? %>
|
10
|
+
</div>
|
11
|
+
<div class="columns">
|
12
|
+
<%= form.label :role %>
|
13
|
+
<%= select :conference_user_role, :role, @form.roles, include_blank: false %>
|
14
|
+
</div>
|
19
15
|
</div>
|
20
16
|
</div>
|
21
17
|
</div>
|
@@ -1,8 +1,18 @@
|
|
1
1
|
<% add_decidim_page_title(t("conference_user_roles.edit.title", scope: "decidim.admin")) %>
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
2
|
+
<div class="item_show__header">
|
3
|
+
<h2 class="item_show__header-title">
|
4
|
+
<%= t("conference_user_roles.edit.title", scope: "decidim.admin") %>
|
5
|
+
</h2>
|
6
|
+
</div>
|
7
|
+
<div class="item__edit item__edit-1col">
|
8
|
+
<div class="item__edit-form">
|
9
|
+
<%= decidim_form_for(@form, url: conference_user_role_path(@user_role.conference, @user_role), html: { class: "form-defaults form edit_conference_user_roles" }) do |f| %>
|
10
|
+
<%= render partial: "form", object: f %>
|
11
|
+
<div class="item__edit-sticky">
|
12
|
+
<div class="item__edit-sticky-container">
|
13
|
+
<%= f.submit t("conference_user_roles.edit.update", scope: "decidim.admin"), class: "button button__sm button__secondary" %>
|
14
|
+
</div>
|
15
|
+
</div>
|
16
|
+
<% end %>
|
7
17
|
</div>
|
8
|
-
|
18
|
+
</div>
|
@@ -1,68 +1,65 @@
|
|
1
1
|
<% add_decidim_page_title(t("conference_user_roles.index.conference_admins_title", scope: "decidim.admin")) %>
|
2
|
-
<div class=
|
3
|
-
<div class="
|
4
|
-
<h2 class="
|
2
|
+
<div class="card" id="conference_admins">
|
3
|
+
<div class="item_show__header">
|
4
|
+
<h2 class="item_show__header-title">
|
5
5
|
<%= t("conference_user_roles.index.conference_admins_title", scope: "decidim.admin") %>
|
6
6
|
<% if allowed_to? :create, :conference_user_role %>
|
7
|
-
<%= link_to t("actions.
|
7
|
+
<%= link_to t("actions.new_conference_user_role", scope: "decidim.admin"), new_conference_user_role_path(current_conference), class: "button button__sm button__secondary new" %>
|
8
8
|
<% end %>
|
9
9
|
</h2>
|
10
10
|
</div>
|
11
11
|
<%= admin_filter_selector %>
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
12
|
+
<div class="table-scroll">
|
13
|
+
<table class="stack table-list">
|
14
|
+
<thead>
|
15
|
+
<tr>
|
16
|
+
<th><%= sort_link(query, :name,t("models.conference_user_role.fields.name", scope: "decidim.admin"), default_order: :desc) %></th>
|
17
|
+
<th><%= sort_link(query, :email, t("models.conference_user_role.fields.email", scope: "decidim.admin"), default_order: :desc) %></th>
|
18
|
+
<th><%= sort_link(query, :last_sign_in_at, t("models.user.fields.last_sign_in_at", scope: "decidim.admin"), default_order: :desc) %></th>
|
19
|
+
<th><%= sort_link(query, :invitation_accepted_at, t("models.user.fields.invitation_accepted_at", scope: "decidim.admin"), default_order: :desc) %></th>
|
20
|
+
<th><%= sort_link(query, :role, t("models.conference_user_role.fields.role", scope: "decidim.admin"), default_order: :desc) %></th>
|
21
|
+
<th class="actions"></th>
|
22
|
+
</tr>
|
23
|
+
</thead>
|
24
|
+
<tbody>
|
25
|
+
<% filtered_collection.each do |role| %>
|
17
26
|
<tr>
|
18
|
-
<
|
19
|
-
|
20
|
-
|
21
|
-
<
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
<% if role.user.invitation_accepted_at %>
|
42
|
-
<%= l role.user.invitation_accepted_at, format: :short %>
|
43
|
-
<% end %>
|
44
|
-
</td>
|
45
|
-
<td>
|
46
|
-
<%= t("#{role.role}", scope: "decidim.admin.models.conference_user_role.roles") %><br>
|
47
|
-
</td>
|
48
|
-
<td class="table-list__actions">
|
49
|
-
<% if allowed_to?(:invite, :conference_user_role, user_role: role) && role.user.invited_to_sign_up? %>
|
50
|
-
<%= icon_link_to "reload", resend_invitation_conference_user_role_path(current_conference, role), t("actions.resend_invitation", scope: "decidim.admin"), class: "resend-invitation", method: :post %>
|
51
|
-
<% end %>
|
27
|
+
<td>
|
28
|
+
<%= role.user.name %><br>
|
29
|
+
</td>
|
30
|
+
<td>
|
31
|
+
<%= role.user.email %><br>
|
32
|
+
</td>
|
33
|
+
<td>
|
34
|
+
<% if role.user.invitation_sent_at %>
|
35
|
+
<%= l role.user.invitation_sent_at, format: :short %>
|
36
|
+
<% end %>
|
37
|
+
</td>
|
38
|
+
<td>
|
39
|
+
<% if role.user.invitation_accepted_at %>
|
40
|
+
<%= l role.user.invitation_accepted_at, format: :short %>
|
41
|
+
<% end %>
|
42
|
+
</td>
|
43
|
+
<td>
|
44
|
+
<%= t("#{role.role}", scope: "decidim.admin.models.conference_user_role.roles") %><br>
|
45
|
+
</td>
|
46
|
+
<td class="table-list__actions">
|
47
|
+
<% if allowed_to?(:invite, :conference_user_role, user_role: role) && role.user.invited_to_sign_up? %>
|
48
|
+
<%= icon_link_to "refresh-line", resend_invitation_conference_user_role_path(current_conference, role), t("actions.resend_invitation", scope: "decidim.admin"), class: "resend-invitation", method: :post %>
|
49
|
+
<% end %>
|
52
50
|
|
53
|
-
|
54
|
-
|
55
|
-
|
51
|
+
<% if allowed_to? :update, :conference_user_role, user_role: role %>
|
52
|
+
<%= icon_link_to "pencil-line", edit_conference_user_role_path(current_conference, role), t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit" %>
|
53
|
+
<% end %>
|
56
54
|
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
<%= paginate @conference_user_roles, theme: "decidim" %>
|
66
|
-
</div>
|
55
|
+
<% if allowed_to? :destroy, :conference_user_role, user_role: role %>
|
56
|
+
<%= icon_link_to "delete-bin-line", conference_user_role_path(current_conference, role), t("actions.destroy", scope: "decidim.admin"), class: "action-icon--remove", method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %>
|
57
|
+
<% end %>
|
58
|
+
</td>
|
59
|
+
</tr>
|
60
|
+
<% end %>
|
61
|
+
</tbody>
|
62
|
+
</table>
|
67
63
|
</div>
|
68
64
|
</div>
|
65
|
+
<%= decidim_paginate filtered_collection %>
|
@@ -1,8 +1,18 @@
|
|
1
1
|
<% add_decidim_page_title(t("conference_user_roles.new.title", scope: "decidim.admin")) %>
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
2
|
+
<div class="item_show__header">
|
3
|
+
<h2 class="item_show__header-title">
|
4
|
+
<%= t("conference_user_roles.new.title", scope: "decidim.admin") %>
|
5
|
+
</h2>
|
6
|
+
</div>
|
7
|
+
<div class="item__edit item__edit-1col">
|
8
|
+
<div class="item__edit-form">
|
9
|
+
<%= decidim_form_for(@form, html: { class: "form-defaults form new_conference_user_role" }) do |f| %>
|
10
|
+
<%= render partial: "form", object: f %>
|
11
|
+
<div class="item__edit-sticky">
|
12
|
+
<div class="item__edit-sticky-container">
|
13
|
+
<%= f.submit t("conference_user_roles.new.create", scope: "decidim.admin"), class: "button button__sm button__secondary" %>
|
14
|
+
</div>
|
15
|
+
</div>
|
16
|
+
<% end %>
|
7
17
|
</div>
|
8
|
-
|
18
|
+
</div>
|
@@ -1,120 +1,120 @@
|
|
1
|
-
<div class="
|
2
|
-
<div class="card-
|
3
|
-
<
|
4
|
-
|
1
|
+
<div class="form__wrapper">
|
2
|
+
<div class="card" data-component="accordion" id="accordion-title">
|
3
|
+
<div class="card-divider">
|
4
|
+
<button class="card-divider-button" data-open="true" data-controls="panel-title" type="button">
|
5
|
+
<%= icon "arrow-right-s-line" %>
|
6
|
+
<h2 class="card-title" id="title">
|
7
|
+
<%= t("title", scope: "decidim.admin.conferences.form") %>
|
8
|
+
</h2>
|
9
|
+
</button>
|
10
|
+
</div>
|
11
|
+
|
12
|
+
<div id="panel-title" class="card-section">
|
13
|
+
<div class="row column">
|
14
|
+
<%= form.translated :text_field, :title, autofocus: true, aria: { label: :title } %>
|
15
|
+
</div>
|
5
16
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
</div>
|
17
|
+
<div class="row column">
|
18
|
+
<%= form.translated :text_field, :slogan, aria: { label: :slogan } %>
|
19
|
+
</div>
|
10
20
|
|
11
|
-
|
12
|
-
|
13
|
-
|
21
|
+
<div class="row column">
|
22
|
+
<%= form.number_field :weight %>
|
23
|
+
</div>
|
14
24
|
|
15
25
|
<div class="row">
|
16
|
-
<div class="columns
|
17
|
-
<%= form.text_field :slug %>
|
18
|
-
<p class="help-text"><%== t(".slug_help", url: decidim_form_slug_url(:conferences, form.object.slug)) %></p>
|
26
|
+
<div class="columns slug">
|
27
|
+
<%= form.text_field :slug, help_text: t(".slug_help_html", url: decidim_form_slug_url(:conferences, form.object.slug)) %>
|
19
28
|
</div>
|
20
29
|
|
21
|
-
|
22
|
-
|
30
|
+
<div class="columns">
|
31
|
+
<%= form.text_field :hashtag %>
|
32
|
+
</div>
|
23
33
|
</div>
|
24
|
-
</div>
|
25
|
-
|
26
|
-
<div class="row column">
|
27
|
-
<%= form.check_box :promoted %>
|
28
|
-
</div>
|
29
34
|
|
30
|
-
|
31
|
-
|
32
|
-
|
35
|
+
<div class="row column">
|
36
|
+
<%= form.check_box :promoted %>
|
37
|
+
</div>
|
33
38
|
|
34
|
-
|
35
|
-
|
36
|
-
|
39
|
+
<div class="row column">
|
40
|
+
<%= form.translated :editor, :short_description, aria: { label: :short_description } %>
|
41
|
+
</div>
|
37
42
|
|
38
|
-
|
39
|
-
|
40
|
-
|
43
|
+
<div class="row column">
|
44
|
+
<%= form.translated :editor, :description, aria: { label: :description } %>
|
45
|
+
</div>
|
41
46
|
|
42
|
-
|
43
|
-
|
44
|
-
|
47
|
+
<div class="row column">
|
48
|
+
<%= form.translated :editor, :objectives, aria: { label: :objectives } %>
|
49
|
+
</div>
|
45
50
|
|
46
|
-
|
47
|
-
|
48
|
-
<%= form.upload :hero_image %>
|
51
|
+
<div class="row column">
|
52
|
+
<%= form.text_field :location %>
|
49
53
|
</div>
|
50
54
|
|
51
|
-
<div class="
|
52
|
-
|
55
|
+
<div class="row">
|
56
|
+
<div class="columns">
|
57
|
+
<%= form.upload :hero_image, button_class: "button button__sm button__transparent-secondary" %>
|
58
|
+
</div>
|
59
|
+
|
60
|
+
<div class="columns">
|
61
|
+
<%= form.upload :banner_image, button_class: "button button__sm button__transparent-secondary" %>
|
62
|
+
</div>
|
53
63
|
</div>
|
54
|
-
</div>
|
55
64
|
|
56
|
-
|
57
|
-
|
58
|
-
|
65
|
+
<div class="row column">
|
66
|
+
<%= form.check_box :scopes_enabled %>
|
67
|
+
</div>
|
59
68
|
|
60
|
-
|
61
|
-
|
62
|
-
|
69
|
+
<div class="row column">
|
70
|
+
<%= scopes_select_field form, :scope_id, root: nil %>
|
71
|
+
</div>
|
63
72
|
|
64
|
-
|
65
|
-
|
66
|
-
|
73
|
+
<div class="row column">
|
74
|
+
<%= form.check_box :show_statistics %>
|
75
|
+
</div>
|
67
76
|
|
68
|
-
|
69
|
-
|
70
|
-
|
77
|
+
<div class="row column">
|
78
|
+
<%= form.date_field :start_date %>
|
79
|
+
</div>
|
71
80
|
|
72
|
-
|
73
|
-
|
74
|
-
|
81
|
+
<div class="row column">
|
82
|
+
<%= form.date_field :end_date %>
|
83
|
+
</div>
|
75
84
|
|
76
|
-
|
77
|
-
|
78
|
-
|
85
|
+
<div class="row column">
|
86
|
+
<%= form.check_box :registrations_enabled %>
|
87
|
+
</div>
|
79
88
|
|
80
89
|
<div class="row column">
|
81
90
|
<p><%= t(".registrations_count", count: current_participatory_space.present? ? current_participatory_space.conference_registrations.count : 0) %></p>
|
82
|
-
<%= form.number_field :available_slots %>
|
83
|
-
<p class="help-text"><%= t(".available_slots_help") %></p>
|
91
|
+
<%= form.number_field :available_slots, help_text: t(".available_slots_help") %>
|
84
92
|
</div>
|
85
93
|
|
86
|
-
|
87
|
-
|
88
|
-
|
94
|
+
<div class="row column" id="conference_registrations_terms">
|
95
|
+
<%= form.translated :editor, :registration_terms, toolbar: :content, aria: { label: :registration_terms } %>
|
96
|
+
</div>
|
89
97
|
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
+
<div class="row column">
|
99
|
+
<% if @form.processes_for_select %>
|
100
|
+
<%= form.select :participatory_processes_ids,
|
101
|
+
options_for_select(@form.processes_for_select, selected: processes_selected ),
|
102
|
+
{ include_blank: true },
|
103
|
+
{ multiple: true, class: "chosen-select" } %>
|
104
|
+
<% end %>
|
105
|
+
</div>
|
98
106
|
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
+
<div class="row column">
|
108
|
+
<% if @form.assemblies_for_select %>
|
109
|
+
<%= form.select :assemblies_ids,
|
110
|
+
options_for_select(@form.assemblies_for_select, selected: assemblies_selected ),
|
111
|
+
{ include_blank: true },
|
112
|
+
{ multiple: true, class: "chosen-select" } %>
|
113
|
+
<% end %>
|
114
|
+
</div>
|
107
115
|
|
108
|
-
<div class="row column">
|
109
|
-
<% if @form.consultations_for_select %>
|
110
|
-
<%= form.select :consultations_ids,
|
111
|
-
options_for_select(@form.consultations_for_select, selected: consultations_selected ),
|
112
|
-
{ include_blank: true },
|
113
|
-
{ multiple: true, class: "chosen-select" } %>
|
114
|
-
<% end %>
|
115
116
|
</div>
|
116
|
-
|
117
117
|
</div>
|
118
|
-
</div>
|
119
118
|
|
120
|
-
|
119
|
+
</div>
|
120
|
+
<%= append_javascript_pack_tag "decidim_conferences_admin" %>
|
@@ -1,15 +1,29 @@
|
|
1
|
-
<% add_decidim_page_title(
|
2
|
-
|
3
|
-
|
4
|
-
<
|
5
|
-
<%=
|
1
|
+
<% add_decidim_page_title(t("info", scope: "decidim.admin.menu.conferences_submenu")) %>
|
2
|
+
<% add_decidim_page_title(translated_attribute(current_participatory_space.title)) %>
|
3
|
+
<div class="item_show__header">
|
4
|
+
<h2 class="item_show__header-title">
|
5
|
+
<%= t("info", scope: "decidim.admin.menu.conferences_submenu") %>
|
6
|
+
</h2>
|
7
|
+
</div>
|
6
8
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
9
|
+
<div class="item__edit item__edit-1col">
|
10
|
+
<div class="item__edit-form">
|
11
|
+
<%= decidim_form_for(@form, html: { class: "form form-defaults edit_conference conference_form_admin" }) do |f| %>
|
12
|
+
<%= render partial: "form", object: f %>
|
13
|
+
<div class="item__edit-sticky">
|
14
|
+
<div class="item__edit-sticky-container">
|
15
|
+
<%= f.submit t("conferences.edit.update", scope: "decidim.admin"), class: "button button__sm button__secondary" %>
|
16
|
+
|
17
|
+
<% if allowed_to? :publish, :conference, conference: current_conference %>
|
18
|
+
<% if current_conference.published? %>
|
19
|
+
<%= link_to t("actions.unpublish", scope: "decidim.admin"), conference_publish_path(current_conference), method: :delete, class: "button button__sm button__secondary" %>
|
20
|
+
<% else %>
|
21
|
+
<%= link_to t("actions.publish", scope: "decidim.admin"), conference_publish_path(current_conference), method: :post, class: "button button__sm button__secondary" %>
|
22
|
+
<% end %>
|
23
|
+
<% end %>
|
24
|
+
</div>
|
25
|
+
</div>
|
13
26
|
<% end %>
|
27
|
+
|
14
28
|
</div>
|
15
|
-
|
29
|
+
</div>
|
@@ -1,70 +1,61 @@
|
|
1
1
|
<% add_decidim_page_title(t("decidim.admin.titles.conferences")) %>
|
2
|
-
<div class="card
|
3
|
-
<div class="card-divider">
|
4
|
-
<h2 class="card-title">
|
5
|
-
<%= t "decidim.admin.titles.conferences" %>
|
6
|
-
<%= link_to t("actions.new_conference", scope: "decidim.admin"), new_conference_path, class: "button tiny button--title" if allowed_to? :create, :conference %>
|
7
|
-
</h2>
|
8
|
-
</div>
|
2
|
+
<div class="card" id="conferences">
|
9
3
|
<%= admin_filter_selector %>
|
10
|
-
<div class="
|
11
|
-
<
|
12
|
-
<
|
13
|
-
<
|
4
|
+
<div class="table-scroll">
|
5
|
+
<table class="table-list">
|
6
|
+
<thead>
|
7
|
+
<tr>
|
8
|
+
<th><%= t("models.conference.fields.title", scope: "decidim.admin") %></th>
|
9
|
+
<th><%= sort_link(query, :created_at, t("models.conference.fields.created_at", scope: "decidim.admin"), default_order: :desc) %></th>
|
10
|
+
<th class="table-list__actions"><%= t("models.conference.fields.published", scope: "decidim.admin") %></th>
|
11
|
+
<th></th>
|
12
|
+
</tr>
|
13
|
+
</thead>
|
14
|
+
<tbody>
|
15
|
+
<% @conferences.each do |conference| %>
|
14
16
|
<tr>
|
15
|
-
<
|
16
|
-
|
17
|
-
|
18
|
-
|
17
|
+
<td>
|
18
|
+
<% if conference.promoted? %>
|
19
|
+
<%= icon_with_tooltip "star-s-fill", t("models.assembly.fields.promoted", scope: "decidim.admin") %>
|
20
|
+
<% end %>
|
21
|
+
|
22
|
+
<% if allowed_to? :update, :conference, conference: conference %>
|
23
|
+
<%= link_to translated_attribute(conference.title), edit_conference_path(conference) %><br>
|
24
|
+
<% else %>
|
25
|
+
<%= translated_attribute(conference.title) %>
|
26
|
+
<% end %>
|
27
|
+
</td>
|
28
|
+
<td>
|
29
|
+
<%= l conference.created_at, format: :short %>
|
30
|
+
</td>
|
31
|
+
<td class="table-list__state">
|
32
|
+
<% if conference.published? %>
|
33
|
+
<span class="label !text-sm success"><%= t("conferences.index.published", scope: "decidim.admin") %></span>
|
34
|
+
<% else %>
|
35
|
+
<span class="label !text-sm alert"><%= t("conferences.index.unpublished", scope: "decidim.admin") %></span>
|
36
|
+
<% end %>
|
37
|
+
</td>
|
38
|
+
<td class="table-list__actions">
|
39
|
+
<% if allowed_to? :update, :conference, conference: conference %>
|
40
|
+
<%= icon_link_to "pencil-line", edit_conference_path(conference), t("actions.configure", scope: "decidim.admin"), class: "action-icon--new" %>
|
41
|
+
<% end %>
|
42
|
+
|
43
|
+
<% if allowed_to? :create, :conference, conference: conference %>
|
44
|
+
<%= icon_link_to "file-copy-line", new_conference_copy_path(conference), t("actions.duplicate", scope: "decidim.admin"), class: "action-icon--copy" %>
|
45
|
+
<% end %>
|
46
|
+
|
47
|
+
<% if allowed_to? :preview, :conference, conference: conference %>
|
48
|
+
<%= icon_link_to "eye-line", decidim_conferences.conference_path(conference), t("actions.preview", scope: "decidim.admin"), class: "action-icon--preview", target: "_blank", data: { "external-link": false } %>
|
49
|
+
<% end %>
|
50
|
+
|
51
|
+
<% if allowed_to? :read, :moderation, conference: conference %>
|
52
|
+
<%= icon_link_to "flag-line", moderations_path(conference), t("actions.moderate", scope: "decidim.admin"), class: "action-icon--moderate" %>
|
53
|
+
<% end %>
|
54
|
+
</td>
|
19
55
|
</tr>
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
<tr>
|
24
|
-
<td>
|
25
|
-
<% if conference.promoted? %>
|
26
|
-
<span data-tooltip class="icon-state icon-highlight" data-disable-hover="false" title="<%= t("models.conference.fields.promoted", scope: "decidim.admin") %>">
|
27
|
-
<%= icon "star", aria_label: t("models.conference.fields.promoted", scope: "decidim.admin"), role: "img" %>
|
28
|
-
</span>
|
29
|
-
<% end %>
|
30
|
-
<% if allowed_to? :update, :conference, conference: conference %>
|
31
|
-
<%= link_to translated_attribute(conference.title), edit_conference_path(conference) %><br>
|
32
|
-
<% elsif allowed_to? :read, :component, conference: conference %>
|
33
|
-
<%= link_to translated_attribute(conference.title), components_path(conference) %><br>
|
34
|
-
<% elsif allowed_to? :preview, :conference, conference: conference %>
|
35
|
-
<%= link_to translated_attribute(conference.title), decidim_conferences.conference_path(conference) %><br>
|
36
|
-
<% elsif allowed_to? :read, :moderation, conference: conference %>
|
37
|
-
<%= link_to translated_attribute(conference.title), moderations_path(conference) %><br>
|
38
|
-
<% else %>
|
39
|
-
<%= translated_attribute(conference.title) %>
|
40
|
-
<% end %>
|
41
|
-
</td>
|
42
|
-
<td>
|
43
|
-
<%= l conference.created_at, format: :short %>
|
44
|
-
</td>
|
45
|
-
<td class="table-list__state">
|
46
|
-
<% if conference.published? %>
|
47
|
-
<strong class="text-success"><%= t("conferences.index.published", scope: "decidim.admin") %></strong>
|
48
|
-
<% else %>
|
49
|
-
<strong class="text-alert"><%= t("conferences.index.not_published", scope: "decidim.admin") %></strong>
|
50
|
-
<% end %>
|
51
|
-
</td>
|
52
|
-
<td class="table-list__actions">
|
53
|
-
<% if allowed_to? :create, :conference, conference: conference %>
|
54
|
-
<%= icon_link_to "clipboard", new_conference_copy_path(conference), t("actions.duplicate", scope: "decidim.admin"), class: "action-icon--copy" %>
|
55
|
-
<% end %>
|
56
|
-
<% if allowed_to? :update, :conference, conference: conference %>
|
57
|
-
<%= icon_link_to "pencil", edit_conference_path(conference), t("actions.configure", scope: "decidim.admin"), class: "action-icon--new" %>
|
58
|
-
<% end %>
|
59
|
-
<% if allowed_to? :preview, :conference, conference: conference %>
|
60
|
-
<%= icon_link_to "eye", decidim_conferences.conference_path(conference), t("actions.preview", scope: "decidim.admin"), class: "action-icon--preview" %>
|
61
|
-
<% end %>
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
<% end %>
|
65
|
-
</tbody>
|
66
|
-
</table>
|
67
|
-
<%= paginate @conferences, theme: "decidim" %>
|
68
|
-
</div>
|
56
|
+
<% end %>
|
57
|
+
</tbody>
|
58
|
+
</table>
|
69
59
|
</div>
|
60
|
+
<%= decidim_paginate @conferences %>
|
70
61
|
</div>
|