decidim-conferences 0.27.6 → 0.28.0.rc4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (229) 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 +4 -14
  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 -13
  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 -13
  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 -64
  153. data/config/locales/bg.yml +0 -85
  154. data/config/locales/ca.yml +34 -54
  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 +32 -52
  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 -53
  170. data/config/locales/id-ID.yml +3 -57
  171. data/config/locales/it.yml +4 -62
  172. data/config/locales/ja.yml +33 -54
  173. data/config/locales/lb.yml +1 -55
  174. data/config/locales/lt.yml +14 -52
  175. data/config/locales/lv.yml +1 -61
  176. data/config/locales/nl.yml +3 -62
  177. data/config/locales/no.yml +1 -62
  178. data/config/locales/pl.yml +1 -79
  179. data/config/locales/pt-BR.yml +1 -72
  180. data/config/locales/pt.yml +2 -63
  181. data/config/locales/ro-RO.yml +13 -50
  182. data/config/locales/sk.yml +1 -61
  183. data/config/locales/sl.yml +0 -2
  184. data/config/locales/sr-CS.yml +0 -9
  185. data/config/locales/sv.yml +7 -62
  186. data/config/locales/tr-TR.yml +13 -62
  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 +37 -73
  198. data/lib/decidim/conferences/version.rb +1 -1
  199. metadata +48 -52
  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 -38
  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 -33
  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/locales/he-IL.yml +0 -1
  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
  229. data/decidim-conferences.gemspec +0 -33
@@ -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>
@@ -1,12 +1,20 @@
1
1
  <% add_decidim_page_title(t("conferences.new.title", scope: "decidim.admin")) %>
2
- <h2 class="conference-title-summary">
3
- <%= t "conferences.new.title", scope: "decidim.admin" %>
4
- </h2>
2
+ <div class="item_show__header">
3
+ <h2 class="item_show__header-title">
4
+ <%= t "conferences.new.title", scope: "decidim.admin" %>
5
+ </h2>
6
+ </div>
5
7
 
6
- <%= decidim_form_for(@form, html: { class: "form new_conference conference_form_admin" }) do |f| %>
7
- <%= render partial: "form", object: f %>
8
+ <div class="item__edit item__edit-1col">
9
+ <div class="item__edit-form">
10
+ <%= decidim_form_for(@form, html: { class: "form form-defaults new_conference conference_form_admin" }) do |f| %>
11
+ <%= render partial: "form", object: f %>
8
12
 
9
- <div class="button--double form-general-submit">
10
- <%= f.submit t("conferences.new.create", scope: "decidim.admin") %>
13
+ <div class="item__edit-sticky">
14
+ <div class="item__edit-sticky-container">
15
+ <%= f.submit t("conferences.new.create", scope: "decidim.admin"), class: "button button__sm button__secondary" %>
16
+ </div>
17
+ </div>
18
+ <% end %>
11
19
  </div>
12
- <% end %>
20
+ </div>
@@ -1,31 +1,25 @@
1
- <div class="card">
2
- <div class="card-divider">
3
- <h2 class="card-title">
4
- <%= title %>
5
- <% if allowed_to?(:send_diplomas, :conference, conference: current_participatory_space ) && current_participatory_space.sign_date.present? && current_participatory_space.conference_registrations.confirmed.any? %>
6
- <%= link_to t("actions.send_diplomas", scope: "decidim.admin"), send_conference_diploma_path(current_conference), method: :post, id: "send-diplomas", class: "button tiny button--title new #{"disabled" if current_participatory_space.diploma_sent? }" %>
7
- <% end %>
8
- </h2>
9
- </div>
10
-
11
- <div class="card-section">
12
- <div class="row">
13
- <div class="columns xlarge-6">
14
- <%= form.upload :main_logo, required: true %>
1
+ <div class="form__wrapper">
2
+ <div class="card">
3
+ <div class="card-divider"></div>
4
+ <div class="card-section">
5
+ <div class="row">
6
+ <div class="columns">
7
+ <%= form.upload :main_logo, button_class: "button button__sm button__transparent-secondary" %>
8
+ </div>
15
9
  </div>
16
- </div>
17
10
 
18
- <div class="row">
19
- <div class="columns xlarge-6">
20
- <%= form.upload :signature, required: true %>
11
+ <div class="row">
12
+ <div class="columns">
13
+ <%= form.upload :signature, button_class: "button button__sm button__transparent-secondary" %>
14
+ </div>
15
+ </div>
16
+ <div class="row column">
17
+ <%= form.date_field :sign_date %>
21
18
  </div>
22
- </div>
23
- <div class="row column">
24
- <%= form.date_field :sign_date %>
25
- </div>
26
19
 
27
- <div class="row column">
28
- <%= form.text_field :signature_name %>
20
+ <div class="row column">
21
+ <%= form.text_field :signature_name %>
22
+ </div>
29
23
  </div>
30
24
  </div>
31
25
  </div>
@@ -1,8 +1,22 @@
1
1
  <% add_decidim_page_title(t("diplomas.edit.title", scope: "decidim.conferences.admin")) %>
2
- <%= decidim_form_for(@form, url: conference_diploma_path, html: { class: "form edit_conference_diploma" }) do |f| %>
3
- <%= render partial: "form", object: f, locals: { title: t("diplomas.edit.title", scope: "decidim.conferences.admin") } %>
2
+ <div class="item_show__header">
3
+ <h2 class="item_show__header-title">
4
+ <%= t("diplomas.edit.title", scope: "decidim.conferences.admin") %>
4
5
 
5
- <div class="button--double form-general-submit">
6
- <%= f.submit t(".save") %>
6
+ <% if allowed_to?(:send_diplomas, :conference, conference: current_participatory_space ) && current_participatory_space.sign_date.present? && current_participatory_space.conference_registrations.confirmed.any? %>
7
+ <%= link_to t("actions.send_diplomas", scope: "decidim.admin"), send_conference_diploma_path(current_conference), method: :post, id: "send-diplomas", class: "button button__sm button__secondary new #{"disabled" if current_participatory_space.diploma_sent?}" %>
8
+ <% end %>
9
+ </h2>
10
+ </div>
11
+ <div class="item__edit item__edit-1col">
12
+ <div class="item__edit-form">
13
+ <%= decidim_form_for(@form, url: conference_diploma_path, html: { class: "form-defaults form edit_conference_diploma" }) do |f| %>
14
+ <%= render partial: "form", object: f %>
15
+ <div class="item__edit-sticky">
16
+ <div class="item__edit-sticky-container">
17
+ <%= f.submit t(".save"), class: "button button__sm button__secondary" %>
18
+ </div>
19
+ </div>
20
+ <% end %>
7
21
  </div>
8
- <% end %>
22
+ </div>
@@ -1,25 +1,21 @@
1
- <div class="card">
2
- <div class="card-divider">
3
- <h2 class="card-title">
4
- <%= title %>
5
- </h2>
6
- </div>
1
+ <div class="form__wrapper">
2
+ <div class="card pt-4">
3
+ <div class="card-section">
4
+ <div class="row column">
5
+ <%= form.translated :text_field, :title, aria: { label: :title } %>
6
+ </div>
7
7
 
8
- <div class="card-section">
9
- <div class="row column">
10
- <%= form.translated :text_field, :title %>
11
- </div>
8
+ <div class="row column">
9
+ <%= form.url_field :link %>
10
+ </div>
12
11
 
13
- <div class="row column">
14
- <%= form.url_field :link %>
15
- </div>
16
-
17
- <div class="row column">
18
- <%= form.date_field :date %>
19
- </div>
12
+ <div class="row column">
13
+ <%= form.date_field :date %>
14
+ </div>
20
15
 
21
- <div class="row column">
22
- <%= form.number_field :weight %>
16
+ <div class="row column">
17
+ <%= form.number_field :weight %>
18
+ </div>
23
19
  </div>
24
20
  </div>
25
21
  </div>
@@ -1,8 +1,18 @@
1
1
  <% add_decidim_page_title(t("media_links.edit.title", scope: "decidim.admin")) %>
2
- <%= decidim_form_for(@form, url: conference_media_link_path(@media_link.conference, @media_link), html: { class: "form edit_media_link" }) do |f| %>
3
- <%= render partial: "form", object: f, locals: { title: t("media_links.edit.title", scope: "decidim.admin") } %>
4
-
5
- <div class="button--double form-general-submit">
6
- <%= f.submit t("media_links.edit.update", scope: "decidim.admin") %>
2
+ <div class="item_show__header">
3
+ <h2 class="item_show__header-title">
4
+ <%= t("media_links.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_media_link_path(@media_link.conference, @media_link), html: { class: "form-defaults form edit_media_link" }) 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("media_links.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,52 +1,49 @@
1
1
  <% add_decidim_page_title(t("media_links.index.media_links_title", scope: "decidim.admin")) %>
2
- <div class='card' id="media_links">
3
- <div class="card-divider">
4
- <h2 class="card-title">
2
+ <div class="card" id="media_links">
3
+ <div class="item_show__header">
4
+ <h2 class="item_show__header-title">
5
5
  <%= t("media_links.index.media_links_title", scope: "decidim.admin") %>
6
6
  <% if allowed_to? :create, :media_link %>
7
- <%= link_to t("actions.new", scope: "decidim.admin", name: t("models.media_link.name", scope: "decidim.admin")), new_conference_media_link_path(current_conference), class: "button tiny button--title new" %>
7
+ <%= link_to t("actions.new_media_link", scope: "decidim.admin"), new_conference_media_link_path(current_conference), class: "button button__sm button__secondary new" %>
8
8
  <% end %>
9
9
  </h2>
10
10
  </div>
11
+ <div class="table-scroll">
12
+ <table class="table-list">
13
+ <thead>
14
+ <tr>
15
+ <th><%= t("models.media_link.fields.title", scope: "decidim.admin") %></th>
16
+ <th><%= t("models.media_link.fields.link", scope: "decidim.admin") %></th>
17
+ <th><%= t("models.media_link.fields.date", scope: "decidim.admin") %></th>
11
18
 
12
- <div class="card-section">
13
- <div class="table-scroll">
14
- <table class="stack">
15
- <thead>
19
+ <th class="actions"></th>
20
+ </tr>
21
+ </thead>
22
+ <tbody>
23
+ <% @media_links.each do |media_link| %>
16
24
  <tr>
17
- <th><%= t("models.media_link.fields.title", scope: "decidim.admin") %></th>
18
- <th><%= t("models.media_link.fields.link", scope: "decidim.admin") %></th>
19
- <th><%= t("models.media_link.fields.date", scope: "decidim.admin") %></th>
25
+ <td>
26
+ <%= translated_attribute(media_link.title) %>
27
+ </td>
28
+ <td>
29
+ <%= media_link.link %>
30
+ </td>
31
+ <td>
32
+ <%= l(media_link.date, format: :decidim_short ) %>
33
+ </td>
34
+ <td class="table-list__actions">
35
+ <% if allowed_to? :update, :media_link, media_link: media_link %>
36
+ <%= icon_link_to "pencil-line", edit_conference_media_link_path(current_conference, media_link), t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit" %>
37
+ <% end %>
20
38
 
21
- <th class="actions"></th>
39
+ <% if allowed_to? :destroy, :media_link, media_link: media_link %>
40
+ <%= icon_link_to "delete-bin-line", conference_media_link_path(current_conference, media_link), t("actions.destroy", scope: "decidim.admin"), class: "action-icon--remove", method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %>
41
+ <% end %>
42
+ </td>
22
43
  </tr>
23
- </thead>
24
- <tbody>
25
- <% @media_links.each do |media_link| %>
26
- <tr>
27
- <td>
28
- <%= translated_attribute(media_link.title) %>
29
- </td>
30
- <td>
31
- <%= media_link.link %>
32
- </td>
33
- <td>
34
- <%= l(media_link.date, format: :decidim_short ) %>
35
- </td>
36
- <td class="table-list__actions">
37
- <% if allowed_to? :update, :media_link, media_link: media_link %>
38
- <%= icon_link_to "pencil", edit_conference_media_link_path(current_conference, media_link), t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit" %>
39
- <% end %>
40
-
41
- <% if allowed_to? :destroy, :media_link, media_link: media_link %>
42
- <%= icon_link_to "circle-x", conference_media_link_path(current_conference, media_link), t("actions.destroy", scope: "decidim.admin"), class: "action-icon--remove", method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %>
43
- <% end %>
44
- </td>
45
- </tr>
46
- <% end %>
47
- </tbody>
48
- </table>
49
- <%= paginate @media_links, theme: "decidim" %>
50
- </div>
44
+ <% end %>
45
+ </tbody>
46
+ </table>
51
47
  </div>
52
48
  </div>
49
+ <%= decidim_paginate @media_links %>
@@ -1,8 +1,18 @@
1
1
  <% add_decidim_page_title(t("media_links.new.title", scope: "decidim.admin")) %>
2
- <%= decidim_form_for(@form, html: { class: "form new_media_link" }) do |f| %>
3
- <%= render partial: "form", object: f, locals: { title: t("media_links.new.title", scope: "decidim.admin") } %>
4
-
5
- <div class="button--double form-general-submit">
6
- <%= f.submit t("media_links.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_media_link" }) 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("media_links.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,29 +1,25 @@
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 column">
10
- <%= form.text_field :name, autofocus: true %>
11
- </div>
1
+ <div class="form__wrapper">
2
+ <div class="card pt-4">
3
+ <div class="card-section">
4
+ <div class="row column">
5
+ <%= form.text_field :name, autofocus: true %>
6
+ </div>
12
7
 
13
- <div class="row column">
14
- <%= form.select :partner_type, @form.types, { multiple: false, prompt: "" } %>
15
- </div>
8
+ <div class="row column">
9
+ <%= form.select :partner_type, @form.types, { multiple: false, prompt: "" } %>
10
+ </div>
16
11
 
17
- <div class="row column">
18
- <%= form.number_field :weight %>
19
- </div>
12
+ <div class="row column">
13
+ <%= form.number_field :weight %>
14
+ </div>
20
15
 
21
- <div class="row column">
22
- <%= form.url_field :link %>
23
- </div>
16
+ <div class="row column">
17
+ <%= form.url_field :link %>
18
+ </div>
24
19
 
25
- <div class="row column">
26
- <%= form.upload :logo, required: true %>
20
+ <div class="row column">
21
+ <%= form.upload :logo, button_class: "button button__sm button__transparent-secondary" %>
22
+ </div>
27
23
  </div>
28
24
  </div>
29
25
  </div>
@@ -1,8 +1,18 @@
1
1
  <% add_decidim_page_title(t("partners.edit.title", scope: "decidim.admin")) %>
2
- <%= decidim_form_for(@form, url: conference_partner_path(@partner.conference, @partner), html: { class: "form edit_partner" }) do |f| %>
3
- <%= render partial: "form", object: f, locals: { title: t("partners.edit.title", scope: "decidim.admin") } %>
4
-
5
- <div class="button--double form-general-submit">
6
- <%= f.submit t("partners.edit.update", scope: "decidim.admin") %>
2
+ <div class="item_show__header">
3
+ <h2 class="item_show__header-title">
4
+ <%= t("partners.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_partner_path(@partner.conference, @partner), html: { class: "form-defaults form edit_partner" }) 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("partners.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,60 +1,57 @@
1
1
  <% add_decidim_page_title(t(".title")) %>
2
- <div class='card' id="partners">
3
- <div class="card-divider">
4
- <h2 class="card-title">
2
+ <div class="card" id="partners">
3
+ <div class="item_show__header">
4
+ <h2 class="item_show__header-title">
5
5
  <%= t(".title") %>
6
6
  <% if allowed_to? :create, :partner %>
7
- <%= link_to t("actions.new", scope: "decidim.admin", name: t("models.partner.name", scope: "decidim.admin")), new_conference_partner_path(current_conference), class: "button tiny button--title new" %>
7
+ <%= link_to t("actions.new_partner", scope: "decidim.admin"), new_conference_partner_path(current_conference), class: "button button__sm button__secondary new" %>
8
8
  <% end %>
9
9
  </h2>
10
10
  </div>
11
+ <div class="table-scroll">
12
+ <table class="table-list">
13
+ <thead>
14
+ <tr>
15
+ <th><%= t("models.partner.fields.name", scope: "decidim.admin") %></th>
16
+ <th><%= t("models.partner.fields.partner_type", scope: "decidim.admin") %></th>
17
+ <th><%= t("models.partner.fields.link", scope: "decidim.admin") %></th>
18
+ <th><%= t("models.partner.fields.logo", scope: "decidim.admin") %></th>
11
19
 
12
- <div class="card-section">
13
- <div class="table-scroll">
14
- <table class="stack">
15
- <thead>
20
+ <th class="actions"></th>
21
+ </tr>
22
+ </thead>
23
+ <tbody>
24
+ <% @partners.each do |partner| %>
16
25
  <tr>
17
- <th><%= t("models.partner.fields.name", scope: "decidim.admin") %></th>
18
- <th><%= t("models.partner.fields.partner_type", scope: "decidim.admin") %></th>
19
- <th><%= t("models.partner.fields.link", scope: "decidim.admin") %></th>
20
- <th><%= t("models.partner.fields.logo", scope: "decidim.admin") %></th>
26
+ <td>
27
+ <%= partner.name %>
28
+ </td>
29
+ <td>
30
+ <%= t("#{partner.partner_type}", scope: "decidim.admin.models.partner.types") %>
31
+ </td>
32
+ <td>
33
+ <% if partner.link.presence %>
34
+ <%= link_to partner.link, partner.link, target: "_blank" %>
35
+ <% end %>
36
+ </td>
37
+ <td>
38
+ <% if partner.attached_uploader(:logo).path %>
39
+ <%= image_tag(partner.attached_uploader(:logo).path(variant: :thumb)) %>
40
+ <% end %>
41
+ </td>
42
+ <td class="table-list__actions">
43
+ <% if allowed_to? :update, :partner, partner: partner %>
44
+ <%= icon_link_to "pencil-line", edit_conference_partner_path(current_conference, partner), t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit" %>
45
+ <% end %>
21
46
 
22
- <th class="actions"></th>
47
+ <% if allowed_to? :destroy, :partner, partner: partner %>
48
+ <%= icon_link_to "delete-bin-line", conference_partner_path(current_conference, partner), t("actions.destroy", scope: "decidim.admin"), class: "action-icon--remove", method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %>
49
+ <% end %>
50
+ </td>
23
51
  </tr>
24
- </thead>
25
- <tbody>
26
- <% @partners.each do |partner| %>
27
- <tr>
28
- <td>
29
- <%= partner.name %>
30
- </td>
31
- <td>
32
- <%= t("#{partner.partner_type}", scope: "decidim.admin.models.partner.types") %>
33
- </td>
34
- <td>
35
- <% if partner.link.presence %>
36
- <%= link_to partner.link, partner.link, target: "_blank" %>
37
- <% end %>
38
- </td>
39
- <td>
40
- <% if partner.attached_uploader(:logo).path %>
41
- <%= image_tag(partner.attached_uploader(:logo).path(variant: :thumb)) %>
42
- <% end %>
43
- </td>
44
- <td class="table-list__actions">
45
- <% if allowed_to? :update, :partner, partner: partner %>
46
- <%= icon_link_to "pencil", edit_conference_partner_path(current_conference, partner), t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit" %>
47
- <% end %>
48
-
49
- <% if allowed_to? :destroy, :partner, partner: partner %>
50
- <%= icon_link_to "circle-x", conference_partner_path(current_conference, partner), t("actions.destroy", scope: "decidim.admin"), class: "action-icon--remove", method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %>
51
- <% end %>
52
- </td>
53
- </tr>
54
- <% end %>
55
- </tbody>
56
- </table>
57
- <%= paginate @partners, theme: "decidim" %>
58
- </div>
52
+ <% end %>
53
+ </tbody>
54
+ </table>
59
55
  </div>
60
56
  </div>
57
+ <%= decidim_paginate @partners %>
@@ -1,8 +1,18 @@
1
1
  <% add_decidim_page_title(t("partners.new.title", scope: "decidim.admin")) %>
2
- <%= decidim_form_for(@form, html: { class: "form new_partner" }) do |f| %>
3
- <%= render partial: "form", object: f, locals: { title: t("partners.new.title", scope: "decidim.admin") } %>
4
-
5
- <div class="button--double form-general-submit">
6
- <%= f.submit t("partners.new.create", scope: "decidim.admin") %>
2
+ <div class="item_show__header">
3
+ <h2 class="item_show__header-title">
4
+ <%= t("partners.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_partner" }) 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("partners.new.create", scope: "decidim.admin"), class: "button button__sm button__secondary" %>
14
+ </div>
15
+ </div>
16
+ <% end %>
7
17
  </div>
8
- <% end %>
18
+ </div>