decidim-conferences 0.27.5 → 0.28.0.rc4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (228) hide show
  1. checksums.yaml +4 -4
  2. data/app/cells/decidim/conferences/conference_cell.rb +9 -4
  3. data/app/cells/decidim/conferences/conference_dropdown_metadata_cell.rb +19 -0
  4. data/app/cells/decidim/conferences/conference_g_cell.rb +23 -0
  5. data/app/cells/decidim/conferences/conference_metadata_cell.rb +21 -0
  6. data/app/cells/decidim/conferences/conference_s_cell.rb +13 -0
  7. data/app/cells/decidim/conferences/conference_speaker/show.erb +44 -58
  8. data/app/cells/decidim/conferences/conference_speaker_cell.rb +3 -13
  9. data/app/cells/decidim/conferences/content_blocks/highlighted_conferences_cell.rb +15 -14
  10. data/app/cells/decidim/conferences/content_blocks/highlighted_conferences_settings_form/show.erb +3 -0
  11. data/app/cells/decidim/conferences/content_blocks/highlighted_conferences_settings_form_cell.rb +19 -0
  12. data/app/cells/decidim/conferences/linked_participatory_spaces/show.erb +6 -8
  13. data/app/cells/decidim/conferences/linked_participatory_spaces_cell.rb +1 -10
  14. data/app/cells/decidim/conferences/media_link/show.erb +6 -8
  15. data/app/cells/decidim/conferences/partner/image.erb +3 -0
  16. data/app/cells/decidim/conferences/partner/show.erb +8 -8
  17. data/app/cells/decidim/conferences/partner/text.erb +1 -0
  18. data/app/cells/decidim/conferences/partner_cell.rb +4 -2
  19. data/app/cells/decidim/conferences/registration_type/join_conference.erb +15 -12
  20. data/app/cells/decidim/conferences/registration_type/registration_confirm.erb +12 -12
  21. data/app/cells/decidim/conferences/registration_type/show.erb +11 -14
  22. data/app/cells/decidim/conferences/registration_type_cell.rb +3 -3
  23. data/app/commands/decidim/conferences/admin/copy_conference.rb +1 -1
  24. data/app/commands/decidim/conferences/admin/create_conference.rb +2 -11
  25. data/app/commands/decidim/conferences/admin/create_conference_speaker.rb +2 -2
  26. data/app/commands/decidim/conferences/admin/create_media_link.rb +2 -2
  27. data/app/commands/decidim/conferences/admin/create_partner.rb +2 -2
  28. data/app/commands/decidim/conferences/admin/create_registration_type.rb +2 -2
  29. data/app/commands/decidim/conferences/admin/destroy_conference_speaker.rb +2 -2
  30. data/app/commands/decidim/conferences/admin/destroy_media_link.rb +1 -1
  31. data/app/commands/decidim/conferences/admin/destroy_partner.rb +3 -3
  32. data/app/commands/decidim/conferences/admin/destroy_registration_type.rb +1 -1
  33. data/app/commands/decidim/conferences/admin/invite_user_to_join_conference.rb +5 -5
  34. data/app/commands/decidim/conferences/admin/publish_conference.rb +9 -26
  35. data/app/commands/decidim/conferences/admin/send_conference_diplomas.rb +1 -1
  36. data/app/commands/decidim/conferences/admin/update_conference.rb +2 -11
  37. data/app/commands/decidim/conferences/admin/update_conference_speaker.rb +1 -1
  38. data/app/commands/decidim/conferences/admin/update_media_link.rb +1 -1
  39. data/app/commands/decidim/conferences/admin/update_partner.rb +1 -1
  40. data/app/commands/decidim/conferences/admin/update_registration_type.rb +1 -1
  41. data/app/commands/decidim/conferences/decline_invitation.rb +1 -1
  42. data/app/commands/decidim/conferences/join_conference.rb +5 -5
  43. data/app/constraints/decidim/conferences/current_component.rb +2 -2
  44. data/app/constraints/decidim/conferences/current_conference.rb +2 -2
  45. data/app/controllers/concerns/decidim/conferences/admin/conference_context.rb +1 -1
  46. data/app/controllers/decidim/conferences/admin/concerns/conference_admin.rb +2 -2
  47. data/app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb +6 -1
  48. data/app/controllers/decidim/conferences/admin/conference_attachments_controller.rb +5 -0
  49. data/app/controllers/decidim/conferences/admin/conference_invites_controller.rb +2 -1
  50. data/app/controllers/decidim/conferences/admin/conference_publications_controller.rb +10 -28
  51. data/app/controllers/decidim/conferences/admin/conference_registrations_controller.rb +1 -1
  52. data/app/controllers/decidim/conferences/admin/conference_user_roles_controller.rb +8 -90
  53. data/app/controllers/decidim/conferences/admin/conferences_controller.rb +2 -0
  54. data/app/controllers/decidim/conferences/admin/diplomas_controller.rb +1 -1
  55. data/app/controllers/decidim/conferences/admin/exports_controller.rb +1 -1
  56. data/app/controllers/decidim/conferences/admin/imports_controller.rb +1 -1
  57. data/app/controllers/decidim/conferences/admin/moderations/reports_controller.rb +1 -1
  58. data/app/controllers/decidim/conferences/admin/moderations_controller.rb +1 -1
  59. data/app/controllers/decidim/conferences/application_controller.rb +6 -0
  60. data/app/controllers/decidim/conferences/conference_registrations_controller.rb +3 -3
  61. data/app/controllers/decidim/conferences/conferences_controller.rb +9 -2
  62. data/app/events/decidim/conferences/conference_registration_notification_event.rb +3 -3
  63. data/app/events/decidim/conferences/conference_registrations_enabled_event.rb +1 -1
  64. data/app/events/decidim/conferences/conference_registrations_over_percentage_event.rb +1 -1
  65. data/app/events/decidim/conferences/conference_role_assigned_event.rb +6 -6
  66. data/app/forms/decidim/conferences/admin/conference_copy_form.rb +1 -1
  67. data/app/forms/decidim/conferences/admin/conference_form.rb +4 -15
  68. data/app/forms/decidim/conferences/admin/conference_user_role_form.rb +2 -17
  69. data/app/helpers/decidim/conferences/admin/conferences_helper.rb +0 -4
  70. data/app/helpers/decidim/conferences/conference_helper.rb +55 -0
  71. data/app/helpers/decidim/conferences/conference_program_helper.rb +1 -1
  72. data/app/helpers/decidim/conferences/media_attachments_helper.rb +0 -10
  73. data/app/helpers/decidim/conferences/partners_helper.rb +3 -1
  74. data/app/mailers/decidim/conferences/admin/invite_join_conference_mailer.rb +1 -1
  75. data/app/mailers/decidim/conferences/admin/send_conference_diploma_mailer.rb +1 -1
  76. data/app/mailers/decidim/conferences/conference_registration_mailer.rb +2 -2
  77. data/app/models/decidim/conference.rb +4 -4
  78. data/app/models/decidim/conference_user_role.rb +6 -34
  79. data/app/packs/entrypoints/decidim_conferences.js +5 -0
  80. data/app/packs/src/decidim/conferences/admin/conferences.js +6 -6
  81. data/app/packs/stylesheets/decidim/conferences/_conference.scss +102 -0
  82. data/app/packs/stylesheets/decidim/conferences/_media.scss +13 -0
  83. data/app/packs/stylesheets/decidim/conferences/_program.scss +43 -0
  84. data/app/packs/stylesheets/decidim/conferences/_registration.scss +39 -0
  85. data/app/packs/stylesheets/decidim/conferences/_speaker.scss +83 -0
  86. data/app/packs/stylesheets/decidim/conferences/conferences.scss +5 -3
  87. data/app/permissions/decidim/conferences/permissions.rb +2 -2
  88. data/app/presenters/decidim/conference_speaker_presenter.rb +1 -1
  89. data/app/presenters/decidim/conferences/admin_log/conference_invite_presenter.rb +2 -2
  90. data/app/presenters/decidim/conferences/admin_log/conference_presenter.rb +2 -2
  91. data/app/presenters/decidim/conferences/admin_log/conference_registration_presenter.rb +2 -2
  92. data/app/presenters/decidim/conferences/admin_log/conference_speaker_presenter.rb +2 -2
  93. data/app/presenters/decidim/conferences/admin_log/conference_user_role_presenter.rb +2 -2
  94. data/app/presenters/decidim/conferences/admin_log/media_link_presenter.rb +2 -2
  95. data/app/presenters/decidim/conferences/admin_log/partner_presenter.rb +2 -2
  96. data/app/presenters/decidim/conferences/admin_log/registration_type_presenter.rb +2 -2
  97. data/app/presenters/decidim/conferences/conference_stats_presenter.rb +3 -28
  98. data/app/queries/decidim/conferences/admin/admin_users.rb +4 -4
  99. data/app/queries/decidim/conferences/conferences_with_user_role.rb +2 -2
  100. data/app/queries/decidim/conferences/organization_conferences.rb +1 -1
  101. data/app/queries/decidim/conferences/organization_published_conferences.rb +1 -1
  102. data/app/views/decidim/conferences/admin/conference_copies/_form.html.erb +22 -28
  103. data/app/views/decidim/conferences/admin/conference_copies/new.html.erb +16 -5
  104. data/app/views/decidim/conferences/admin/conference_invites/_form.html.erb +17 -19
  105. data/app/views/decidim/conferences/admin/conference_invites/index.html.erb +69 -74
  106. data/app/views/decidim/conferences/admin/conference_invites/new.html.erb +21 -17
  107. data/app/views/decidim/conferences/admin/conference_registrations/index.html.erb +45 -45
  108. data/app/views/decidim/conferences/admin/conference_speakers/_form.html.erb +42 -46
  109. data/app/views/decidim/conferences/admin/conference_speakers/edit.html.erb +16 -6
  110. data/app/views/decidim/conferences/admin/conference_speakers/index.html.erb +52 -55
  111. data/app/views/decidim/conferences/admin/conference_speakers/new.html.erb +16 -6
  112. data/app/views/decidim/conferences/admin/conference_user_roles/_form.html.erb +14 -18
  113. data/app/views/decidim/conferences/admin/conference_user_roles/edit.html.erb +16 -6
  114. data/app/views/decidim/conferences/admin/conference_user_roles/index.html.erb +53 -56
  115. data/app/views/decidim/conferences/admin/conference_user_roles/new.html.erb +16 -6
  116. data/app/views/decidim/conferences/admin/conferences/_form.html.erb +88 -88
  117. data/app/views/decidim/conferences/admin/conferences/edit.html.erb +26 -12
  118. data/app/views/decidim/conferences/admin/conferences/index.html.erb +55 -64
  119. data/app/views/decidim/conferences/admin/conferences/new.html.erb +16 -8
  120. data/app/views/decidim/conferences/admin/diplomas/_form.html.erb +18 -24
  121. data/app/views/decidim/conferences/admin/diplomas/edit.html.erb +19 -5
  122. data/app/views/decidim/conferences/admin/media_links/_form.html.erb +15 -19
  123. data/app/views/decidim/conferences/admin/media_links/edit.html.erb +16 -6
  124. data/app/views/decidim/conferences/admin/media_links/index.html.erb +37 -40
  125. data/app/views/decidim/conferences/admin/media_links/new.html.erb +16 -6
  126. data/app/views/decidim/conferences/admin/partners/_form.html.erb +18 -22
  127. data/app/views/decidim/conferences/admin/partners/edit.html.erb +16 -6
  128. data/app/views/decidim/conferences/admin/partners/index.html.erb +45 -48
  129. data/app/views/decidim/conferences/admin/partners/new.html.erb +16 -6
  130. data/app/views/decidim/conferences/admin/registration_types/_form.html.erb +23 -23
  131. data/app/views/decidim/conferences/admin/registration_types/edit.html.erb +16 -6
  132. data/app/views/decidim/conferences/admin/registration_types/index.html.erb +52 -56
  133. data/app/views/decidim/conferences/admin/registration_types/new.html.erb +16 -6
  134. data/app/views/decidim/conferences/admin/send_conference_diploma_mailer/diploma_user.html.erb +2 -2
  135. data/app/views/decidim/conferences/conference_program/_program_item.html.erb +21 -24
  136. data/app/views/decidim/conferences/conference_program/_program_meeting.html.erb +29 -63
  137. data/app/views/decidim/conferences/conference_program/show.html.erb +27 -39
  138. data/app/views/decidim/conferences/conference_speakers/index.html.erb +12 -6
  139. data/app/views/decidim/conferences/conferences/_conference_hero.html.erb +33 -0
  140. data/app/views/decidim/conferences/conferences/_partners.html.erb +10 -13
  141. data/app/views/decidim/conferences/conferences/index.html.erb +17 -7
  142. data/app/views/decidim/conferences/conferences/show.html.erb +84 -50
  143. data/app/views/decidim/conferences/media/index.html.erb +33 -19
  144. data/app/views/decidim/conferences/registration_types/index.html.erb +25 -17
  145. data/app/views/layouts/decidim/admin/conference.html.erb +12 -14
  146. data/app/views/layouts/decidim/admin/conferences.html.erb +13 -8
  147. data/app/views/layouts/decidim/conference.html.erb +7 -17
  148. data/app/views/layouts/decidim/conferences/_conference_nav_item.html.erb +6 -0
  149. data/app/views/layouts/decidim/conferences/application.html.erb +6 -0
  150. data/config/assets.rb +1 -1
  151. data/config/initializers/wicked_pdf.rb +1 -1
  152. data/config/locales/ar.yml +3 -62
  153. data/config/locales/bg.yml +0 -1
  154. data/config/locales/ca.yml +33 -53
  155. data/config/locales/cs.yml +35 -53
  156. data/config/locales/de.yml +33 -53
  157. data/config/locales/el.yml +11 -51
  158. data/config/locales/en.yml +34 -54
  159. data/config/locales/es-MX.yml +32 -52
  160. data/config/locales/es-PY.yml +32 -52
  161. data/config/locales/es.yml +32 -52
  162. data/config/locales/eu.yml +33 -58
  163. data/config/locales/fi-plain.yml +32 -52
  164. data/config/locales/fi.yml +31 -51
  165. data/config/locales/fr-CA.yml +31 -51
  166. data/config/locales/fr.yml +31 -51
  167. data/config/locales/ga-IE.yml +0 -17
  168. data/config/locales/gl.yml +3 -62
  169. data/config/locales/hu.yml +15 -51
  170. data/config/locales/id-ID.yml +3 -57
  171. data/config/locales/it.yml +4 -62
  172. data/config/locales/ja.yml +34 -53
  173. data/config/locales/lb.yml +1 -55
  174. data/config/locales/lt.yml +14 -52
  175. data/config/locales/lv.yml +1 -60
  176. data/config/locales/nl.yml +3 -62
  177. data/config/locales/no.yml +1 -62
  178. data/config/locales/pl.yml +1 -78
  179. data/config/locales/pt-BR.yml +1 -63
  180. data/config/locales/pt.yml +2 -63
  181. data/config/locales/ro-RO.yml +13 -50
  182. data/config/locales/sk.yml +1 -60
  183. data/config/locales/sl.yml +0 -2
  184. data/config/locales/sr-CS.yml +0 -5
  185. data/config/locales/sv.yml +7 -62
  186. data/config/locales/tr-TR.yml +13 -61
  187. data/config/locales/zh-CN.yml +3 -60
  188. data/config/locales/zh-TW.yml +6 -47
  189. data/db/migrate/20221116084952_add_weight_to_conferences.rb +7 -0
  190. data/lib/decidim/conferences/admin_engine.rb +14 -138
  191. data/lib/decidim/conferences/content_blocks/registry_manager.rb +21 -0
  192. data/lib/decidim/conferences/engine.rb +17 -15
  193. data/lib/decidim/conferences/menu.rb +182 -0
  194. data/lib/decidim/conferences/participatory_space.rb +6 -200
  195. data/lib/decidim/conferences/query_extensions.rb +2 -2
  196. data/lib/decidim/conferences/seeds.rb +153 -0
  197. data/lib/decidim/conferences/test/factories.rb +10 -9
  198. data/lib/decidim/conferences/version.rb +1 -1
  199. metadata +44 -47
  200. data/app/cells/decidim/conferences/conference_address/show.erb +0 -11
  201. data/app/cells/decidim/conferences/conference_address_cell.rb +0 -11
  202. data/app/cells/decidim/conferences/conference_m/footer.erb +0 -9
  203. data/app/cells/decidim/conferences/conference_m/tags.erb +0 -1
  204. data/app/cells/decidim/conferences/conference_m_cell.rb +0 -42
  205. data/app/cells/decidim/conferences/content_blocks/highlighted_conferences/show.erb +0 -30
  206. data/app/cells/decidim/conferences/photo/show.erb +0 -26
  207. data/app/cells/decidim/conferences/photo_cell.rb +0 -41
  208. data/app/cells/decidim/conferences/photos_list/show.erb +0 -8
  209. data/app/cells/decidim/conferences/photos_list_cell.rb +0 -18
  210. data/app/commands/decidim/conferences/admin/create_conference_admin.rb +0 -114
  211. data/app/commands/decidim/conferences/admin/destroy_conference_admin.rb +0 -58
  212. data/app/commands/decidim/conferences/admin/notify_role_assigned_to_conference.rb +0 -22
  213. data/app/commands/decidim/conferences/admin/unpublish_conference.rb +0 -39
  214. data/app/commands/decidim/conferences/admin/update_conference_admin.rb +0 -53
  215. data/app/controllers/decidim/conferences/conference_widgets_controller.rb +0 -23
  216. data/app/queries/decidim/conferences/admin/conference_invites.rb +0 -60
  217. data/app/views/decidim/conferences/_order_by_conferences.html.erb +0 -3
  218. data/app/views/decidim/conferences/conferences/_promoted_conference.html.erb +0 -27
  219. data/app/views/decidim/conferences/media/_attachments.html.erb +0 -6
  220. data/app/views/decidim/conferences/shared/_conference_user_login.html.erb +0 -14
  221. data/app/views/layouts/decidim/_conference_hero.html.erb +0 -42
  222. data/app/views/layouts/decidim/_conferences_nav.html.erb +0 -46
  223. data/config/environment.rb +0 -3
  224. data/db/seeds/Exampledocument.pdf +0 -0
  225. data/db/seeds/city.jpeg +0 -0
  226. data/db/seeds/city2.jpeg +0 -0
  227. data/db/seeds/homepage_image.jpg +0 -0
  228. data/db/seeds/logo.png +0 -0
@@ -1,67 +1,63 @@
1
1
  <% add_decidim_page_title(t(".title")) %>
2
- <div class='card' id="registration_types">
3
- <div class="card-divider">
4
- <h2 class="card-title">
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.new", scope: "decidim.admin", name: t("models.registration_type.name", scope: "decidim.admin")), new_conference_registration_type_path(current_conference), class: "button tiny button--title new" %>
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
- <div class="card-section">
13
- <div class="table-scroll">
14
- <table class="stack">
15
- <thead>
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
- <th><%= t("models.registration_type.fields.title", scope: "decidim.admin") %></th>
18
- <th><%= t("models.registration_type.fields.price", scope: "decidim.admin") %></th>
19
- <th><%= t("models.registration_type.fields.weight", scope: "decidim.admin") %></th>
20
- <th><%= t("models.registration_type.fields.conference_meetings", scope: "decidim.admin") %></th>
21
- <th><%= t("models.registration_type.fields.registrations_count", scope: "decidim.admin") %></th>
22
- <th class="actions"></th>
23
- </tr>
24
- </thead>
25
- <tbody>
26
- <% @registration_types.each do |registration_type| %>
27
- <tr>
28
- <td>
29
- <%= translated_attribute(registration_type.title) %>
30
- </td>
31
- <td>
32
- <%= registration_type.price %>
33
- </td>
34
- <td>
35
- <%= registration_type.weight %>
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
- <% if allowed_to?(:update, :registration_type, registration_type: registration_type) %>
49
- <% if registration_type.published? %>
50
- <%= icon_link_to "x", conference_registration_type_publish_path(current_conference, registration_type), t("actions.unpublish", scope: "decidim.admin"), class: "action-icon--unpublish", method: :delete %>
51
- <% else %>
52
- <%= icon_link_to "check", conference_registration_type_publish_path(current_conference, registration_type), t("actions.publish", scope: "decidim.admin"), class: "action-icon--publish", method: :post %>
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
- <% if allowed_to?(:destroy, :registration_type, registration_type: registration_type) && !registration_type.conference_registrations.any? %>
57
- <%= icon_link_to "circle-x", 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") } %>
58
- <% end %>
59
- </td>
60
- </tr>
61
- <% end %>
62
- </tbody>
63
- </table>
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
- <%= decidim_form_for(@form, html: { class: "form new_registration_type" }) do |f| %>
3
- <%= render partial: "form", object: f, locals: { title: t("registration_types.new.title", scope: "decidim.admin") } %>
4
-
5
- <div class="button--double form-general-submit">
6
- <%= f.submit t("registration_types.new.create", scope: "decidim.admin") %>
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
- <% end %>
18
+ </div>
@@ -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) ).html_safe %></p>
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="reset mt-m mb-m">
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="row collapse">
3
- <% categories = meetings.collect(&:category).uniq %>
4
- <% seed = SecureRandom.hex(3).to_s %>
5
- <% if categories.present? %>
6
- <div class="row">
7
- <div class="column medium-10 medium-push-2">
8
- <ul class="tabs buttons__row" id="conference-row-<%= seed %>-tabs" data-tabs>
9
- <% categories.each_with_index do |category, i| %>
10
- <li class="tabs-title<%= " is-active" if i == 0 %>">
11
- <!-- Wrap the anchor inside a div to keep correct button styling -->
12
- <div>
13
- <a href="#conference-row-<%= seed %>-tab<%= i %>" class="button button--shadow tiny hollow">
14
- <%= category.present? ? translated_attribute(category.name) : "other" %>
15
- </a>
16
- </div>
17
- </li>
18
- <% end %>
19
- </ul>
20
- </div>
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 class="tabs-panel<%= " is-active" if i == 0 %>" id="conference-row-<%= seed %>-tab<%= i %>">
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: { end_time: end_time, start_time: start_time, meeting: meeting } %>
24
+ <%= render partial: "program_meeting", locals: { meeting: } %>
28
25
  <% end %>
29
26
  </div>
30
27
  <% end %>
@@ -1,67 +1,33 @@
1
- <div class="row programme-header">
2
- <div class="column medium-2 programme-time">
3
- <%= start_time.to_s(:time) %> - <%= end_time.to_s(:time) %>
4
- </div>
5
- <div class="column medium-10 programme-title">
6
- <%= link_to present(meeting).title, resource_locator(meeting).path %>
7
- </div>
8
- </div>
9
- <div class="row">
10
- <div class="column medium-10 medium-push-2">
11
- <% attribute = present(meeting).description %>
12
- <div class="programme-extra">
13
- <% conference_meeting = meeting.becomes(Decidim::ConferenceMeeting) %>
14
- <% speakers = conference_meeting.conference_speakers %>
15
- <% if speakers.any? %>
16
- <div class="row speakers-list">
17
- <div class="column medium-2">
18
- <strong><%= t(".speakers") %></strong>
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
- <div class="row">
27
- <div class="column medium-2">
28
- <strong><%= t(".location") %></strong>
29
- </div>
30
- <div class="column medium-10">
31
- <% if meeting.respond_to? :location %>
32
- <u><%= translated_attribute meeting.location %></u>&nbsp;
33
- <% end %>
34
- <span><%= meeting.address %></span>
35
- <% if meeting.respond_to? :location_hints %>
36
- <span>&nbsp;<%= 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
- </div>
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: 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
- <div class="section row">
14
- <div class="columns mediumlarge-12">
15
- <h3 class="section-heading"><%= t(".program") %></h3>
16
- <div class="conference-programme">
17
- <div class="row collapse programme-selector">
18
- <div class="column medium-2">
19
- <%= t(".day") %>
20
- </div>
21
- <div class="column medium-10">
22
- <% if meeting_days.any? %>
23
- <ul class="tabs" id="conference-day-tabs"
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
- <div class="programme-day tabs-panel<%= " is-active" if i == 0 %>" id="conference-day-tab-<%= i %>">
46
- <% meetings_for_day(meeting_component, day, current_user).each do |meeting_days, meetings| %>
47
- <%= render partial: "program_item", locals: { start_time: meeting_days[:start_time], end_time: meeting_days[:end_time], meetings: meetings.pluck(:meeting) } %>
48
- <% end %>
49
- </div>
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
- </div>
40
+ <% end %>
53
41
  </div>
54
- </div>
42
+ </main>
@@ -9,11 +9,17 @@ edit_link(
9
9
  )
10
10
  %>
11
11
 
12
- <section class="" id="conference_speakers-grid">
13
- <div class="row column">
14
- <h3 class="section-heading"><%= t(".speakers") %></h3>
15
- <div class="row small-up-2 medium-up-5 mb-l">
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
- </div>
19
- </section>
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
- <div id="conference-partners">
3
- <% conference.partners.group_by(&:partner_type).each do |partner_type, partners| %>
4
- <hr class="reset mt-none mb-m">
5
- <section class="section">
6
- <h3 class="section-heading"><%= t(".#{partner_type.pluralize}") %></h3>
7
- <div class="row small-up-2 medium-up-3 card-grid">
8
- <% partners.each do |partner| %>
9
- <%= cell "decidim/conferences/partner", partner %>
10
- <% end %>
11
- </div>
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
- <%= participatory_space_wrapper do %>
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="row section">
14
- <h1 class="section-heading"><%= t("conferences.index.promoted_conferences", scope: "layouts.decidim") %></h1>
15
- <%= render partial: "promoted_conference", collection: promoted_conferences, as: :promoted_conference %>
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="section row collapse">
20
- <%= render partial: "decidim/conferences/order_by_conferences" %>
21
- <div class="row small-up-1 medium-up-2 large-up-3 card-grid">
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 %>