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,8 +1,18 @@
1
1
  <% add_decidim_page_title(t("conference_speakers.new.title", scope: "decidim.admin")) %>
2
- <%= decidim_form_for(@form, html: { class: "form new_conference_speaker" }) do |f| %>
3
- <%= render partial: "form", object: f, locals: { title: t("conference_speakers.new.title", scope: "decidim.admin") } %>
4
-
5
- <div class="button--double form-general-submit">
6
- <%= f.submit t("conference_speakers.new.create", scope: "decidim.admin") %>
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
- <% end %>
18
+ </div>
@@ -1,21 +1,17 @@
1
- <div class="card">
2
- <div class="card-divider">
3
- <h2 class="card-title">
4
- <%= title %>
5
- </h2>
6
- </div>
7
-
8
- <div class="card-section">
9
- <div class="row">
10
- <div class="columns xlarge-4">
11
- <%= form.text_field :name, readonly: @form.persisted? %>
12
- </div>
13
- <div class="columns xlarge-4">
14
- <%= form.email_field :email, readonly: @form.persisted? %>
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
- <%= decidim_form_for(@form, url: conference_user_role_path(@user_role.conference, @user_role), html: { class: "form edit_conference_user_roles" }) do |f| %>
3
- <%= render partial: "form", object: f, locals: { title: t("conference_user_roles.edit.title", scope: "decidim.admin") } %>
4
-
5
- <div class="button--double form-general-submit">
6
- <%= f.submit t("conference_user_roles.edit.update", scope: "decidim.admin") %>
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
- <% end %>
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='card' id="conference_admins">
3
- <div class="card-divider">
4
- <h2 class="card-title">
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.new", scope: "decidim.admin", name: t("models.conference_user_role.name", scope: "decidim.admin")), new_conference_user_role_path(current_conference), class: "button tiny button--title new" %>
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
- <div class="card-section">
14
- <div class="table-scroll">
15
- <table class="stack table-list">
16
- <thead>
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
- <th><%= sort_link(query, :name,t("models.conference_user_role.fields.name", scope: "decidim.admin"), default_order: :desc) %></th>
19
- <th><%= sort_link(query, :email, t("models.conference_user_role.fields.email", scope: "decidim.admin"), default_order: :desc) %></th>
20
- <th><%= sort_link(query, :last_sign_in_at, t("models.user.fields.last_sign_in_at", scope: "decidim.admin"), default_order: :desc) %></th>
21
- <th><%= sort_link(query, :invitation_accepted_at, t("models.user.fields.invitation_accepted_at", scope: "decidim.admin"), default_order: :desc) %></th>
22
- <th><%= sort_link(query, :role, t("models.conference_user_role.fields.role", scope: "decidim.admin"), default_order: :desc) %></th>
23
- <th class="actions"></th>
24
- </tr>
25
- </thead>
26
- <tbody>
27
- <% @conference_user_roles.each do |role| %>
28
- <tr>
29
- <td>
30
- <%= role.user.name %><br>
31
- </td>
32
- <td>
33
- <%= role.user.email %><br>
34
- </td>
35
- <td>
36
- <% if role.user.invitation_sent_at %>
37
- <%= l role.user.invitation_sent_at, format: :short %>
38
- <% end %>
39
- </td>
40
- <td>
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
- <% if allowed_to? :update, :conference_user_role, user_role: role %>
54
- <%= icon_link_to "pencil", edit_conference_user_role_path(current_conference, role), t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit" %>
55
- <% end %>
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
- <% if allowed_to? :destroy, :conference_user_role, user_role: role %>
58
- <%= icon_link_to "circle-x", 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") } %>
59
- <% end %>
60
- </td>
61
- </tr>
62
- <% end %>
63
- </tbody>
64
- </table>
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
- <%= decidim_form_for(@form, html: { class: "form new_conference_user_role" }) do |f| %>
3
- <%= render partial: "form", object: f, locals: { title: t("conference_user_roles.new.title", scope: "decidim.admin") } %>
4
-
5
- <div class="button--double form-general-submit">
6
- <%= f.submit t("conference_user_roles.new.create", scope: "decidim.admin") %>
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
- <% end %>
18
+ </div>
@@ -1,120 +1,120 @@
1
- <div class="card">
2
- <div class="card-divider">
3
- <h2 class="card-title"><%= t "conferences.form.title", scope: "decidim.admin" %></h2>
4
- </div>
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
- <div class="card-section">
7
- <div class="row column">
8
- <%= form.translated :text_field, :title, autofocus: true %>
9
- </div>
17
+ <div class="row column">
18
+ <%= form.translated :text_field, :slogan, aria: { label: :slogan } %>
19
+ </div>
10
20
 
11
- <div class="row column">
12
- <%= form.translated :text_field, :slogan %>
13
- </div>
21
+ <div class="row column">
22
+ <%= form.number_field :weight %>
23
+ </div>
14
24
 
15
25
  <div class="row">
16
- <div class="columns xlarge-6 slug">
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
- <div class="columns xlarge-6">
22
- <%= form.text_field :hashtag %>
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
- <div class="row column">
31
- <%= form.translated :editor, :short_description %>
32
- </div>
35
+ <div class="row column">
36
+ <%= form.check_box :promoted %>
37
+ </div>
33
38
 
34
- <div class="row column">
35
- <%= form.translated :editor, :description %>
36
- </div>
39
+ <div class="row column">
40
+ <%= form.translated :editor, :short_description, aria: { label: :short_description } %>
41
+ </div>
37
42
 
38
- <div class="row column">
39
- <%= form.translated :editor, :objectives %>
40
- </div>
43
+ <div class="row column">
44
+ <%= form.translated :editor, :description, aria: { label: :description } %>
45
+ </div>
41
46
 
42
- <div class="row column">
43
- <%= form.text_field :location %>
44
- </div>
47
+ <div class="row column">
48
+ <%= form.translated :editor, :objectives, aria: { label: :objectives } %>
49
+ </div>
45
50
 
46
- <div class="row">
47
- <div class="columns xlarge-6">
48
- <%= form.upload :hero_image %>
51
+ <div class="row column">
52
+ <%= form.text_field :location %>
49
53
  </div>
50
54
 
51
- <div class="columns xlarge-6">
52
- <%= form.upload :banner_image %>
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
- <div class="row column">
57
- <%= form.check_box :scopes_enabled %>
58
- </div>
65
+ <div class="row column">
66
+ <%= form.check_box :scopes_enabled %>
67
+ </div>
59
68
 
60
- <div class="row column">
61
- <%= scopes_picker_field form, :scope_id, root: nil %>
62
- </div>
69
+ <div class="row column">
70
+ <%= scopes_select_field form, :scope_id, root: nil %>
71
+ </div>
63
72
 
64
- <div class="row column">
65
- <%= form.check_box :show_statistics %>
66
- </div>
73
+ <div class="row column">
74
+ <%= form.check_box :show_statistics %>
75
+ </div>
67
76
 
68
- <div class="row column">
69
- <%= form.date_field :start_date %>
70
- </div>
77
+ <div class="row column">
78
+ <%= form.date_field :start_date %>
79
+ </div>
71
80
 
72
- <div class="row column">
73
- <%= form.date_field :end_date %>
74
- </div>
81
+ <div class="row column">
82
+ <%= form.date_field :end_date %>
83
+ </div>
75
84
 
76
- <div class="row column">
77
- <%= form.check_box :registrations_enabled %>
78
- </div>
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
- <div class="row column" id="conference_registrations_terms">
87
- <%= form.translated :editor, :registration_terms, toolbar: :content %>
88
- </div>
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
- <div class="row column">
91
- <% if @form.processes_for_select %>
92
- <%= form.select :participatory_processes_ids,
93
- options_for_select(@form.processes_for_select, selected: processes_selected ),
94
- { include_blank: true },
95
- { multiple: true, class: "chosen-select" } %>
96
- <% end %>
97
- </div>
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
- <div class="row column">
100
- <% if @form.assemblies_for_select %>
101
- <%= form.select :assemblies_ids,
102
- options_for_select(@form.assemblies_for_select, selected: assemblies_selected ),
103
- { include_blank: true },
104
- { multiple: true, class: "chosen-select" } %>
105
- <% end %>
106
- </div>
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
- <%= javascript_pack_tag "decidim_conferences_admin" %>
119
+ </div>
120
+ <%= append_javascript_pack_tag "decidim_conferences_admin" %>
@@ -1,15 +1,29 @@
1
- <% add_decidim_page_title(translated_attribute(current_conference.title)) %>
2
- <%= decidim_form_for(@form, html: { class: "form edit_conference conference_form_admin" }) do |f| %>
3
- <%= render partial: "form", object: f %>
4
- <div class="button--double form-general-submit">
5
- <%= f.submit t("conferences.edit.update", scope: "decidim.admin"), class: "button" %>
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
- <% if allowed_to? :publish, :conference, conference: current_conference %>
8
- <% if current_conference.published? %>
9
- <%= link_to t("actions.unpublish", scope: "decidim.admin"), conference_publish_path(current_conference), method: :delete, class: "button muted" %>
10
- <% else %>
11
- <%= link_to t("actions.publish", scope: "decidim.admin"), conference_publish_path(current_conference), method: :post, class: "button hollow" %>
12
- <% end %>
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
- <% end %>
29
+ </div>
@@ -1,70 +1,61 @@
1
1
  <% add_decidim_page_title(t("decidim.admin.titles.conferences")) %>
2
- <div class="card with-overflow" id="conferences">
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="card-section">
11
- <div class="table-scroll">
12
- <table class="table-list">
13
- <thead>
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
- <th><%= t("models.conference.fields.title", scope: "decidim.admin") %></th>
16
- <th><%= sort_link(query, :created_at, t("models.conference.fields.created_at", scope: "decidim.admin"), default_order: :desc) %></th>
17
- <th class="table-list__actions"><%= t("models.conference.fields.published", scope: "decidim.admin") %></th>
18
- <th></th>
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
- </thead>
21
- <tbody>
22
- <% @conferences.each do |conference| %>
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>