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,67 +1,63 @@
|
|
1
1
|
<% add_decidim_page_title(t(".title")) %>
|
2
|
-
<div class=
|
3
|
-
<div class="
|
4
|
-
<h2 class="
|
2
|
+
<div class="card" id="registration_types">
|
3
|
+
<div class="item_show__header">
|
4
|
+
<h2 class="item_show__header-title">
|
5
5
|
<%= t(".title") %>
|
6
6
|
<% if allowed_to? :create, :registration_type %>
|
7
|
-
<%= link_to t("actions.
|
7
|
+
<%= link_to t("actions.new_registration_type", scope: "decidim.admin"), new_conference_registration_type_path(current_conference), class: "button button__sm button__secondary new" %>
|
8
8
|
<% end %>
|
9
9
|
</h2>
|
10
10
|
</div>
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
11
|
+
<div class="table-scroll">
|
12
|
+
<table class="table-list">
|
13
|
+
<thead>
|
14
|
+
<tr>
|
15
|
+
<th><%= t("models.registration_type.fields.title", scope: "decidim.admin") %></th>
|
16
|
+
<th><%= t("models.registration_type.fields.price", scope: "decidim.admin") %></th>
|
17
|
+
<th><%= t("models.registration_type.fields.weight", scope: "decidim.admin") %></th>
|
18
|
+
<th><%= t("models.registration_type.fields.conference_meetings", scope: "decidim.admin") %></th>
|
19
|
+
<th><%= t("models.registration_type.fields.registrations_count", scope: "decidim.admin") %></th>
|
20
|
+
<th class="actions"></th>
|
21
|
+
</tr>
|
22
|
+
</thead>
|
23
|
+
<tbody>
|
24
|
+
<% @registration_types.each do |registration_type| %>
|
16
25
|
<tr>
|
17
|
-
<
|
18
|
-
|
19
|
-
|
20
|
-
<
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
</td>
|
37
|
-
<td>
|
38
|
-
<%= registration_type.conference_meeting_registration_types.count %>
|
39
|
-
</td>
|
40
|
-
<td>
|
41
|
-
<%= registration_type.conference_registrations.count %>
|
42
|
-
</td>
|
43
|
-
<td class="table-list__actions">
|
44
|
-
<% if allowed_to?(:update, :registration_type, registration_type: registration_type) && !registration_type.conference_registrations.any? %>
|
45
|
-
<%= icon_link_to "pencil", edit_conference_registration_type_path(current_conference, registration_type), t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit" %>
|
46
|
-
<% end %>
|
26
|
+
<td>
|
27
|
+
<%= translated_attribute(registration_type.title) %>
|
28
|
+
</td>
|
29
|
+
<td>
|
30
|
+
<%= registration_type.price %>
|
31
|
+
</td>
|
32
|
+
<td>
|
33
|
+
<%= registration_type.weight %>
|
34
|
+
</td>
|
35
|
+
<td>
|
36
|
+
<%= registration_type.conference_meeting_registration_types.count %>
|
37
|
+
</td>
|
38
|
+
<td>
|
39
|
+
<%= registration_type.conference_registrations.count %>
|
40
|
+
</td>
|
41
|
+
<td class="table-list__actions">
|
42
|
+
<% if allowed_to?(:update, :registration_type, registration_type: registration_type) && !registration_type.conference_registrations.any? %>
|
43
|
+
<%= icon_link_to "pencil-line", edit_conference_registration_type_path(current_conference, registration_type), t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit" %>
|
44
|
+
<% end %>
|
47
45
|
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
<% end %>
|
46
|
+
<% if allowed_to?(:update, :registration_type, registration_type: registration_type) %>
|
47
|
+
<% if registration_type.published? %>
|
48
|
+
<%= icon_link_to "close-circle-line", conference_registration_type_publish_path(current_conference, registration_type), t("actions.unpublish", scope: "decidim.admin"), class: "action-icon--unpublish", method: :delete %>
|
49
|
+
<% else %>
|
50
|
+
<%= icon_link_to "check-line", conference_registration_type_publish_path(current_conference, registration_type), t("actions.publish", scope: "decidim.admin"), class: "action-icon--publish", method: :post %>
|
54
51
|
<% end %>
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
<%= paginate @registration_types, theme: "decidim" %>
|
65
|
-
</div>
|
52
|
+
<% end %>
|
53
|
+
<% if allowed_to?(:destroy, :registration_type, registration_type: registration_type) && !registration_type.conference_registrations.any? %>
|
54
|
+
<%= icon_link_to "delete-bin-line", conference_registration_type_path(current_conference, registration_type), t("actions.destroy", scope: "decidim.admin"), class: "action-icon--remove", method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %>
|
55
|
+
<% end %>
|
56
|
+
</td>
|
57
|
+
</tr>
|
58
|
+
<% end %>
|
59
|
+
</tbody>
|
60
|
+
</table>
|
66
61
|
</div>
|
67
62
|
</div>
|
63
|
+
<%= decidim_paginate @registration_types %>
|
@@ -1,8 +1,18 @@
|
|
1
1
|
<% add_decidim_page_title(t("registration_types.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("registration_types.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_registration_type" }) 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("registration_types.new.create", scope: "decidim.admin"), class: "button button__sm button__secondary" %>
|
14
|
+
</div>
|
15
|
+
</div>
|
16
|
+
<% end %>
|
7
17
|
</div>
|
8
|
-
|
18
|
+
</div>
|
data/app/views/decidim/conferences/admin/send_conference_diploma_mailer/diploma_user.html.erb
CHANGED
@@ -8,9 +8,9 @@
|
|
8
8
|
<div class="diploma__name small-10 small-centered">
|
9
9
|
<h2><strong><%= translated_attribute(@conference.title) %></strong></h2>
|
10
10
|
<h3><%= t("decidim.conferences.admin.send_conference_diploma_mailer.diploma_user.certificate_of_attendance") %></h3>
|
11
|
-
<p><%= t("decidim.conferences.admin.send_conference_diploma_mailer.diploma_user.certificate_of_attendance_description", user: @user.name, title: translated_attribute(@conference.title), location: @conference.location, start: l(@conference.start_date, format: :decidim_short), end: l(@conference.end_date, format: :decidim_short)
|
11
|
+
<p><%= t("decidim.conferences.admin.send_conference_diploma_mailer.diploma_user.certificate_of_attendance_description", user: @user.name, title: translated_attribute(@conference.title), location: @conference.location, start: l(@conference.start_date, format: :decidim_short), end: l(@conference.end_date, format: :decidim_short) ).html_safe %></p>
|
12
12
|
</div>
|
13
|
-
<hr class="
|
13
|
+
<hr class="mt-m mb-m">
|
14
14
|
<div class="diploma__attendance">
|
15
15
|
<strong><%= t("decidim.conferences.admin.send_conference_diploma_mailer.diploma_user.attendance_verified_by") %></strong>
|
16
16
|
<div>
|
@@ -1,30 +1,27 @@
|
|
1
1
|
<% if meetings.present? %>
|
2
|
-
<div class="
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
</div>
|
22
|
-
<% end %>
|
23
|
-
<div class="tabs-content" data-tabs-content="conference-row-<%= seed %>-tabs">
|
2
|
+
<div class="conference__program-item">
|
3
|
+
<div class="conference__program-time">
|
4
|
+
<%= start_time.to_s(:time) %> - <%= end_time.to_s(:time) %>
|
5
|
+
</div>
|
6
|
+
<div data-component="accordion" data-multiselectable="false" data-collapsible="false">
|
7
|
+
<% categories = meetings.map(&:category).uniq %>
|
8
|
+
<% seed = SecureRandom.hex(3).to_s %>
|
9
|
+
<% if categories.present? %>
|
10
|
+
<ul class="conference__program-category-container">
|
11
|
+
<% categories.each_with_index do |category, i| %>
|
12
|
+
<li>
|
13
|
+
<button id="conference-item-trigger-<%= seed %>-tab<%= i %>" class="conference__program-category" data-controls="conference-item-panel-<%= seed %>-tab<%= i %>" data-open="<%= "true" if i.zero? %>">
|
14
|
+
<%= category.present? ? translated_attribute(category.name) : "other" %>
|
15
|
+
</button>
|
16
|
+
</li>
|
17
|
+
<% end %>
|
18
|
+
</ul>
|
19
|
+
<% end %>
|
20
|
+
|
24
21
|
<% meetings.group_by(&:category).each_with_index do |categories_block, i| %>
|
25
|
-
<div
|
22
|
+
<div id="conference-item-panel-<%= seed %>-tab<%= i %>" class="conference__program-category-content">
|
26
23
|
<% categories_block.last.each do |meeting| %>
|
27
|
-
<%= render partial: "program_meeting", locals: {
|
24
|
+
<%= render partial: "program_meeting", locals: { meeting: } %>
|
28
25
|
<% end %>
|
29
26
|
</div>
|
30
27
|
<% end %>
|
@@ -1,67 +1,33 @@
|
|
1
|
-
|
2
|
-
<
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
<div class="
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
</div>
|
20
|
-
<div class="column medium-10">
|
21
|
-
<%= cell("decidim/conferences/conference_speaker", meeting, list: speakers, size: 3).(:speakers_list) %>
|
22
|
-
</div>
|
23
|
-
</div>
|
24
|
-
<% end %>
|
1
|
+
<%= link_to resource_locator(meeting).path, class: "", data: { "conference-program-title": "" } do %>
|
2
|
+
<h2 class="h3 text-secondary"><%= decidim_sanitize(present(meeting).title) %></h2>
|
3
|
+
<% end %>
|
4
|
+
|
5
|
+
<div class="conference__program-attribute-container">
|
6
|
+
<% conference_meeting = meeting.becomes(Decidim::ConferenceMeeting) %>
|
7
|
+
<% speakers = conference_meeting.conference_speakers %>
|
8
|
+
<% if speakers.any? %>
|
9
|
+
<div class="conference__program-attribute">
|
10
|
+
<div>
|
11
|
+
<% speakers.each do |speaker| %>
|
12
|
+
<%= cell("decidim/author", present(speaker)) %>
|
13
|
+
<% end %>
|
14
|
+
</div>
|
15
|
+
</div>
|
16
|
+
<% end %>
|
17
|
+
|
18
|
+
<%= cell("decidim/address", meeting) if translated_attribute(meeting.location).present? %>
|
25
19
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
<span> <%= translated_attribute meeting.location_hints %></span>
|
37
|
-
<% end %>
|
38
|
-
</div>
|
20
|
+
<% if meeting.closing_visible? && (meeting.video_url.presence || meeting.audio_url.presence) %>
|
21
|
+
<div class="conference__program-attribute">
|
22
|
+
<%= icon "link", class: "w-3.5 h-3.5 text-gray fill-current" %>
|
23
|
+
<div class="conference__program-attribute-url">
|
24
|
+
<% if meeting.video_url.presence %>
|
25
|
+
<%= link_to meeting.video_url, meeting.video_url, target: "_blank" %>
|
26
|
+
<% end %>
|
27
|
+
<% if meeting.audio_url.presence %>
|
28
|
+
<%= link_to meeting.audio_url, meeting.audio_url, target: "_blank" %>
|
29
|
+
<% end %>
|
39
30
|
</div>
|
40
|
-
<% if meeting.description.present? %>
|
41
|
-
<div class="row">
|
42
|
-
<div class="column medium-2">
|
43
|
-
<strong><%= t(".content") %></strong>
|
44
|
-
</div>
|
45
|
-
<div class="column medium-10">
|
46
|
-
<%= decidim_sanitize_editor(present(meeting).description(links: true)) %>
|
47
|
-
</div>
|
48
|
-
</div>
|
49
|
-
<% end %>
|
50
|
-
<% if meeting.closing_visible? && (meeting.video_url.presence || meeting.audio_url.presence) %>
|
51
|
-
<div class="row">
|
52
|
-
<div class="column medium-2">
|
53
|
-
<strong><%= t(".streaming") %></strong>
|
54
|
-
</div>
|
55
|
-
<div class="column medium-10">
|
56
|
-
<% if meeting.video_url.presence %>
|
57
|
-
<u><%= link_to meeting.video_url, meeting.video_url, target: "_blank" %></u>
|
58
|
-
<% end %>
|
59
|
-
<% if meeting.audio_url.presence %>
|
60
|
-
<u><%= link_to meeting.audio_url, meeting.audio_url, target: "_blank" %></u>
|
61
|
-
<% end %>
|
62
|
-
</div>
|
63
|
-
</div>
|
64
|
-
<% end %>
|
65
31
|
</div>
|
66
|
-
|
32
|
+
<% end %>
|
67
33
|
</div>
|
@@ -5,50 +5,38 @@ if respond_to?(:meeting_component) && meeting_component
|
|
5
5
|
:read,
|
6
6
|
:component,
|
7
7
|
component: meeting_component,
|
8
|
-
current_participatory_space:
|
8
|
+
current_participatory_space:
|
9
9
|
)
|
10
10
|
end
|
11
11
|
%>
|
12
12
|
<% add_decidim_meta_tags(title: t("conference_program.index.title", scope: "decidim")) %>
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
data-deep-link="true"
|
25
|
-
data-update-history="true"
|
26
|
-
data-deep-link-smudge="true"
|
27
|
-
data-deep-link-smudge-delay="500"
|
28
|
-
data-tabs>
|
29
|
-
<% meeting_days.each_with_index do |day, i| %>
|
30
|
-
<li class="tabs-title <%= "is-active" if i == 0 %>">
|
31
|
-
<!-- Wrap the anchor inside a div to keep correct button styling -->
|
32
|
-
<div>
|
33
|
-
<a href="#conference-day-tab-<%= i %>" class="button button--nomargin button--sc hollow">
|
34
|
-
<%= l day, format: :decidim_with_day_and_month_name %>
|
35
|
-
</a>
|
36
|
-
</div>
|
37
|
-
</li>
|
38
|
-
<% end %>
|
39
|
-
</ul>
|
40
|
-
<% end %>
|
41
|
-
</div>
|
42
|
-
</div>
|
43
|
-
<div class="tabs-content" data-tabs-content="conference-day-tabs">
|
13
|
+
|
14
|
+
<%# NOTE: this page does not use a regular layout %>
|
15
|
+
<main class="container">
|
16
|
+
<h1 class="title-decorator my-12">
|
17
|
+
<span class="not-sr-only"><%= t(".program") %></span>
|
18
|
+
<span class="sr-only"><%= t(".program") %> (<%= translated_attribute current_participatory_space.title %>)</span>
|
19
|
+
</h1>
|
20
|
+
|
21
|
+
<div data-component="accordion" data-multiselectable="false" data-collapsible="false">
|
22
|
+
<% if meeting_days.any? %>
|
23
|
+
<ul class="conference__program-selector">
|
44
24
|
<% meeting_days.each_with_index do |day, i| %>
|
45
|
-
<
|
46
|
-
|
47
|
-
<%=
|
48
|
-
|
49
|
-
</
|
25
|
+
<li>
|
26
|
+
<button id="conference-trigger<%= i %>" class="button button__sm md:button__lg button__transparent-secondary" data-controls="conference-panel<%= i %>" data-open="<%= "true" if i.zero? %>">
|
27
|
+
<%= l day, format: :decidim_with_day_and_month_name %>
|
28
|
+
</button>
|
29
|
+
</li>
|
30
|
+
<% end %>
|
31
|
+
</ul>
|
32
|
+
<% end %>
|
33
|
+
|
34
|
+
<% meeting_days.each_with_index do |day, i| %>
|
35
|
+
<div id="conference-panel<%= i %>" class="conference__program" data-conference-program-day>
|
36
|
+
<% meetings_for_day(meeting_component, day, current_user).each do |meeting_days, meetings| %>
|
37
|
+
<%= render partial: "program_item", locals: { start_time: meeting_days[:start_time], end_time: meeting_days[:end_time], meetings: meetings.pluck(:meeting) } %>
|
50
38
|
<% end %>
|
51
39
|
</div>
|
52
|
-
|
40
|
+
<% end %>
|
53
41
|
</div>
|
54
|
-
</
|
42
|
+
</main>
|
@@ -9,11 +9,17 @@ edit_link(
|
|
9
9
|
)
|
10
10
|
%>
|
11
11
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
12
|
+
<%# NOTE: this page does not use a regular layout %>
|
13
|
+
<main class="container">
|
14
|
+
|
15
|
+
<section id="conference_speakers-grid">
|
16
|
+
<h1 class="title-decorator my-12">
|
17
|
+
<span class="not-sr-only"><%= t("decidim.conferences.conference_speakers.index.speakers", count: "") %></span>
|
18
|
+
<span class="sr-only"><%= t("decidim.conferences.conference_speakers.index.speakers", count: "") %> (<%= translated_attribute current_participatory_space.title %>)</span>
|
19
|
+
</h1>
|
20
|
+
<div class="conference__speaker__container">
|
16
21
|
<%= render(collection) %>
|
17
22
|
</div>
|
18
|
-
</
|
19
|
-
|
23
|
+
</section>
|
24
|
+
|
25
|
+
</main>
|
@@ -0,0 +1,33 @@
|
|
1
|
+
<section style="background-image:url('<%= current_participatory_space.attached_uploader(:banner_image).path %>');" data-conference-hero>
|
2
|
+
<div class="conference__hero">
|
3
|
+
<div class="conference__hero-text">
|
4
|
+
<h1 class="h1 text-5xl">
|
5
|
+
<%= translated_attribute(current_participatory_space.title) %>
|
6
|
+
</h1>
|
7
|
+
<p class="conference__hero-slogan">
|
8
|
+
<% if current_participatory_space.hashtag.present? %>
|
9
|
+
<span>
|
10
|
+
<%= link_to "##{current_participatory_space.hashtag}", twitter_hashtag_url(current_participatory_space.hashtag), target: "_blank" %>
|
11
|
+
</span>
|
12
|
+
<% end %>
|
13
|
+
<%= translated_attribute(current_participatory_space.slogan) %>
|
14
|
+
</p>
|
15
|
+
<p class="conference__hero-location">
|
16
|
+
<%= participatory_space_helpers.render_date(current_participatory_space) %>
|
17
|
+
<%= " @ " + current_participatory_space.location.to_s if current_participatory_space.location %>
|
18
|
+
</p>
|
19
|
+
<% if current_participatory_space.registrations_enabled? %>
|
20
|
+
<% if current_participatory_space.has_registration_for?(current_user) %>
|
21
|
+
<%= link_to t("layouts.decidim.conference_hero.manage_registration"), decidim_conferences.conference_registration_types_path(current_participatory_space), class: "button button__lg button__primary" %>
|
22
|
+
<% else %>
|
23
|
+
<%= link_to t("layouts.decidim.conference_hero.register"), decidim_conferences.conference_registration_types_path(current_participatory_space), class: "button button__lg button__secondary" %>
|
24
|
+
<% end %>
|
25
|
+
<% end %>
|
26
|
+
|
27
|
+
<% component_meeting = current_participatory_space.components.where(manifest_name: "meetings").published.first || self.try(:current_component) %>
|
28
|
+
<% if component_meeting.present? %>
|
29
|
+
<%= link_to translated_attribute(component_meeting.name), decidim_conferences.conference_conference_program_path(current_participatory_space, id: component_meeting.id), class: "button button__lg button__transparent" %>
|
30
|
+
<% end %>
|
31
|
+
</div>
|
32
|
+
</div>
|
33
|
+
</section>
|
@@ -1,15 +1,12 @@
|
|
1
1
|
<% if conference.partners.any? %>
|
2
|
-
|
3
|
-
|
4
|
-
<
|
5
|
-
<
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
</section>
|
13
|
-
<% end %>
|
14
|
-
</div>
|
2
|
+
<% conference.partners.group_by(&:partner_type).each do |partner_type, partners| %>
|
3
|
+
<section id="conference-partners-<%= partner_type %>" class="content-block">
|
4
|
+
<h2 class="h2 decorator"><%= t(".#{partner_type.pluralize}") %></h2>
|
5
|
+
<div class="conference__grid">
|
6
|
+
<% partners.each do |partner| %>
|
7
|
+
<%= cell "decidim/conferences/partner", partner %>
|
8
|
+
<% end %>
|
9
|
+
</div>
|
10
|
+
</section>
|
11
|
+
<% end %>
|
15
12
|
<% end %>
|
@@ -8,18 +8,28 @@ edit_link(
|
|
8
8
|
)
|
9
9
|
%>
|
10
10
|
|
11
|
-
|
11
|
+
<% content_for :aside do %>
|
12
|
+
<h1 class="title-decorator"><%= t("decidim.conferences.index.title") %></h1>
|
13
|
+
<% end %>
|
14
|
+
|
15
|
+
<%= render layout:"layouts/decidim/shared/layout_two_col" do %>
|
16
|
+
<%= participatory_space_floating_help %>
|
17
|
+
|
12
18
|
<% if promoted_conferences.any? %>
|
13
|
-
<section id="highlighted-conferences" class="
|
14
|
-
<
|
15
|
-
|
19
|
+
<section id="highlighted-conferences" class="layout-main__section layout-main__heading">
|
20
|
+
<h2 class="h3 decorator"><%= t("conferences.index.promoted_conferences", scope: "layouts.decidim") %></h2>
|
21
|
+
<% promoted_conferences.each do |promoted_conference| %>
|
22
|
+
<%= card_for promoted_conference, highlight: true %>
|
23
|
+
<% end %>
|
16
24
|
</section>
|
17
25
|
<% end %>
|
18
26
|
|
19
|
-
<section id="conferences-grid" class="
|
20
|
-
|
21
|
-
<div class="
|
27
|
+
<section id="conferences-grid" class="layout-main__section layout-main__heading">
|
28
|
+
<h2 class="h3 decorator"><%= t("conferences.order_by_conferences.conferences", scope: "layouts.decidim", count: conferences.size) %></h2>
|
29
|
+
<div class="card__grid-grid">
|
22
30
|
<%= render(collection) %>
|
23
31
|
</div>
|
32
|
+
|
33
|
+
<%= decidim_paginate collection %>
|
24
34
|
</section>
|
25
35
|
<% end %>
|