decidim-conferences 0.27.4 → 0.28.0.rc5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/cells/decidim/conferences/conference_cell.rb +9 -4
- data/app/cells/decidim/conferences/conference_dropdown_metadata_cell.rb +19 -0
- data/app/cells/decidim/conferences/conference_g_cell.rb +23 -0
- data/app/cells/decidim/conferences/conference_metadata_cell.rb +21 -0
- data/app/cells/decidim/conferences/conference_s_cell.rb +13 -0
- data/app/cells/decidim/conferences/conference_speaker/show.erb +44 -58
- data/app/cells/decidim/conferences/conference_speaker_cell.rb +3 -13
- data/app/cells/decidim/conferences/content_blocks/highlighted_conferences_cell.rb +15 -14
- data/app/cells/decidim/conferences/content_blocks/highlighted_conferences_settings_form/show.erb +3 -0
- data/app/cells/decidim/conferences/content_blocks/highlighted_conferences_settings_form_cell.rb +19 -0
- data/app/cells/decidim/conferences/linked_participatory_spaces/show.erb +6 -8
- data/app/cells/decidim/conferences/linked_participatory_spaces_cell.rb +1 -10
- data/app/cells/decidim/conferences/media_link/show.erb +6 -8
- data/app/cells/decidim/conferences/partner/image.erb +3 -0
- data/app/cells/decidim/conferences/partner/show.erb +8 -8
- data/app/cells/decidim/conferences/partner/text.erb +1 -0
- data/app/cells/decidim/conferences/partner_cell.rb +4 -2
- data/app/cells/decidim/conferences/registration_type/join_conference.erb +15 -12
- data/app/cells/decidim/conferences/registration_type/registration_confirm.erb +12 -12
- data/app/cells/decidim/conferences/registration_type/show.erb +11 -14
- data/app/cells/decidim/conferences/registration_type_cell.rb +3 -3
- data/app/commands/decidim/conferences/admin/copy_conference.rb +1 -1
- data/app/commands/decidim/conferences/admin/create_conference.rb +2 -11
- data/app/commands/decidim/conferences/admin/create_conference_speaker.rb +2 -2
- data/app/commands/decidim/conferences/admin/create_media_link.rb +2 -2
- data/app/commands/decidim/conferences/admin/create_partner.rb +2 -2
- data/app/commands/decidim/conferences/admin/create_registration_type.rb +2 -2
- data/app/commands/decidim/conferences/admin/destroy_conference_speaker.rb +2 -2
- data/app/commands/decidim/conferences/admin/destroy_media_link.rb +1 -1
- data/app/commands/decidim/conferences/admin/destroy_partner.rb +3 -3
- data/app/commands/decidim/conferences/admin/destroy_registration_type.rb +1 -1
- data/app/commands/decidim/conferences/admin/invite_user_to_join_conference.rb +5 -5
- data/app/commands/decidim/conferences/admin/publish_conference.rb +9 -26
- data/app/commands/decidim/conferences/admin/send_conference_diplomas.rb +1 -1
- data/app/commands/decidim/conferences/admin/update_conference.rb +2 -11
- data/app/commands/decidim/conferences/admin/update_conference_speaker.rb +1 -1
- data/app/commands/decidim/conferences/admin/update_media_link.rb +1 -1
- data/app/commands/decidim/conferences/admin/update_partner.rb +1 -1
- data/app/commands/decidim/conferences/admin/update_registration_type.rb +1 -1
- data/app/commands/decidim/conferences/decline_invitation.rb +1 -1
- data/app/commands/decidim/conferences/join_conference.rb +5 -5
- data/app/constraints/decidim/conferences/current_component.rb +2 -2
- data/app/constraints/decidim/conferences/current_conference.rb +2 -2
- data/app/controllers/concerns/decidim/conferences/admin/conference_context.rb +1 -1
- data/app/controllers/decidim/conferences/admin/concerns/conference_admin.rb +2 -2
- data/app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb +6 -1
- data/app/controllers/decidim/conferences/admin/conference_attachments_controller.rb +5 -0
- data/app/controllers/decidim/conferences/admin/conference_invites_controller.rb +2 -1
- data/app/controllers/decidim/conferences/admin/conference_publications_controller.rb +10 -28
- data/app/controllers/decidim/conferences/admin/conference_registrations_controller.rb +1 -1
- data/app/controllers/decidim/conferences/admin/conference_user_roles_controller.rb +8 -90
- data/app/controllers/decidim/conferences/admin/conferences_controller.rb +2 -0
- data/app/controllers/decidim/conferences/admin/diplomas_controller.rb +1 -1
- data/app/controllers/decidim/conferences/admin/exports_controller.rb +1 -1
- data/app/controllers/decidim/conferences/admin/imports_controller.rb +1 -1
- data/app/controllers/decidim/conferences/admin/moderations/reports_controller.rb +1 -1
- data/app/controllers/decidim/conferences/admin/moderations_controller.rb +1 -1
- data/app/controllers/decidim/conferences/application_controller.rb +6 -0
- data/app/controllers/decidim/conferences/conference_registrations_controller.rb +3 -3
- data/app/controllers/decidim/conferences/conferences_controller.rb +10 -3
- data/app/events/decidim/conferences/conference_registration_notification_event.rb +3 -3
- data/app/events/decidim/conferences/conference_registrations_enabled_event.rb +1 -1
- data/app/events/decidim/conferences/conference_registrations_over_percentage_event.rb +1 -1
- data/app/events/decidim/conferences/conference_role_assigned_event.rb +6 -6
- data/app/forms/decidim/conferences/admin/conference_copy_form.rb +1 -1
- data/app/forms/decidim/conferences/admin/conference_form.rb +4 -15
- data/app/forms/decidim/conferences/admin/conference_user_role_form.rb +2 -17
- data/app/helpers/decidim/conferences/admin/conferences_helper.rb +0 -4
- data/app/helpers/decidim/conferences/conference_helper.rb +55 -0
- data/app/helpers/decidim/conferences/conference_program_helper.rb +1 -1
- data/app/helpers/decidim/conferences/media_attachments_helper.rb +0 -10
- data/app/helpers/decidim/conferences/partners_helper.rb +3 -1
- data/app/mailers/decidim/conferences/admin/invite_join_conference_mailer.rb +1 -1
- data/app/mailers/decidim/conferences/admin/send_conference_diploma_mailer.rb +1 -1
- data/app/mailers/decidim/conferences/conference_registration_mailer.rb +2 -2
- data/app/models/decidim/conference.rb +4 -4
- data/app/models/decidim/conference_user_role.rb +6 -34
- data/app/packs/entrypoints/decidim_conferences.js +5 -0
- data/app/packs/src/decidim/conferences/admin/conferences.js +6 -6
- data/app/packs/stylesheets/decidim/conferences/_conference.scss +102 -0
- data/app/packs/stylesheets/decidim/conferences/_media.scss +13 -0
- data/app/packs/stylesheets/decidim/conferences/_program.scss +43 -0
- data/app/packs/stylesheets/decidim/conferences/_registration.scss +39 -0
- data/app/packs/stylesheets/decidim/conferences/_speaker.scss +83 -0
- data/app/packs/stylesheets/decidim/conferences/conferences.scss +5 -3
- data/app/permissions/decidim/conferences/permissions.rb +2 -2
- data/app/presenters/decidim/conference_speaker_presenter.rb +1 -1
- data/app/presenters/decidim/conferences/admin_log/conference_invite_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/admin_log/conference_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/admin_log/conference_registration_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/admin_log/conference_speaker_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/admin_log/conference_user_role_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/admin_log/media_link_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/admin_log/partner_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/admin_log/registration_type_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/conference_stats_presenter.rb +3 -28
- data/app/queries/decidim/conferences/admin/admin_users.rb +4 -4
- data/app/queries/decidim/conferences/conferences_with_user_role.rb +2 -2
- data/app/queries/decidim/conferences/organization_conferences.rb +1 -1
- data/app/queries/decidim/conferences/organization_published_conferences.rb +1 -1
- data/app/views/decidim/conferences/admin/conference_copies/_form.html.erb +22 -28
- data/app/views/decidim/conferences/admin/conference_copies/new.html.erb +16 -5
- data/app/views/decidim/conferences/admin/conference_invites/_form.html.erb +17 -19
- data/app/views/decidim/conferences/admin/conference_invites/index.html.erb +69 -74
- data/app/views/decidim/conferences/admin/conference_invites/new.html.erb +21 -17
- data/app/views/decidim/conferences/admin/conference_registrations/index.html.erb +45 -45
- data/app/views/decidim/conferences/admin/conference_speakers/_form.html.erb +42 -46
- data/app/views/decidim/conferences/admin/conference_speakers/edit.html.erb +16 -6
- data/app/views/decidim/conferences/admin/conference_speakers/index.html.erb +52 -55
- data/app/views/decidim/conferences/admin/conference_speakers/new.html.erb +16 -6
- data/app/views/decidim/conferences/admin/conference_user_roles/_form.html.erb +14 -18
- data/app/views/decidim/conferences/admin/conference_user_roles/edit.html.erb +16 -6
- data/app/views/decidim/conferences/admin/conference_user_roles/index.html.erb +53 -56
- data/app/views/decidim/conferences/admin/conference_user_roles/new.html.erb +16 -6
- data/app/views/decidim/conferences/admin/conferences/_form.html.erb +88 -88
- data/app/views/decidim/conferences/admin/conferences/edit.html.erb +26 -12
- data/app/views/decidim/conferences/admin/conferences/index.html.erb +55 -64
- data/app/views/decidim/conferences/admin/conferences/new.html.erb +16 -8
- data/app/views/decidim/conferences/admin/diplomas/_form.html.erb +18 -24
- data/app/views/decidim/conferences/admin/diplomas/edit.html.erb +19 -5
- data/app/views/decidim/conferences/admin/media_links/_form.html.erb +15 -19
- data/app/views/decidim/conferences/admin/media_links/edit.html.erb +16 -6
- data/app/views/decidim/conferences/admin/media_links/index.html.erb +37 -40
- data/app/views/decidim/conferences/admin/media_links/new.html.erb +16 -6
- data/app/views/decidim/conferences/admin/partners/_form.html.erb +18 -22
- data/app/views/decidim/conferences/admin/partners/edit.html.erb +16 -6
- data/app/views/decidim/conferences/admin/partners/index.html.erb +45 -48
- data/app/views/decidim/conferences/admin/partners/new.html.erb +16 -6
- data/app/views/decidim/conferences/admin/registration_types/_form.html.erb +23 -23
- data/app/views/decidim/conferences/admin/registration_types/edit.html.erb +16 -6
- data/app/views/decidim/conferences/admin/registration_types/index.html.erb +52 -56
- data/app/views/decidim/conferences/admin/registration_types/new.html.erb +16 -6
- data/app/views/decidim/conferences/admin/send_conference_diploma_mailer/diploma_user.html.erb +2 -2
- data/app/views/decidim/conferences/conference_program/_program_item.html.erb +21 -24
- data/app/views/decidim/conferences/conference_program/_program_meeting.html.erb +29 -63
- data/app/views/decidim/conferences/conference_program/show.html.erb +27 -39
- data/app/views/decidim/conferences/conference_speakers/index.html.erb +12 -6
- data/app/views/decidim/conferences/conferences/_conference_hero.html.erb +33 -0
- data/app/views/decidim/conferences/conferences/_partners.html.erb +10 -13
- data/app/views/decidim/conferences/conferences/index.html.erb +17 -7
- data/app/views/decidim/conferences/conferences/show.html.erb +84 -50
- data/app/views/decidim/conferences/media/index.html.erb +33 -19
- data/app/views/decidim/conferences/registration_types/index.html.erb +25 -17
- data/app/views/layouts/decidim/admin/conference.html.erb +12 -14
- data/app/views/layouts/decidim/admin/conferences.html.erb +13 -8
- data/app/views/layouts/decidim/conference.html.erb +7 -17
- data/app/views/layouts/decidim/conferences/_conference_nav_item.html.erb +6 -0
- data/app/views/layouts/decidim/conferences/application.html.erb +6 -0
- data/config/assets.rb +1 -1
- data/config/environment.rb +3 -0
- data/config/initializers/wicked_pdf.rb +1 -1
- data/config/locales/ar.yml +1 -68
- data/config/locales/bg.yml +0 -1
- data/config/locales/ca.yml +35 -55
- data/config/locales/cs.yml +40 -58
- data/config/locales/de.yml +37 -57
- data/config/locales/el.yml +11 -57
- data/config/locales/en.yml +36 -56
- data/config/locales/es-MX.yml +34 -54
- data/config/locales/es-PY.yml +34 -54
- data/config/locales/es.yml +33 -53
- data/config/locales/eu.yml +179 -198
- data/config/locales/fi-plain.yml +33 -53
- data/config/locales/fi.yml +39 -59
- data/config/locales/fr-CA.yml +33 -53
- data/config/locales/fr.yml +34 -54
- data/config/locales/ga-IE.yml +0 -17
- data/config/locales/gl.yml +1 -68
- data/config/locales/hu.yml +15 -57
- data/config/locales/id-ID.yml +1 -62
- data/config/locales/it.yml +2 -68
- data/config/locales/ja.yml +34 -55
- data/config/locales/lb.yml +1 -59
- data/config/locales/lt.yml +21 -54
- data/config/locales/lv.yml +1 -65
- data/config/locales/nl.yml +1 -68
- data/config/locales/no.yml +1 -68
- data/config/locales/pl.yml +1 -66
- data/config/locales/pt-BR.yml +1 -68
- data/config/locales/pt.yml +1 -68
- data/config/locales/ro-RO.yml +11 -56
- data/config/locales/sk.yml +1 -65
- data/config/locales/sl.yml +0 -3
- data/config/locales/sq-AL.yml +1 -0
- data/config/locales/sr-CS.yml +0 -5
- data/config/locales/sv.yml +7 -67
- data/config/locales/th-TH.yml +1 -0
- data/config/locales/tr-TR.yml +12 -66
- data/config/locales/zh-CN.yml +1 -65
- data/config/locales/zh-TW.yml +6 -53
- data/db/migrate/20221116084952_add_weight_to_conferences.rb +7 -0
- data/lib/decidim/api/conference_speaker_type.rb +1 -1
- data/lib/decidim/conferences/admin_engine.rb +14 -138
- data/lib/decidim/conferences/content_blocks/registry_manager.rb +21 -0
- data/lib/decidim/conferences/engine.rb +17 -15
- data/lib/decidim/conferences/menu.rb +182 -0
- data/lib/decidim/conferences/participatory_space.rb +6 -200
- data/lib/decidim/conferences/query_extensions.rb +2 -2
- data/lib/decidim/conferences/seeds.rb +153 -0
- data/lib/decidim/conferences/test/factories.rb +10 -9
- data/lib/decidim/conferences/version.rb +1 -1
- metadata +46 -46
- data/app/cells/decidim/conferences/conference_address/show.erb +0 -11
- data/app/cells/decidim/conferences/conference_address_cell.rb +0 -11
- data/app/cells/decidim/conferences/conference_m/footer.erb +0 -9
- data/app/cells/decidim/conferences/conference_m/tags.erb +0 -1
- data/app/cells/decidim/conferences/conference_m_cell.rb +0 -42
- data/app/cells/decidim/conferences/content_blocks/highlighted_conferences/show.erb +0 -30
- data/app/cells/decidim/conferences/photo/show.erb +0 -26
- data/app/cells/decidim/conferences/photo_cell.rb +0 -41
- data/app/cells/decidim/conferences/photos_list/show.erb +0 -8
- data/app/cells/decidim/conferences/photos_list_cell.rb +0 -18
- data/app/commands/decidim/conferences/admin/create_conference_admin.rb +0 -114
- data/app/commands/decidim/conferences/admin/destroy_conference_admin.rb +0 -58
- data/app/commands/decidim/conferences/admin/notify_role_assigned_to_conference.rb +0 -22
- data/app/commands/decidim/conferences/admin/unpublish_conference.rb +0 -39
- data/app/commands/decidim/conferences/admin/update_conference_admin.rb +0 -53
- data/app/controllers/decidim/conferences/conference_widgets_controller.rb +0 -23
- data/app/queries/decidim/conferences/admin/conference_invites.rb +0 -60
- data/app/views/decidim/conferences/_order_by_conferences.html.erb +0 -3
- data/app/views/decidim/conferences/conferences/_promoted_conference.html.erb +0 -27
- data/app/views/decidim/conferences/media/_attachments.html.erb +0 -6
- data/app/views/decidim/conferences/shared/_conference_user_login.html.erb +0 -14
- data/app/views/layouts/decidim/_conference_hero.html.erb +0 -42
- data/app/views/layouts/decidim/_conferences_nav.html.erb +0 -46
- data/db/seeds/Exampledocument.pdf +0 -0
- data/db/seeds/city.jpeg +0 -0
- data/db/seeds/city2.jpeg +0 -0
- data/db/seeds/homepage_image.jpg +0 -0
- data/db/seeds/logo.png +0 -0
@@ -1,32 +1,31 @@
|
|
1
|
-
<div class="
|
2
|
-
<div class="
|
3
|
-
<
|
4
|
-
<
|
5
|
-
|
6
|
-
|
7
|
-
|
1
|
+
<div class="form__wrapper">
|
2
|
+
<div class="card attendee-fields pt-4">
|
3
|
+
<div class="row column">
|
4
|
+
<fieldset class="check-radio-collection">
|
5
|
+
<legend><%= t(".attendee_type") %></legend>
|
6
|
+
<%= form.collection_radio_buttons(:existing_user, [[t(".non_user"), false], [t(".existing_user"), true]], :last, :first) %>
|
7
|
+
</fieldset>
|
8
|
+
</div>
|
8
9
|
|
9
|
-
|
10
|
-
|
11
|
-
|
10
|
+
<div class="row column text-warning attendee-fields--new-user">
|
11
|
+
<p><%= t(".invite_explanation") %></p>
|
12
|
+
</div>
|
12
13
|
|
13
|
-
|
14
|
-
<div class="auto cell attendee-fields--new-user">
|
14
|
+
<div class="row column auto cell attendee-fields--new-user">
|
15
15
|
<%= form.text_field :name %>
|
16
16
|
</div>
|
17
|
-
<div class="auto cell attendee-fields--new-user">
|
17
|
+
<div class="row column auto cell attendee-fields--new-user">
|
18
18
|
<%= form.text_field :email %>
|
19
19
|
</div>
|
20
20
|
|
21
|
-
<div class="auto cell attendee-fields--user-picker">
|
21
|
+
<div class="row column auto cell attendee-fields--user-picker">
|
22
22
|
<% prompt_options = { url: decidim_admin.users_organization_url, placeholder: t(".select_user") } %>
|
23
23
|
<%= form.autocomplete_select(:user_id, form.object.user.presence, { multiple: false, class: "autocomplete-field--results-inline" }, prompt_options) do |user|
|
24
24
|
{ value: user.id, label: "#{user.name} (@#{user.nickname})" }
|
25
25
|
end %>
|
26
26
|
</div>
|
27
|
-
|
28
|
-
|
29
|
-
<div class="auto cell">
|
27
|
+
|
28
|
+
<div class="row column auto cell">
|
30
29
|
<%= form.select :registration_type_id,
|
31
30
|
options_for_select(@form.registration_types_for_select),
|
32
31
|
{ include_blank: false },
|
@@ -34,5 +33,4 @@
|
|
34
33
|
</div>
|
35
34
|
</div>
|
36
35
|
</div>
|
37
|
-
|
38
|
-
<%= javascript_pack_tag "decidim_conferences_admin" %>
|
36
|
+
<%= append_javascript_pack_tag "decidim_conferences_admin" %>
|
@@ -1,88 +1,83 @@
|
|
1
1
|
<% add_decidim_page_title(t(".invites")) %>
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
<
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
<%= t(".filter.#{@status}") %>
|
10
|
-
<% else %>
|
11
|
-
<%= t(".filter.all") %>
|
12
|
-
<% end %>
|
13
|
-
</a>
|
14
|
-
<ul class="menu is-dropdown-submenu">
|
15
|
-
<li><%= link_to t(".filter.sent"), url_for(status: "sent", q: @query) %></li>
|
16
|
-
<li><%= link_to t(".filter.accepted"), url_for(status: "accepted", q: @query) %></li>
|
17
|
-
<li><%= link_to t(".filter.rejected"), url_for(status: "rejected", q: @query) %></li>
|
18
|
-
<li><%= link_to t(".filter.all"), url_for(q: @query) %></li>
|
19
|
-
</ul>
|
20
|
-
</li>
|
21
|
-
</ul>
|
2
|
+
|
3
|
+
<div class="card" id="conference-invites">
|
4
|
+
<div class="item_show__header">
|
5
|
+
<h2 class="item_show__header-title">
|
6
|
+
<%= t(".invites") %>
|
7
|
+
<%= link_to t(".invite_attendee"), conference.registrations_enabled ? new_conference_conference_invite_path(conference) : "#", class: "button button__sm button__secondary #{"disabled" unless conference.registrations_enabled && allowed_to?(:invite_attendee, :conference, conference:)}" %>
|
8
|
+
</h2>
|
22
9
|
</div>
|
23
|
-
|
24
|
-
|
25
|
-
|
10
|
+
|
11
|
+
<%# NOTE: this old filters section should be refactorized in order to use the shared admin_filter_selector method
|
12
|
+
it would require the definition of concerns similar to decidim-conferences/app/controllers/concerns/decidim/conferences/admin/filterable.rb %>
|
13
|
+
<div class="filters__section">
|
14
|
+
<div class="fcell">
|
15
|
+
<ul class="dropdown menu" data-dropdown-menu data-close-on-click-inside="false">
|
16
|
+
<li class="is-dropdown-submenu-parent">
|
17
|
+
<a href="#" class="dropdown button">
|
18
|
+
<%= t("filter_label", scope: "decidim.admin.filters") %>
|
19
|
+
<%= icon "arrow-down-s-line", class: "dropdown-filter-icon" %>
|
20
|
+
</a>
|
21
|
+
<ul class="menu is-dropdown-submenu">
|
22
|
+
<li><%= link_to t(".filter.sent"), url_for(status: "sent", q: @query) %></li>
|
23
|
+
<li><%= link_to t(".filter.accepted"), url_for(status: "accepted", q: @query) %></li>
|
24
|
+
<li><%= link_to t(".filter.rejected"), url_for(status: "rejected", q: @query) %></li>
|
25
|
+
<li><%= link_to t(".filter.all"), url_for(q: @query) %></li>
|
26
|
+
</ul>
|
27
|
+
</li>
|
28
|
+
</ul>
|
29
|
+
</div>
|
30
|
+
<div class="fcell search">
|
31
|
+
<%= form_tag "", method: :get do %>
|
26
32
|
<div class="input-group">
|
27
33
|
<%= search_field_tag :q, @query,label: false, class: "input-group-field", placeholder: t(".search") %>
|
28
34
|
<%= hidden_field_tag :state, @state %>
|
29
35
|
<div class="input-group-button">
|
30
|
-
<button type="submit" class="
|
31
|
-
<%= icon "
|
36
|
+
<button type="submit" class="text-secondary" aria-label="<%= t("decidim.search.term_input_placeholder") %>">
|
37
|
+
<%= icon "search-line", class: "fill-secondary w-4 h-4" %>
|
32
38
|
</button>
|
33
39
|
</div>
|
34
40
|
</div>
|
35
|
-
|
36
|
-
|
37
|
-
</div>
|
38
|
-
</div>
|
39
|
-
|
40
|
-
<div class="card" id="conference-invites">
|
41
|
-
<div class="card-divider">
|
42
|
-
<h2 class="card-title">
|
43
|
-
<%= t(".invites") %>
|
44
|
-
<%= link_to t(".invite_attendee"), conference.registrations_enabled ? new_conference_conference_invite_path(conference) : "#", class: "button tiny button--title #{'disabled' unless conference.registrations_enabled && allowed_to?(:invite_attendee, :conference, conference: conference) }" %>
|
45
|
-
</h2>
|
41
|
+
<% end %>
|
42
|
+
</div>
|
46
43
|
</div>
|
47
44
|
|
48
|
-
<div class="
|
49
|
-
<
|
50
|
-
<
|
51
|
-
<
|
52
|
-
<
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
45
|
+
<div class="table-scroll">
|
46
|
+
<table class="table-list">
|
47
|
+
<thead>
|
48
|
+
<tr>
|
49
|
+
<th><%= t("models.conference_invite.fields.name", scope: "decidim.conferences") %></th>
|
50
|
+
<th><%= t("models.conference_invite.fields.email", scope: "decidim.conferences") %></th>
|
51
|
+
<th><%= t("models.conference_invite.fields.sent_at", scope: "decidim.conferences") %></th>
|
52
|
+
<th><%= t("models.conference_invite.fields.status", scope: "decidim.conferences") %></th>
|
53
|
+
<th><%= t("models.conference_invite.fields.registration_type", scope: "decidim.conferences") %></th>
|
54
|
+
</tr>
|
55
|
+
</thead>
|
56
|
+
<tbody>
|
57
|
+
<% @conference_invites.each do |invite| %>
|
58
|
+
<% presenter = Decidim::Conferences::ConferenceInvitePresenter.new(invite) %>
|
59
|
+
<tr data-id="<%= invite.id %>">
|
60
|
+
<td>
|
61
|
+
<%= invite.user.name %>
|
62
|
+
</td>
|
63
|
+
<td>
|
64
|
+
<%= invite.user.email %>
|
65
|
+
</td>
|
66
|
+
<td>
|
67
|
+
<% if invite.sent_at %>
|
68
|
+
<%= l invite.sent_at, format: :long %>
|
69
|
+
<% end %>
|
70
|
+
</td>
|
71
|
+
<td class="<%= presenter.status_html_class %>">
|
72
|
+
<%= presenter.status %>
|
73
|
+
</td>
|
74
|
+
<td>
|
75
|
+
<%= translated_attribute(invite.registration_type.title) %>
|
76
|
+
</td>
|
58
77
|
</tr>
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
<% presenter = Decidim::Conferences::ConferenceInvitePresenter.new(invite) %>
|
63
|
-
<tr data-id="<%= invite.id %>">
|
64
|
-
<td>
|
65
|
-
<%= invite.user.name %>
|
66
|
-
</td>
|
67
|
-
<td>
|
68
|
-
<%= invite.user.email %>
|
69
|
-
</td>
|
70
|
-
<td>
|
71
|
-
<% if invite.sent_at %>
|
72
|
-
<%= l invite.sent_at, format: :long %>
|
73
|
-
<% end %>
|
74
|
-
</td>
|
75
|
-
<td class="<%= presenter.status_html_class %>">
|
76
|
-
<%= presenter.status %>
|
77
|
-
</td>
|
78
|
-
<td>
|
79
|
-
<%= translated_attribute(invite.registration_type.title) %>
|
80
|
-
</td>
|
81
|
-
</tr>
|
82
|
-
<% end %>
|
83
|
-
</tbody>
|
84
|
-
</table>
|
85
|
-
<%= paginate @conference_invites, theme: "decidim" %>
|
86
|
-
</div>
|
78
|
+
<% end %>
|
79
|
+
</tbody>
|
80
|
+
</table>
|
87
81
|
</div>
|
82
|
+
<%= decidim_paginate @conference_invites %>
|
88
83
|
</div>
|
@@ -1,22 +1,26 @@
|
|
1
1
|
<% add_decidim_page_title(t(".new_invite")) %>
|
2
|
-
<h2 class="process-title-summary">
|
3
|
-
<%= t(".new_invite") %>
|
4
|
-
</h2>
|
5
2
|
|
6
|
-
|
7
|
-
<div class="callout warning">
|
8
|
-
<p><%= t(".explanation") %></p>
|
9
|
-
</div>
|
10
|
-
</div>
|
3
|
+
<%= cell("decidim/announcement", t(".explanation"), callout_class: "warning") %>
|
11
4
|
|
12
|
-
|
13
|
-
<
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
</div>
|
5
|
+
<div class="item_show__header">
|
6
|
+
<h2 class="item_show__header-title">
|
7
|
+
<%= t(".new_invite") %>
|
8
|
+
</h2>
|
9
|
+
</div>
|
18
10
|
|
19
|
-
|
20
|
-
|
11
|
+
<div class="item__edit item__edit-1col">
|
12
|
+
<div class="item__edit-form">
|
13
|
+
<%= decidim_form_for(@form, url: conference_conference_invites_path, method: :post, html: { class: "form form-defaults new_conference_registration_invite" }) do |f| %>
|
14
|
+
<div class="card">
|
15
|
+
<div class="card-section">
|
16
|
+
<%= render partial: "form", object: f %>
|
17
|
+
</div>
|
18
|
+
</div>
|
19
|
+
<div class="item__edit-sticky">
|
20
|
+
<div class="item__edit-sticky-container">
|
21
|
+
<%= f.submit t(".invite"), class: "button button__sm button__secondary" %>
|
22
|
+
</div>
|
23
|
+
</div>
|
24
|
+
<% end %>
|
21
25
|
</div>
|
22
|
-
|
26
|
+
</div>
|
@@ -1,60 +1,60 @@
|
|
1
1
|
<% add_decidim_page_title(t(".registrations")) %>
|
2
2
|
<div class="card" id="conference-registrations">
|
3
|
-
<div class="
|
4
|
-
<h2 class="
|
3
|
+
<div class="item_show__header">
|
4
|
+
<h2 class="item_show__header-title">
|
5
5
|
<%= t(".registrations") %>
|
6
6
|
<% if allowed_to? :export_conference_registrations, :conference, conference: conference %>
|
7
|
-
<span class="exports
|
7
|
+
<span class="exports button button__sm button__secondary button--simple button--title" data-toggle="export-dropdown">
|
8
|
+
<%= t "actions.export", scope: "decidim.admin" %>
|
9
|
+
<%= icon "arrow-down-s-line", class: "dropdown-filter-icon" %>
|
10
|
+
</span>
|
8
11
|
<div class="dropdown-pane" id="export-dropdown" data-dropdown data-auto-focus="true" data-close-on-click="true">
|
9
12
|
<ul class="vertical menu add-components">
|
10
|
-
<% %w
|
11
|
-
<li class="exports--format--<%= format.downcase %> exports--registrations"><%= link_to t("decidim.admin.exports.export_as", name: t("decidim.admin.conferences.exports.registrations"), export_format: format), export_conference_conference_registrations_path(conference_id: conference, format:
|
13
|
+
<% %w(CSV JSON Excel).each do |format| %>
|
14
|
+
<li class="exports--format--<%= format.downcase %> exports--registrations"><%= link_to t("decidim.admin.exports.export_as", name: t("decidim.admin.conferences.exports.registrations"), export_format: format), export_conference_conference_registrations_path(conference_id: conference, format:) %></li>
|
12
15
|
<% end %>
|
13
16
|
</ul>
|
14
17
|
</div>
|
15
18
|
<% end %>
|
16
19
|
</h2>
|
17
20
|
</div>
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
<
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
<% if !registration.confirmed? %>
|
49
|
-
<%= icon_link_to "check", confirm_conference_conference_registration_path(current_conference, registration), t("actions.confirm", scope: "decidim.admin"), class: "action-icon--publish", method: :post %>
|
50
|
-
<% end %>
|
21
|
+
<div class="table-scroll">
|
22
|
+
<table class="table-list">
|
23
|
+
<thead>
|
24
|
+
<tr>
|
25
|
+
<th><%= t("models.conference_registration.fields.name", scope: "decidim.conferences") %></th>
|
26
|
+
<th><%= t("models.conference_registration.fields.email", scope: "decidim.conferences") %></th>
|
27
|
+
<th><%= t("models.conference_registration.fields.registration_type", scope: "decidim.conferences") %></th>
|
28
|
+
<th><%= t("models.conference_registration.fields.state", scope: "decidim.conferences") %></th>
|
29
|
+
<th></th>
|
30
|
+
</tr>
|
31
|
+
</thead>
|
32
|
+
<tbody>
|
33
|
+
<% @conference_registrations.each do |registration| %>
|
34
|
+
<tr data-id="<%= registration.id %>">
|
35
|
+
<td>
|
36
|
+
<%= registration.user.name %>
|
37
|
+
</td>
|
38
|
+
<td>
|
39
|
+
<%= registration.user.email %>
|
40
|
+
</td>
|
41
|
+
<td>
|
42
|
+
<%= translated_attribute(registration.registration_type.title) %>
|
43
|
+
</td>
|
44
|
+
<td>
|
45
|
+
<%= t("models.conference_registration.fields.states.#{registration.confirmed? ? "confirmed" : "pending"}", scope: "decidim.conferences") %>
|
46
|
+
</td>
|
47
|
+
<td>
|
48
|
+
<% if allowed_to?(:confirm, :conference_registration, conference_registration: registration) %>
|
49
|
+
<% if !registration.confirmed? %>
|
50
|
+
<%= icon_link_to "check-line", confirm_conference_conference_registration_path(current_conference, registration), t("actions.confirm", scope: "decidim.admin"), class: "action-icon--publish", method: :post %>
|
51
51
|
<% end %>
|
52
|
-
|
53
|
-
</
|
54
|
-
|
55
|
-
|
56
|
-
</
|
57
|
-
|
58
|
-
</div>
|
52
|
+
<% end %>
|
53
|
+
</td>
|
54
|
+
</tr>
|
55
|
+
<% end %>
|
56
|
+
</tbody>
|
57
|
+
</table>
|
59
58
|
</div>
|
59
|
+
<%= decidim_paginate @conference_registrations %>
|
60
60
|
</div>
|
@@ -1,61 +1,57 @@
|
|
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="user-fields">
|
5
|
+
<div class="row column">
|
6
|
+
<%= form.select :existing_user, [[t(".non_user"), false], [t(".existing_user"), true]], label: t(".user_type") %>
|
7
|
+
</div>
|
8
|
+
|
9
|
+
<div class="row column user-fields--full-name">
|
10
|
+
<%= form.text_field :full_name, autofocus: true %>
|
11
|
+
</div>
|
12
|
+
|
13
|
+
<div class="row column user-fields--user-picker">
|
14
|
+
<% prompt_options = { url: decidim_admin.users_organization_url, placeholder: t(".select_user") } %>
|
15
|
+
<%= form.autocomplete_select(:user_id, form.object.user.presence, { multiple: false }, prompt_options) do |user|
|
16
|
+
{ value: user.id, label: "#{user.name} (@#{user.nickname})" }
|
17
|
+
end %>
|
18
|
+
</div>
|
19
|
+
</div>
|
7
20
|
|
8
|
-
<div class="card-section">
|
9
|
-
<div class="user-fields">
|
10
21
|
<div class="row column">
|
11
|
-
|
22
|
+
<% if @form.meetings %>
|
23
|
+
<%= form.select :conference_meeting_ids,
|
24
|
+
options_for_select(@form.meetings, selected: meetings_selected ),
|
25
|
+
{ include_blank: true },
|
26
|
+
{ multiple: true, class: "chosen-select" } %>
|
27
|
+
<% end %>
|
12
28
|
</div>
|
13
29
|
|
14
|
-
<div class="row column
|
15
|
-
<%= form.text_field :
|
30
|
+
<div class="row column">
|
31
|
+
<%= form.translated :text_field, :position, aria: { label: :position } %>
|
16
32
|
</div>
|
17
33
|
|
18
|
-
<div class="row column
|
19
|
-
|
20
|
-
<%= form.autocomplete_select(:user_id, form.object.user.presence, { multiple: false }, prompt_options) do |user|
|
21
|
-
{ value: user.id, label: "#{user.name} (@#{user.nickname})" }
|
22
|
-
end %>
|
34
|
+
<div class="row column">
|
35
|
+
<%= form.translated :text_field, :affiliation, aria: { label: :affiliation } %>
|
23
36
|
</div>
|
24
|
-
</div>
|
25
|
-
|
26
|
-
<div class="row column">
|
27
|
-
<% if @form.meetings %>
|
28
|
-
<%= form.select :conference_meeting_ids,
|
29
|
-
options_for_select(@form.meetings, selected: meetings_selected ),
|
30
|
-
{ include_blank: true },
|
31
|
-
{ multiple: true, class: "chosen-select" } %>
|
32
|
-
<% end %>
|
33
|
-
</div>
|
34
|
-
|
35
|
-
<div class="row column">
|
36
|
-
<%= form.translated :text_field, :position %>
|
37
|
-
</div>
|
38
|
-
|
39
|
-
<div class="row column">
|
40
|
-
<%= form.translated :text_field, :affiliation %>
|
41
|
-
</div>
|
42
37
|
|
43
|
-
|
44
|
-
|
45
|
-
|
38
|
+
<div class="row column">
|
39
|
+
<%= form.translated :editor, :short_bio, aria: { label: :short_bio } %>
|
40
|
+
</div>
|
46
41
|
|
47
|
-
|
48
|
-
|
49
|
-
|
42
|
+
<div class="row column">
|
43
|
+
<%= form.text_field :twitter_handle %>
|
44
|
+
</div>
|
50
45
|
|
51
|
-
|
52
|
-
|
53
|
-
|
46
|
+
<div class="row column">
|
47
|
+
<%= form.url_field :personal_url %>
|
48
|
+
</div>
|
54
49
|
|
55
|
-
|
56
|
-
|
50
|
+
<div class="row column">
|
51
|
+
<%= form.upload :avatar, button_class: "button button__sm button__transparent-secondary" %>
|
52
|
+
</div>
|
57
53
|
</div>
|
58
54
|
</div>
|
59
55
|
</div>
|
60
56
|
|
61
|
-
<%=
|
57
|
+
<%= append_javascript_pack_tag "decidim_conferences_admin" %>
|
@@ -1,8 +1,18 @@
|
|
1
1
|
<% add_decidim_page_title(t("conference_speakers.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("conference_speakers.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_speaker_path(conference_speaker.conference, conference_speaker), html: { class: "form-defaults form edit_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.edit.update", scope: "decidim.admin"), class: "button button__sm button__secondary" %>
|
14
|
+
</div>
|
15
|
+
</div>
|
16
|
+
<% end %>
|
7
17
|
</div>
|
8
|
-
|
18
|
+
</div>
|
@@ -1,70 +1,67 @@
|
|
1
1
|
<% add_decidim_page_title(t("conference_speakers.index.conference_speakers_title", scope: "decidim.admin")) %>
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
2
|
+
|
3
|
+
<div class="card" id="conference_speakers">
|
4
|
+
<div class="item_show__header">
|
5
|
+
<h2 class="item_show__header-title">
|
6
|
+
<%= t("conference_speakers.index.conference_speakers_title", scope: "decidim.admin") %>
|
7
|
+
<% if allowed_to? :create, :conference_speaker %>
|
8
|
+
<%= link_to t("actions.new_speaker", scope: "decidim.admin"), new_conference_speaker_path(current_conference), class: "button button__sm button__secondary new" %>
|
9
|
+
<% end %>
|
10
|
+
</h2>
|
11
|
+
</div>
|
12
|
+
|
13
|
+
<div class="filters__section">
|
14
|
+
<div class="fcell search">
|
15
|
+
<%= form_tag "", method: :get do %>
|
6
16
|
<div class="input-group">
|
7
17
|
<%= search_field_tag :q, @query,label: false, class: "input-group-field", placeholder: t(".search") %>
|
8
18
|
<div class="input-group-button">
|
9
|
-
<button type="submit" class="
|
10
|
-
<%= icon "
|
19
|
+
<button type="submit" class="text-secondary" aria-label="<%= t("decidim.search.term_input_placeholder") %>">
|
20
|
+
<%= icon "search-line", class: "fill-secondary w-4 h-4" %>
|
11
21
|
</button>
|
12
22
|
</div>
|
13
23
|
</div>
|
14
|
-
</div>
|
15
|
-
<% end %>
|
16
|
-
</div>
|
17
|
-
</div>
|
18
|
-
|
19
|
-
<div class='card' id="conference_speakers">
|
20
|
-
<div class="card-divider">
|
21
|
-
<h2 class="card-title">
|
22
|
-
<%= t("conference_speakers.index.conference_speakers_title", scope: "decidim.admin") %>
|
23
|
-
<% if allowed_to? :create, :conference_speaker %>
|
24
|
-
<%= link_to t("actions.new", scope: "decidim.admin", name: t("models.conference_speaker.name", scope: "decidim.admin")), new_conference_speaker_path(current_conference), class: "button tiny button--title new" %>
|
25
24
|
<% end %>
|
26
|
-
</
|
25
|
+
</div>
|
27
26
|
</div>
|
28
27
|
|
29
|
-
<div class="
|
30
|
-
<
|
31
|
-
<
|
32
|
-
<
|
28
|
+
<div class="table-scroll">
|
29
|
+
<table class="table-list">
|
30
|
+
<thead>
|
31
|
+
<tr>
|
32
|
+
<th><%= t("models.conference_speaker.fields.full_name", scope: "decidim.admin") %></th>
|
33
|
+
<th><%= t("models.conference_speaker.fields.position", scope: "decidim.admin") %></th>
|
34
|
+
<th><%= t("models.conference_speaker.fields.affiliation", scope: "decidim.admin") %></th>
|
35
|
+
|
36
|
+
<th class="actions"></th>
|
37
|
+
</tr>
|
38
|
+
</thead>
|
39
|
+
<tbody>
|
40
|
+
<% @conference_speakers.each do |speaker| %>
|
41
|
+
<% speaker_presenter = Decidim::Admin::ConferenceSpeakerPresenter.new(speaker) %>
|
33
42
|
<tr>
|
34
|
-
<
|
35
|
-
|
36
|
-
|
43
|
+
<td>
|
44
|
+
<%= speaker_presenter.name %>
|
45
|
+
</td>
|
46
|
+
<td>
|
47
|
+
<%= translated_attribute(speaker.position) %>
|
48
|
+
</td>
|
49
|
+
<td>
|
50
|
+
<%= translated_attribute(speaker.affiliation) %>
|
51
|
+
</td>
|
52
|
+
<td class="table-list__actions">
|
53
|
+
<% if allowed_to? :update, :conference_speaker, speaker: speaker %>
|
54
|
+
<%= icon_link_to "pencil-line", edit_conference_speaker_path(current_conference, speaker), t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit" %>
|
55
|
+
<% end %>
|
37
56
|
|
38
|
-
|
57
|
+
<% if allowed_to? :destroy, :conference_speaker, speaker: speaker %>
|
58
|
+
<%= icon_link_to "delete-bin-line", conference_speaker_path(current_conference, speaker), 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>
|
39
61
|
</tr>
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
<% speaker_presenter = Decidim::Admin::ConferenceSpeakerPresenter.new(speaker) %>
|
44
|
-
<tr>
|
45
|
-
<td>
|
46
|
-
<%= speaker_presenter.name %>
|
47
|
-
</td>
|
48
|
-
<td>
|
49
|
-
<%= translated_attribute(speaker.position) %>
|
50
|
-
</td>
|
51
|
-
<td>
|
52
|
-
<%= translated_attribute(speaker.affiliation) %>
|
53
|
-
</td>
|
54
|
-
<td class="table-list__actions">
|
55
|
-
<% if allowed_to? :update, :conference_speaker, speaker: speaker %>
|
56
|
-
<%= icon_link_to "pencil", edit_conference_speaker_path(current_conference, speaker), t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit" %>
|
57
|
-
<% end %>
|
58
|
-
|
59
|
-
<% if allowed_to? :destroy, :conference_speaker, speaker: speaker %>
|
60
|
-
<%= icon_link_to "circle-x", conference_speaker_path(current_conference, speaker), t("actions.destroy", scope: "decidim.admin"), class: "action-icon--remove", method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %>
|
61
|
-
<% end %>
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
<% end %>
|
65
|
-
</tbody>
|
66
|
-
</table>
|
67
|
-
<%= paginate @conference_speakers, theme: "decidim" %>
|
68
|
-
</div>
|
62
|
+
<% end %>
|
63
|
+
</tbody>
|
64
|
+
</table>
|
69
65
|
</div>
|
66
|
+
<%= decidim_paginate @conference_speakers %>
|
70
67
|
</div>
|