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.
- checksums.yaml +4 -4
- data/app/cells/decidim/conferences/conference_cell.rb +9 -4
- data/app/cells/decidim/conferences/conference_dropdown_metadata_cell.rb +19 -0
- data/app/cells/decidim/conferences/conference_g_cell.rb +23 -0
- data/app/cells/decidim/conferences/conference_metadata_cell.rb +21 -0
- data/app/cells/decidim/conferences/conference_s_cell.rb +13 -0
- data/app/cells/decidim/conferences/conference_speaker/show.erb +44 -58
- data/app/cells/decidim/conferences/conference_speaker_cell.rb +3 -13
- data/app/cells/decidim/conferences/content_blocks/highlighted_conferences_cell.rb +15 -14
- data/app/cells/decidim/conferences/content_blocks/highlighted_conferences_settings_form/show.erb +3 -0
- data/app/cells/decidim/conferences/content_blocks/highlighted_conferences_settings_form_cell.rb +19 -0
- data/app/cells/decidim/conferences/linked_participatory_spaces/show.erb +6 -8
- data/app/cells/decidim/conferences/linked_participatory_spaces_cell.rb +1 -10
- data/app/cells/decidim/conferences/media_link/show.erb +6 -8
- data/app/cells/decidim/conferences/partner/image.erb +3 -0
- data/app/cells/decidim/conferences/partner/show.erb +8 -8
- data/app/cells/decidim/conferences/partner/text.erb +1 -0
- data/app/cells/decidim/conferences/partner_cell.rb +4 -2
- data/app/cells/decidim/conferences/registration_type/join_conference.erb +15 -12
- data/app/cells/decidim/conferences/registration_type/registration_confirm.erb +12 -12
- data/app/cells/decidim/conferences/registration_type/show.erb +11 -14
- data/app/cells/decidim/conferences/registration_type_cell.rb +3 -3
- data/app/commands/decidim/conferences/admin/copy_conference.rb +1 -1
- data/app/commands/decidim/conferences/admin/create_conference.rb +2 -11
- data/app/commands/decidim/conferences/admin/create_conference_speaker.rb +2 -2
- data/app/commands/decidim/conferences/admin/create_media_link.rb +2 -2
- data/app/commands/decidim/conferences/admin/create_partner.rb +2 -2
- data/app/commands/decidim/conferences/admin/create_registration_type.rb +2 -2
- data/app/commands/decidim/conferences/admin/destroy_conference_speaker.rb +2 -2
- data/app/commands/decidim/conferences/admin/destroy_media_link.rb +1 -1
- data/app/commands/decidim/conferences/admin/destroy_partner.rb +3 -3
- data/app/commands/decidim/conferences/admin/destroy_registration_type.rb +1 -1
- data/app/commands/decidim/conferences/admin/invite_user_to_join_conference.rb +5 -5
- data/app/commands/decidim/conferences/admin/publish_conference.rb +9 -26
- data/app/commands/decidim/conferences/admin/send_conference_diplomas.rb +1 -1
- data/app/commands/decidim/conferences/admin/update_conference.rb +2 -11
- data/app/commands/decidim/conferences/admin/update_conference_speaker.rb +1 -1
- data/app/commands/decidim/conferences/admin/update_media_link.rb +1 -1
- data/app/commands/decidim/conferences/admin/update_partner.rb +1 -1
- data/app/commands/decidim/conferences/admin/update_registration_type.rb +1 -1
- data/app/commands/decidim/conferences/decline_invitation.rb +1 -1
- data/app/commands/decidim/conferences/join_conference.rb +5 -5
- data/app/constraints/decidim/conferences/current_component.rb +2 -2
- data/app/constraints/decidim/conferences/current_conference.rb +2 -2
- data/app/controllers/concerns/decidim/conferences/admin/conference_context.rb +1 -1
- data/app/controllers/decidim/conferences/admin/concerns/conference_admin.rb +2 -2
- data/app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb +6 -1
- data/app/controllers/decidim/conferences/admin/conference_attachments_controller.rb +5 -0
- data/app/controllers/decidim/conferences/admin/conference_invites_controller.rb +2 -1
- data/app/controllers/decidim/conferences/admin/conference_publications_controller.rb +10 -28
- data/app/controllers/decidim/conferences/admin/conference_registrations_controller.rb +1 -1
- data/app/controllers/decidim/conferences/admin/conference_user_roles_controller.rb +8 -90
- data/app/controllers/decidim/conferences/admin/conferences_controller.rb +2 -0
- data/app/controllers/decidim/conferences/admin/diplomas_controller.rb +1 -1
- data/app/controllers/decidim/conferences/admin/exports_controller.rb +1 -1
- data/app/controllers/decidim/conferences/admin/imports_controller.rb +1 -1
- data/app/controllers/decidim/conferences/admin/moderations/reports_controller.rb +1 -1
- data/app/controllers/decidim/conferences/admin/moderations_controller.rb +1 -1
- data/app/controllers/decidim/conferences/application_controller.rb +6 -0
- data/app/controllers/decidim/conferences/conference_registrations_controller.rb +3 -3
- data/app/controllers/decidim/conferences/conferences_controller.rb +9 -2
- data/app/events/decidim/conferences/conference_registration_notification_event.rb +3 -3
- data/app/events/decidim/conferences/conference_registrations_enabled_event.rb +1 -1
- data/app/events/decidim/conferences/conference_registrations_over_percentage_event.rb +1 -1
- data/app/events/decidim/conferences/conference_role_assigned_event.rb +6 -6
- data/app/forms/decidim/conferences/admin/conference_copy_form.rb +1 -1
- data/app/forms/decidim/conferences/admin/conference_form.rb +4 -15
- data/app/forms/decidim/conferences/admin/conference_user_role_form.rb +2 -17
- data/app/helpers/decidim/conferences/admin/conferences_helper.rb +0 -4
- data/app/helpers/decidim/conferences/conference_helper.rb +55 -0
- data/app/helpers/decidim/conferences/conference_program_helper.rb +1 -1
- data/app/helpers/decidim/conferences/media_attachments_helper.rb +0 -10
- data/app/helpers/decidim/conferences/partners_helper.rb +3 -1
- data/app/mailers/decidim/conferences/admin/invite_join_conference_mailer.rb +1 -1
- data/app/mailers/decidim/conferences/admin/send_conference_diploma_mailer.rb +1 -1
- data/app/mailers/decidim/conferences/conference_registration_mailer.rb +2 -2
- data/app/models/decidim/conference.rb +4 -4
- data/app/models/decidim/conference_user_role.rb +6 -34
- data/app/packs/entrypoints/decidim_conferences.js +5 -0
- data/app/packs/src/decidim/conferences/admin/conferences.js +6 -6
- data/app/packs/stylesheets/decidim/conferences/_conference.scss +102 -0
- data/app/packs/stylesheets/decidim/conferences/_media.scss +13 -0
- data/app/packs/stylesheets/decidim/conferences/_program.scss +43 -0
- data/app/packs/stylesheets/decidim/conferences/_registration.scss +39 -0
- data/app/packs/stylesheets/decidim/conferences/_speaker.scss +83 -0
- data/app/packs/stylesheets/decidim/conferences/conferences.scss +5 -3
- data/app/permissions/decidim/conferences/permissions.rb +2 -2
- data/app/presenters/decidim/conference_speaker_presenter.rb +1 -1
- data/app/presenters/decidim/conferences/admin_log/conference_invite_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/admin_log/conference_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/admin_log/conference_registration_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/admin_log/conference_speaker_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/admin_log/conference_user_role_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/admin_log/media_link_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/admin_log/partner_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/admin_log/registration_type_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/conference_stats_presenter.rb +3 -28
- data/app/queries/decidim/conferences/admin/admin_users.rb +4 -4
- data/app/queries/decidim/conferences/conferences_with_user_role.rb +2 -2
- data/app/queries/decidim/conferences/organization_conferences.rb +1 -1
- data/app/queries/decidim/conferences/organization_published_conferences.rb +1 -1
- data/app/views/decidim/conferences/admin/conference_copies/_form.html.erb +22 -28
- data/app/views/decidim/conferences/admin/conference_copies/new.html.erb +16 -5
- data/app/views/decidim/conferences/admin/conference_invites/_form.html.erb +17 -19
- data/app/views/decidim/conferences/admin/conference_invites/index.html.erb +69 -74
- data/app/views/decidim/conferences/admin/conference_invites/new.html.erb +21 -17
- data/app/views/decidim/conferences/admin/conference_registrations/index.html.erb +45 -45
- data/app/views/decidim/conferences/admin/conference_speakers/_form.html.erb +42 -46
- data/app/views/decidim/conferences/admin/conference_speakers/edit.html.erb +16 -6
- data/app/views/decidim/conferences/admin/conference_speakers/index.html.erb +52 -55
- data/app/views/decidim/conferences/admin/conference_speakers/new.html.erb +16 -6
- data/app/views/decidim/conferences/admin/conference_user_roles/_form.html.erb +14 -18
- data/app/views/decidim/conferences/admin/conference_user_roles/edit.html.erb +16 -6
- data/app/views/decidim/conferences/admin/conference_user_roles/index.html.erb +53 -56
- data/app/views/decidim/conferences/admin/conference_user_roles/new.html.erb +16 -6
- data/app/views/decidim/conferences/admin/conferences/_form.html.erb +88 -88
- data/app/views/decidim/conferences/admin/conferences/edit.html.erb +26 -12
- data/app/views/decidim/conferences/admin/conferences/index.html.erb +55 -64
- data/app/views/decidim/conferences/admin/conferences/new.html.erb +16 -8
- data/app/views/decidim/conferences/admin/diplomas/_form.html.erb +18 -24
- data/app/views/decidim/conferences/admin/diplomas/edit.html.erb +19 -5
- data/app/views/decidim/conferences/admin/media_links/_form.html.erb +15 -19
- data/app/views/decidim/conferences/admin/media_links/edit.html.erb +16 -6
- data/app/views/decidim/conferences/admin/media_links/index.html.erb +37 -40
- data/app/views/decidim/conferences/admin/media_links/new.html.erb +16 -6
- data/app/views/decidim/conferences/admin/partners/_form.html.erb +18 -22
- data/app/views/decidim/conferences/admin/partners/edit.html.erb +16 -6
- data/app/views/decidim/conferences/admin/partners/index.html.erb +45 -48
- data/app/views/decidim/conferences/admin/partners/new.html.erb +16 -6
- data/app/views/decidim/conferences/admin/registration_types/_form.html.erb +23 -23
- data/app/views/decidim/conferences/admin/registration_types/edit.html.erb +16 -6
- data/app/views/decidim/conferences/admin/registration_types/index.html.erb +52 -56
- data/app/views/decidim/conferences/admin/registration_types/new.html.erb +16 -6
- data/app/views/decidim/conferences/admin/send_conference_diploma_mailer/diploma_user.html.erb +2 -2
- data/app/views/decidim/conferences/conference_program/_program_item.html.erb +21 -24
- data/app/views/decidim/conferences/conference_program/_program_meeting.html.erb +29 -63
- data/app/views/decidim/conferences/conference_program/show.html.erb +27 -39
- data/app/views/decidim/conferences/conference_speakers/index.html.erb +12 -6
- data/app/views/decidim/conferences/conferences/_conference_hero.html.erb +33 -0
- data/app/views/decidim/conferences/conferences/_partners.html.erb +10 -13
- data/app/views/decidim/conferences/conferences/index.html.erb +17 -7
- data/app/views/decidim/conferences/conferences/show.html.erb +84 -50
- data/app/views/decidim/conferences/media/index.html.erb +33 -19
- data/app/views/decidim/conferences/registration_types/index.html.erb +25 -17
- data/app/views/layouts/decidim/admin/conference.html.erb +12 -14
- data/app/views/layouts/decidim/admin/conferences.html.erb +13 -8
- data/app/views/layouts/decidim/conference.html.erb +7 -17
- data/app/views/layouts/decidim/conferences/_conference_nav_item.html.erb +6 -0
- data/app/views/layouts/decidim/conferences/application.html.erb +6 -0
- data/config/assets.rb +1 -1
- data/config/initializers/wicked_pdf.rb +1 -1
- data/config/locales/ar.yml +3 -62
- data/config/locales/bg.yml +0 -1
- data/config/locales/ca.yml +33 -53
- data/config/locales/cs.yml +35 -53
- data/config/locales/de.yml +33 -53
- data/config/locales/el.yml +11 -51
- data/config/locales/en.yml +34 -54
- data/config/locales/es-MX.yml +32 -52
- data/config/locales/es-PY.yml +32 -52
- data/config/locales/es.yml +32 -52
- data/config/locales/eu.yml +33 -58
- data/config/locales/fi-plain.yml +32 -52
- data/config/locales/fi.yml +31 -51
- data/config/locales/fr-CA.yml +31 -51
- data/config/locales/fr.yml +31 -51
- data/config/locales/ga-IE.yml +0 -17
- data/config/locales/gl.yml +3 -62
- data/config/locales/hu.yml +15 -51
- data/config/locales/id-ID.yml +3 -57
- data/config/locales/it.yml +4 -62
- data/config/locales/ja.yml +34 -53
- data/config/locales/lb.yml +1 -55
- data/config/locales/lt.yml +14 -52
- data/config/locales/lv.yml +1 -60
- data/config/locales/nl.yml +3 -62
- data/config/locales/no.yml +1 -62
- data/config/locales/pl.yml +1 -78
- data/config/locales/pt-BR.yml +1 -63
- data/config/locales/pt.yml +2 -63
- data/config/locales/ro-RO.yml +13 -50
- data/config/locales/sk.yml +1 -60
- data/config/locales/sl.yml +0 -2
- data/config/locales/sr-CS.yml +0 -5
- data/config/locales/sv.yml +7 -62
- data/config/locales/tr-TR.yml +13 -61
- data/config/locales/zh-CN.yml +3 -60
- data/config/locales/zh-TW.yml +6 -47
- data/db/migrate/20221116084952_add_weight_to_conferences.rb +7 -0
- data/lib/decidim/conferences/admin_engine.rb +14 -138
- data/lib/decidim/conferences/content_blocks/registry_manager.rb +21 -0
- data/lib/decidim/conferences/engine.rb +17 -15
- data/lib/decidim/conferences/menu.rb +182 -0
- data/lib/decidim/conferences/participatory_space.rb +6 -200
- data/lib/decidim/conferences/query_extensions.rb +2 -2
- data/lib/decidim/conferences/seeds.rb +153 -0
- data/lib/decidim/conferences/test/factories.rb +10 -9
- data/lib/decidim/conferences/version.rb +1 -1
- metadata +44 -47
- data/app/cells/decidim/conferences/conference_address/show.erb +0 -11
- data/app/cells/decidim/conferences/conference_address_cell.rb +0 -11
- data/app/cells/decidim/conferences/conference_m/footer.erb +0 -9
- data/app/cells/decidim/conferences/conference_m/tags.erb +0 -1
- data/app/cells/decidim/conferences/conference_m_cell.rb +0 -42
- data/app/cells/decidim/conferences/content_blocks/highlighted_conferences/show.erb +0 -30
- data/app/cells/decidim/conferences/photo/show.erb +0 -26
- data/app/cells/decidim/conferences/photo_cell.rb +0 -41
- data/app/cells/decidim/conferences/photos_list/show.erb +0 -8
- data/app/cells/decidim/conferences/photos_list_cell.rb +0 -18
- data/app/commands/decidim/conferences/admin/create_conference_admin.rb +0 -114
- data/app/commands/decidim/conferences/admin/destroy_conference_admin.rb +0 -58
- data/app/commands/decidim/conferences/admin/notify_role_assigned_to_conference.rb +0 -22
- data/app/commands/decidim/conferences/admin/unpublish_conference.rb +0 -39
- data/app/commands/decidim/conferences/admin/update_conference_admin.rb +0 -53
- data/app/controllers/decidim/conferences/conference_widgets_controller.rb +0 -23
- data/app/queries/decidim/conferences/admin/conference_invites.rb +0 -60
- data/app/views/decidim/conferences/_order_by_conferences.html.erb +0 -3
- data/app/views/decidim/conferences/conferences/_promoted_conference.html.erb +0 -27
- data/app/views/decidim/conferences/media/_attachments.html.erb +0 -6
- data/app/views/decidim/conferences/shared/_conference_user_login.html.erb +0 -14
- data/app/views/layouts/decidim/_conference_hero.html.erb +0 -42
- data/app/views/layouts/decidim/_conferences_nav.html.erb +0 -46
- data/config/environment.rb +0 -3
- data/db/seeds/Exampledocument.pdf +0 -0
- data/db/seeds/city.jpeg +0 -0
- data/db/seeds/city2.jpeg +0 -0
- data/db/seeds/homepage_image.jpg +0 -0
- data/db/seeds/logo.png +0 -0
@@ -1,12 +1,20 @@
|
|
1
1
|
<% add_decidim_page_title(t("conferences.new.title", scope: "decidim.admin")) %>
|
2
|
-
<
|
3
|
-
|
4
|
-
|
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
|
-
|
7
|
-
|
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
|
-
|
10
|
-
|
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
|
-
|
20
|
+
</div>
|
@@ -1,31 +1,25 @@
|
|
1
|
-
<div class="
|
2
|
-
<div class="card
|
3
|
-
<
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
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
|
-
|
19
|
-
|
20
|
-
|
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
|
-
|
28
|
-
|
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
|
-
|
3
|
-
|
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
|
-
|
6
|
-
|
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
|
-
|
22
|
+
</div>
|
@@ -1,25 +1,21 @@
|
|
1
|
-
<div class="
|
2
|
-
<div class="card-
|
3
|
-
<
|
4
|
-
|
5
|
-
|
6
|
-
|
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
|
-
|
9
|
-
|
10
|
-
|
11
|
-
</div>
|
8
|
+
<div class="row column">
|
9
|
+
<%= form.url_field :link %>
|
10
|
+
</div>
|
12
11
|
|
13
|
-
|
14
|
-
|
15
|
-
|
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
|
-
|
22
|
-
|
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
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
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
|
-
|
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=
|
3
|
-
<div class="
|
4
|
-
<h2 class="
|
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.
|
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
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
19
|
+
<th class="actions"></th>
|
20
|
+
</tr>
|
21
|
+
</thead>
|
22
|
+
<tbody>
|
23
|
+
<% @media_links.each do |media_link| %>
|
16
24
|
<tr>
|
17
|
-
<
|
18
|
-
|
19
|
-
|
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
|
-
|
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
|
-
|
24
|
-
|
25
|
-
|
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
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
2
|
+
<div class="item_show__header">
|
3
|
+
<h2 class="item_show__header-title">
|
4
|
+
<%= t("conference_speakers.new.title", scope: "decidim.admin") %>
|
5
|
+
</h2>
|
6
|
+
</div>
|
7
|
+
<div class="item__edit item__edit-1col">
|
8
|
+
<div class="item__edit-form">
|
9
|
+
<%= decidim_form_for(@form, html: { class: "form-defaults form new_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
|
-
|
18
|
+
</div>
|
@@ -1,29 +1,25 @@
|
|
1
|
-
<div class="
|
2
|
-
<div class="card-
|
3
|
-
<
|
4
|
-
|
5
|
-
|
6
|
-
|
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
|
-
|
14
|
-
|
15
|
-
|
8
|
+
<div class="row column">
|
9
|
+
<%= form.select :partner_type, @form.types, { multiple: false, prompt: "" } %>
|
10
|
+
</div>
|
16
11
|
|
17
|
-
|
18
|
-
|
19
|
-
|
12
|
+
<div class="row column">
|
13
|
+
<%= form.number_field :weight %>
|
14
|
+
</div>
|
20
15
|
|
21
|
-
|
22
|
-
|
23
|
-
|
16
|
+
<div class="row column">
|
17
|
+
<%= form.url_field :link %>
|
18
|
+
</div>
|
24
19
|
|
25
|
-
|
26
|
-
|
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
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
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
|
-
|
18
|
+
</div>
|
@@ -1,60 +1,57 @@
|
|
1
1
|
<% add_decidim_page_title(t(".title")) %>
|
2
|
-
<div class=
|
3
|
-
<div class="
|
4
|
-
<h2 class="
|
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.
|
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
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
20
|
+
<th class="actions"></th>
|
21
|
+
</tr>
|
22
|
+
</thead>
|
23
|
+
<tbody>
|
24
|
+
<% @partners.each do |partner| %>
|
16
25
|
<tr>
|
17
|
-
<
|
18
|
-
|
19
|
-
|
20
|
-
<
|
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
|
-
|
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
|
-
|
25
|
-
|
26
|
-
|
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
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
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
|
-
|
18
|
+
</div>
|
@@ -1,30 +1,30 @@
|
|
1
|
-
<div class="
|
2
|
-
<div class="card-
|
3
|
-
<
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
<div class="card-section">
|
9
|
-
<div class="row column">
|
10
|
-
<%= form.translated :text_field, :title, 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.translated :text_field, :title, autofocus: true, aria: { label: :title } %>
|
6
|
+
</div>
|
12
7
|
|
13
|
-
|
14
|
-
|
15
|
-
|
8
|
+
<div class="row column">
|
9
|
+
<%= form.number_field :weight %>
|
10
|
+
</div>
|
16
11
|
|
17
|
-
|
18
|
-
|
19
|
-
|
12
|
+
<div class="row column">
|
13
|
+
<%= form.translated :editor, :description, aria: { label: :description } %>
|
14
|
+
</div>
|
20
15
|
|
21
|
-
|
22
|
-
|
23
|
-
|
16
|
+
<div class="row column">
|
17
|
+
<%= form.number_field :price %>
|
18
|
+
</div>
|
24
19
|
|
25
|
-
|
26
|
-
|
27
|
-
|
20
|
+
<div class="row column">
|
21
|
+
<%= form.label t(".select_conference_meetings") %>
|
22
|
+
<%= form.collection_check_boxes :conference_meeting_ids, @form.meetings, :value, :title, legend_title: "" do |b| %>
|
23
|
+
<div>
|
24
|
+
<%= b.label { b.check_box + b.text } %>
|
25
|
+
</div>
|
26
|
+
<% end %>
|
27
|
+
</div>
|
28
28
|
</div>
|
29
29
|
</div>
|
30
30
|
</div>
|
@@ -1,8 +1,18 @@
|
|
1
1
|
<% add_decidim_page_title(t("registration_types.edit.title", scope: "decidim.admin")) %>
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
2
|
+
<div class="item_show__header">
|
3
|
+
<h2 class="item_show__header-title">
|
4
|
+
<%= t("registration_types.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_registration_type_path(@registration_type.conference, @registration_type), html: { class: "form-defaults form edit_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.edit.update", scope: "decidim.admin"), class: "button button__sm button__secondary" %>
|
14
|
+
</div>
|
15
|
+
</div>
|
16
|
+
<% end %>
|
7
17
|
</div>
|
8
|
-
|
18
|
+
</div>
|