decidim-conferences 0.15.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +38 -0
- data/Rakefile +3 -0
- data/app/assets/config/admin/decidim_conferences_manifest.js +2 -0
- data/app/assets/config/decidim_conferences_manifest.js +2 -0
- data/app/assets/images/decidim/conferences/conference.svg +6 -0
- data/app/assets/javascripts/decidim/conferences/admin/conference_invite_form.es6 +25 -0
- data/app/assets/javascripts/decidim/conferences/admin/conference_speakers.js.es6 +26 -0
- data/app/assets/javascripts/decidim/conferences/admin/conferences.js.es6 +30 -0
- data/app/assets/javascripts/decidim/conferences/conferences.js.es6 +0 -0
- data/app/cells/decidim/conferences/conference_address/show.erb +11 -0
- data/app/cells/decidim/conferences/conference_address_cell.rb +11 -0
- data/app/cells/decidim/conferences/conference_cell.rb +19 -0
- data/app/cells/decidim/conferences/conference_m/footer.erb +9 -0
- data/app/cells/decidim/conferences/conference_m/tags.erb +1 -0
- data/app/cells/decidim/conferences/conference_m_cell.rb +38 -0
- data/app/cells/decidim/conferences/conference_speaker/show.erb +84 -0
- data/app/cells/decidim/conferences/conference_speaker_cell.rb +86 -0
- data/app/cells/decidim/conferences/content_blocks/highlighted_conferences/show.erb +31 -0
- data/app/cells/decidim/conferences/content_blocks/highlighted_conferences_cell.rb +28 -0
- data/app/cells/decidim/conferences/join_conference_button/registration_confirm.erb +15 -0
- data/app/cells/decidim/conferences/join_conference_button/show.erb +25 -0
- data/app/cells/decidim/conferences/join_conference_button_cell.rb +42 -0
- data/app/cells/decidim/conferences/linked_participatory_spaces/show.erb +10 -0
- data/app/cells/decidim/conferences/linked_participatory_spaces_cell.rb +44 -0
- data/app/cells/decidim/conferences/media_link/show.erb +9 -0
- data/app/cells/decidim/conferences/media_link_cell.rb +14 -0
- data/app/cells/decidim/conferences/partner/show.erb +11 -0
- data/app/cells/decidim/conferences/partner_cell.rb +24 -0
- data/app/cells/decidim/conferences/photo/show.erb +28 -0
- data/app/cells/decidim/conferences/photo_cell.rb +41 -0
- data/app/cells/decidim/conferences/photos_list/show.erb +8 -0
- data/app/cells/decidim/conferences/photos_list_cell.rb +17 -0
- data/app/commands/decidim/conferences/admin/copy_conference.rb +80 -0
- data/app/commands/decidim/conferences/admin/create_conference.rb +120 -0
- data/app/commands/decidim/conferences/admin/create_conference_admin.rb +112 -0
- data/app/commands/decidim/conferences/admin/create_conference_speaker.rb +81 -0
- data/app/commands/decidim/conferences/admin/create_media_link.rb +66 -0
- data/app/commands/decidim/conferences/admin/create_partner.rb +68 -0
- data/app/commands/decidim/conferences/admin/destroy_conference_admin.rb +53 -0
- data/app/commands/decidim/conferences/admin/destroy_conference_speaker.rb +56 -0
- data/app/commands/decidim/conferences/admin/destroy_media_link.rb +56 -0
- data/app/commands/decidim/conferences/admin/destroy_partner.rb +56 -0
- data/app/commands/decidim/conferences/admin/export_conference_registrations.rb +44 -0
- data/app/commands/decidim/conferences/admin/invite_user_to_join_conference.rb +107 -0
- data/app/commands/decidim/conferences/admin/publish_conference.rb +39 -0
- data/app/commands/decidim/conferences/admin/unpublish_conference.rb +39 -0
- data/app/commands/decidim/conferences/admin/update_conference.rb +161 -0
- data/app/commands/decidim/conferences/admin/update_conference_admin.rb +52 -0
- data/app/commands/decidim/conferences/admin/update_conference_speaker.rb +80 -0
- data/app/commands/decidim/conferences/admin/update_media_link.rb +64 -0
- data/app/commands/decidim/conferences/admin/update_partner.rb +63 -0
- data/app/commands/decidim/conferences/decline_invitation.rb +45 -0
- data/app/commands/decidim/conferences/join_conference.rb +88 -0
- data/app/commands/decidim/conferences/leave_conference.rb +52 -0
- data/app/constraints/decidim/conferences/current_component.rb +28 -0
- data/app/constraints/decidim/conferences/current_conference.rb +43 -0
- data/app/controllers/concerns/decidim/conferences/admin/conference_context.rb +19 -0
- data/app/controllers/decidim/conferences/admin/application_controller.rb +25 -0
- data/app/controllers/decidim/conferences/admin/categories_controller.rb +13 -0
- data/app/controllers/decidim/conferences/admin/component_permissions_controller.rb +14 -0
- data/app/controllers/decidim/conferences/admin/components_controller.rb +14 -0
- data/app/controllers/decidim/conferences/admin/concerns/conference_admin.rb +48 -0
- data/app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb +26 -0
- data/app/controllers/decidim/conferences/admin/conference_attachments_controller.rb +27 -0
- data/app/controllers/decidim/conferences/admin/conference_copies_controller.rb +35 -0
- data/app/controllers/decidim/conferences/admin/conference_invites_controller.rb +55 -0
- data/app/controllers/decidim/conferences/admin/conference_publications_controller.rb +45 -0
- data/app/controllers/decidim/conferences/admin/conference_registrations_controller.rb +39 -0
- data/app/controllers/decidim/conferences/admin/conference_speakers_controller.rb +86 -0
- data/app/controllers/decidim/conferences/admin/conference_user_roles_controller.rb +101 -0
- data/app/controllers/decidim/conferences/admin/conferences_controller.rb +103 -0
- data/app/controllers/decidim/conferences/admin/exports_controller.rb +14 -0
- data/app/controllers/decidim/conferences/admin/media_links_controller.rb +82 -0
- data/app/controllers/decidim/conferences/admin/moderations_controller.rb +12 -0
- data/app/controllers/decidim/conferences/admin/partners_controller.rb +83 -0
- data/app/controllers/decidim/conferences/application_controller.rb +32 -0
- data/app/controllers/decidim/conferences/conference_program_controller.rb +50 -0
- data/app/controllers/decidim/conferences/conference_registrations_controller.rb +68 -0
- data/app/controllers/decidim/conferences/conference_speakers_controller.rb +39 -0
- data/app/controllers/decidim/conferences/conference_widgets_controller.rb +23 -0
- data/app/controllers/decidim/conferences/conferences_controller.rb +59 -0
- data/app/controllers/decidim/conferences/media_controller.rb +41 -0
- data/app/events/decidim/conferences/conference_registrations_enabled_event.rb +8 -0
- data/app/events/decidim/conferences/conference_registrations_over_percentage_event.rb +13 -0
- data/app/events/decidim/conferences/upcoming_conference_event.rb +8 -0
- data/app/events/decidim/conferences/update_conference_event.rb +8 -0
- data/app/forms/decidim/conferences/admin/conference_copy_form.rb +34 -0
- data/app/forms/decidim/conferences/admin/conference_form.rb +109 -0
- data/app/forms/decidim/conferences/admin/conference_registration_invite_form.rb +24 -0
- data/app/forms/decidim/conferences/admin/conference_speaker_form.rb +76 -0
- data/app/forms/decidim/conferences/admin/conference_user_role_form.rb +30 -0
- data/app/forms/decidim/conferences/admin/media_link_form.rb +42 -0
- data/app/forms/decidim/conferences/admin/partner_form.rb +53 -0
- data/app/helpers/decidim/conferences/admin/conference_speakers_helper.rb +14 -0
- data/app/helpers/decidim/conferences/admin/conferences_helper.rb +28 -0
- data/app/helpers/decidim/conferences/conference_program_helper.rb +21 -0
- data/app/helpers/decidim/conferences/media_attachments_helper.rb +29 -0
- data/app/helpers/decidim/conferences/partners_helper.rb +15 -0
- data/app/jobs/decidim/conferences/upcoming_conference_notification_job.rb +33 -0
- data/app/mailers/decidim/conferences/admin/invite_join_conference_mailer.rb +43 -0
- data/app/mailers/decidim/conferences/conference_registration_mailer.rb +44 -0
- data/app/models/decidim/conference.rb +90 -0
- data/app/models/decidim/conference_meeting.rb +9 -0
- data/app/models/decidim/conference_speaker.rb +34 -0
- data/app/models/decidim/conference_speaker_conference_meeting.rb +8 -0
- data/app/models/decidim/conference_user_role.rb +30 -0
- data/app/models/decidim/conferences/conference_invite.rb +38 -0
- data/app/models/decidim/conferences/conference_registration.rb +23 -0
- data/app/models/decidim/conferences/media_link.rb +17 -0
- data/app/models/decidim/conferences/partner.rb +25 -0
- data/app/permissions/decidim/conferences/permissions.rb +304 -0
- data/app/presenters/decidim/admin/conference_speaker_presenter.rb +18 -0
- data/app/presenters/decidim/conference_meeting_presenter.rb +7 -0
- data/app/presenters/decidim/conference_speaker_presenter.rb +42 -0
- data/app/presenters/decidim/conferences/admin_log/conference_invite_presenter.rb +35 -0
- data/app/presenters/decidim/conferences/admin_log/conference_speaker_presenter.rb +52 -0
- data/app/presenters/decidim/conferences/admin_log/conferences_presenter.rb +55 -0
- data/app/presenters/decidim/conferences/admin_log/conferences_user_role_presenter.rb +53 -0
- data/app/presenters/decidim/conferences/admin_log/media_link_presenter.rb +45 -0
- data/app/presenters/decidim/conferences/admin_log/partner_presenter.rb +47 -0
- data/app/presenters/decidim/conferences/admin_log/value_types/role_presenter.rb +22 -0
- data/app/presenters/decidim/conferences/conference_invite_presenter.rb +26 -0
- data/app/presenters/decidim/conferences/conference_stats_presenter.rb +52 -0
- data/app/presenters/decidim/log/value_types/conference_presenter.rb +28 -0
- data/app/queries/decidim/conferences/admin/admin_users.rb +39 -0
- data/app/queries/decidim/conferences/admin/conference_invites.rb +59 -0
- data/app/queries/decidim/conferences/admin/conference_speakers.rb +40 -0
- data/app/queries/decidim/conferences/conference_program_meetings.rb +17 -0
- data/app/queries/decidim/conferences/conference_program_meetings_by_day.rb +20 -0
- data/app/queries/decidim/conferences/conferences_with_user_role.rb +48 -0
- data/app/queries/decidim/conferences/organization_conferences.rb +16 -0
- data/app/queries/decidim/conferences/organization_prioritized_conferences.rb +21 -0
- data/app/queries/decidim/conferences/organization_published_conferences.rb +21 -0
- data/app/queries/decidim/conferences/prioritized_conferences.rb +13 -0
- data/app/queries/decidim/conferences/promoted_conferences.rb +12 -0
- data/app/queries/decidim/conferences/published_conferences.rb +12 -0
- data/app/queries/decidim/conferences/visible_conferences.rb +12 -0
- data/app/serializers/decidim/conferences/conference_registration_serializer.rb +18 -0
- data/app/serializers/decidim/conferences/data_portability_conference_invite_serializer.rb +31 -0
- data/app/serializers/decidim/conferences/data_portability_conference_registration_serializer.rb +28 -0
- data/app/uploaders/decidim/conferences/partner_logo_uploader.rb +15 -0
- data/app/views/decidim/conference_speakers/_conference_speaker.html.erb +1 -0
- data/app/views/decidim/conferences/_conference.html.erb +1 -0
- data/app/views/decidim/conferences/_order_by_conferences.html.erb +3 -0
- data/app/views/decidim/conferences/admin/conference_copies/_form.html.erb +37 -0
- data/app/views/decidim/conferences/admin/conference_copies/new.html.erb +7 -0
- data/app/views/decidim/conferences/admin/conference_invites/_form.html.erb +30 -0
- data/app/views/decidim/conferences/admin/conference_invites/index.html.erb +83 -0
- data/app/views/decidim/conferences/admin/conference_invites/new.html.erb +21 -0
- data/app/views/decidim/conferences/admin/conference_registrations/index.html.erb +43 -0
- data/app/views/decidim/conferences/admin/conference_speakers/_form.html.erb +61 -0
- data/app/views/decidim/conferences/admin/conference_speakers/edit.html.erb +7 -0
- data/app/views/decidim/conferences/admin/conference_speakers/index.html.erb +68 -0
- data/app/views/decidim/conferences/admin/conference_speakers/new.html.erb +7 -0
- data/app/views/decidim/conferences/admin/conference_user_roles/_form.html.erb +22 -0
- data/app/views/decidim/conferences/admin/conference_user_roles/edit.html.erb +7 -0
- data/app/views/decidim/conferences/admin/conference_user_roles/index.html.erb +65 -0
- data/app/views/decidim/conferences/admin/conference_user_roles/new.html.erb +7 -0
- data/app/views/decidim/conferences/admin/conferences/_form.html.erb +122 -0
- data/app/views/decidim/conferences/admin/conferences/edit.html.erb +18 -0
- data/app/views/decidim/conferences/admin/conferences/index.html.erb +65 -0
- data/app/views/decidim/conferences/admin/conferences/new.html.erb +11 -0
- data/app/views/decidim/conferences/admin/invite_join_conference_mailer/invite.html.erb +12 -0
- data/app/views/decidim/conferences/admin/media_links/_form.html.erb +25 -0
- data/app/views/decidim/conferences/admin/media_links/edit.html.erb +7 -0
- data/app/views/decidim/conferences/admin/media_links/index.html.erb +51 -0
- data/app/views/decidim/conferences/admin/media_links/new.html.erb +7 -0
- data/app/views/decidim/conferences/admin/partners/_form.html.erb +30 -0
- data/app/views/decidim/conferences/admin/partners/edit.html.erb +7 -0
- data/app/views/decidim/conferences/admin/partners/index.html.erb +56 -0
- data/app/views/decidim/conferences/admin/partners/new.html.erb +7 -0
- data/app/views/decidim/conferences/conference_program/_program_item.html.erb +31 -0
- data/app/views/decidim/conferences/conference_program/_program_meeting.html.erb +68 -0
- data/app/views/decidim/conferences/conference_program/show.html.erb +54 -0
- data/app/views/decidim/conferences/conference_registration_mailer/confirmation.html.erb +3 -0
- data/app/views/decidim/conferences/conference_speakers/index.html.erb +19 -0
- data/app/views/decidim/conferences/conference_widgets/show.html.erb +11 -0
- data/app/views/decidim/conferences/conferences/_conferences_sidebar.html.erb +11 -0
- data/app/views/decidim/conferences/conferences/_partners.html.erb +15 -0
- data/app/views/decidim/conferences/conferences/_promoted_conference.html.erb +27 -0
- data/app/views/decidim/conferences/conferences/_statistics.html.erb +10 -0
- data/app/views/decidim/conferences/conferences/index.html.erb +25 -0
- data/app/views/decidim/conferences/conferences/show.html.erb +105 -0
- data/app/views/decidim/conferences/media/_attachments.html.erb +6 -0
- data/app/views/decidim/conferences/media/index.html.erb +31 -0
- data/app/views/devise/mailer/join_conference.html.erb +13 -0
- data/app/views/devise/mailer/join_conference.text.erb +11 -0
- data/app/views/layouts/decidim/_conference_hero.html.erb +44 -0
- data/app/views/layouts/decidim/_conferences_nav.html.erb +90 -0
- data/app/views/layouts/decidim/admin/conference.html.erb +100 -0
- data/app/views/layouts/decidim/admin/conferences.html.erb +11 -0
- data/app/views/layouts/decidim/conference.html.erb +28 -0
- data/config/locales/ca.yml +464 -0
- data/config/locales/de.yml +464 -0
- data/config/locales/en.yml +467 -0
- data/config/locales/es-PY.yml +464 -0
- data/config/locales/es.yml +464 -0
- data/config/locales/eu.yml +464 -0
- data/config/locales/fi.yml +464 -0
- data/config/locales/fr.yml +464 -0
- data/config/locales/gl.yml +464 -0
- data/config/locales/hu.yml +464 -0
- data/config/locales/it.yml +464 -0
- data/config/locales/nl.yml +464 -0
- data/config/locales/pl.yml +476 -0
- data/config/locales/pt-BR.yml +464 -0
- data/config/locales/pt.yml +464 -0
- data/config/locales/ru.yml +1 -0
- data/config/locales/sv.yml +464 -0
- data/config/locales/uk.yml +1 -0
- data/db/migrate/20180626151505_add_conferences.rb +40 -0
- data/db/migrate/20180626152015_add_conference_user_roles.rb +17 -0
- data/db/migrate/20180702084256_add_conference_speakers.rb +19 -0
- data/db/migrate/20180706104306_add_conference_invites.rb +16 -0
- data/db/migrate/20180706104825_add_conference_registrations.rb +17 -0
- data/db/migrate/20181004144411_add_conferences_partner.rb +18 -0
- data/db/migrate/20181010133930_add_relation_between_speaker_and_meeting.rb +10 -0
- data/db/migrate/20181015100301_add_conference_media_link.rb +15 -0
- 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
- data/lib/decidim/conferences.rb +12 -0
- data/lib/decidim/conferences/admin.rb +10 -0
- data/lib/decidim/conferences/admin_engine.rb +86 -0
- data/lib/decidim/conferences/engine.rb +80 -0
- data/lib/decidim/conferences/participatory_space.rb +177 -0
- data/lib/decidim/conferences/test/factories.rb +153 -0
- data/lib/decidim/conferences/version.rb +10 -0
- metadata +330 -0
@@ -0,0 +1,7 @@
|
|
1
|
+
<%= decidim_form_for(@form, html: { class: "form new_conference_user_role" }) do |f| %>
|
2
|
+
<%= render partial: "form", object: f, locals: { title: t("conference_user_roles.new.title", scope: "decidim.admin") } %>
|
3
|
+
|
4
|
+
<div class="button--double form-general-submit">
|
5
|
+
<%= f.submit t("conference_user_roles.new.create", scope: "decidim.admin") %>
|
6
|
+
</div>
|
7
|
+
<% end %>
|
@@ -0,0 +1,122 @@
|
|
1
|
+
<%= javascript_include_tag "decidim/slug_form" %>
|
2
|
+
|
3
|
+
<div class="card">
|
4
|
+
<div class="card-divider">
|
5
|
+
<h2 class="card-title"><%= t "conferences.form.title", scope: "decidim.admin" %></h2>
|
6
|
+
</div>
|
7
|
+
|
8
|
+
<div class="card-section">
|
9
|
+
<div class="row column">
|
10
|
+
<%= form.translated :text_field, :title, autofocus: true %>
|
11
|
+
</div>
|
12
|
+
|
13
|
+
<div class="row column">
|
14
|
+
<%= form.translated :text_field, :slogan %>
|
15
|
+
</div>
|
16
|
+
|
17
|
+
<div class="row">
|
18
|
+
<div class="columns xlarge-6 slug">
|
19
|
+
<%= form.text_field :slug %>
|
20
|
+
<p class="help-text"><%== t(".slug_help", url: decidim_form_slug_url(:conferences, form.object.slug)) %></p>
|
21
|
+
</div>
|
22
|
+
|
23
|
+
<div class="columns xlarge-6">
|
24
|
+
<%= form.text_field :hashtag %>
|
25
|
+
</div>
|
26
|
+
</div>
|
27
|
+
|
28
|
+
<div class="row column">
|
29
|
+
<%= form.check_box :promoted %>
|
30
|
+
</div>
|
31
|
+
|
32
|
+
<div class="row column">
|
33
|
+
<%= form.translated :editor, :short_description %>
|
34
|
+
</div>
|
35
|
+
|
36
|
+
<div class="row column">
|
37
|
+
<%= form.translated :editor, :description, toolbar: :full, lines: 25 %>
|
38
|
+
</div>
|
39
|
+
|
40
|
+
<div class="row column">
|
41
|
+
<%= form.translated :editor, :objectives, toolbar: :full, lines: 25 %>
|
42
|
+
</div>
|
43
|
+
|
44
|
+
<div class="row column">
|
45
|
+
<%= form.text_field :location %>
|
46
|
+
</div>
|
47
|
+
|
48
|
+
<div class="row">
|
49
|
+
<div class="columns xlarge-6">
|
50
|
+
<%= form.upload :hero_image %>
|
51
|
+
</div>
|
52
|
+
|
53
|
+
<div class="columns xlarge-6">
|
54
|
+
<%= form.upload :banner_image %>
|
55
|
+
</div>
|
56
|
+
</div>
|
57
|
+
|
58
|
+
<div class="row column">
|
59
|
+
<%= form.check_box :scopes_enabled %>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<div class="row column">
|
63
|
+
<%= scopes_picker_field form, :scope_id, root: nil %>
|
64
|
+
</div>
|
65
|
+
|
66
|
+
<div class="row column">
|
67
|
+
<%= form.check_box :show_statistics %>
|
68
|
+
</div>
|
69
|
+
|
70
|
+
<div class="row column">
|
71
|
+
<%= form.date_field :start_date %>
|
72
|
+
</div>
|
73
|
+
|
74
|
+
<div class="row column">
|
75
|
+
<%= form.date_field :end_date %>
|
76
|
+
</div>
|
77
|
+
|
78
|
+
<div class="row column">
|
79
|
+
<%= form.check_box :registrations_enabled %>
|
80
|
+
</div>
|
81
|
+
|
82
|
+
<div class="row column">
|
83
|
+
<p><%= t(".registrations_count", count: current_participatory_space.present? ? current_participatory_space.conference_registrations.count : 0) %></p>
|
84
|
+
<%= form.number_field :available_slots %>
|
85
|
+
<p class="help-text"><%= t(".available_slots_help") %></p>
|
86
|
+
</div>
|
87
|
+
|
88
|
+
<div class="row column" id="conference_registrations_terms">
|
89
|
+
<%= form.translated :editor, :registration_terms %>
|
90
|
+
</div>
|
91
|
+
|
92
|
+
<div class="row column">
|
93
|
+
<% if @form.processes_for_select %>
|
94
|
+
<%= form.select :participatory_processes_ids,
|
95
|
+
options_for_select(@form.processes_for_select, selected: processes_selected ),
|
96
|
+
{ include_blank: true },
|
97
|
+
{ multiple: true, class: "chosen-select" } %>
|
98
|
+
<% end %>
|
99
|
+
</div>
|
100
|
+
|
101
|
+
<div class="row column">
|
102
|
+
<% if @form.assemblies_for_select %>
|
103
|
+
<%= form.select :assemblies_ids,
|
104
|
+
options_for_select(@form.assemblies_for_select, selected: assemblies_selected ),
|
105
|
+
{ include_blank: true },
|
106
|
+
{ multiple: true, class: "chosen-select" } %>
|
107
|
+
<% end %>
|
108
|
+
</div>
|
109
|
+
|
110
|
+
<div class="row column">
|
111
|
+
<% if @form.consultations_for_select %>
|
112
|
+
<%= form.select :consultations_ids,
|
113
|
+
options_for_select(@form.consultations_for_select, selected: consultations_selected ),
|
114
|
+
{ include_blank: true },
|
115
|
+
{ multiple: true, class: "chosen-select" } %>
|
116
|
+
<% end %>
|
117
|
+
</div>
|
118
|
+
|
119
|
+
</div>
|
120
|
+
</div>
|
121
|
+
|
122
|
+
<%= javascript_include_tag "decidim/conferences/admin/conferences" %>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<%= decidim_form_for(@form, html: { class: "form edit_conference conference_form_admin" }) do |f| %>
|
2
|
+
<%= render partial: "form", object: f %>
|
3
|
+
<div class="button--double form-general-submit">
|
4
|
+
<%= f.submit t("conferences.edit.update", scope: "decidim.admin"), class: "button" %>
|
5
|
+
|
6
|
+
<% if allowed_to? :publish, :conference, conference: current_conference %>
|
7
|
+
<% if current_conference.published? %>
|
8
|
+
<%= link_to t("actions.unpublish", scope: "decidim.admin"), conference_publish_path(current_conference), method: :delete, class: "button muted" %>
|
9
|
+
<% else %>
|
10
|
+
<%= link_to t("actions.publish", scope: "decidim.admin"), conference_publish_path(current_conference), method: :post, class: "button hollow" %>
|
11
|
+
<% end %>
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
<% if allowed_to? :destroy, :conference, conference: current_conference %>
|
15
|
+
<%= link_to t("decidim.admin.actions.destroy"), current_conference, method: :delete, class: "alert button", data: { confirm: t("decidim.admin.actions.confirm_destroy") } %>
|
16
|
+
<% end %>
|
17
|
+
</div>
|
18
|
+
<% end %>
|
@@ -0,0 +1,65 @@
|
|
1
|
+
<div class="card" id="conferences">
|
2
|
+
<div class="card-divider">
|
3
|
+
<h2 class="card-title">
|
4
|
+
<%= t "decidim.admin.titles.conferences" %>
|
5
|
+
<%= link_to t("actions.new_conference", scope: "decidim.admin"), new_conference_path, class: "button tiny button--title" if allowed_to? :create, :conference %>
|
6
|
+
</h2>
|
7
|
+
</div>
|
8
|
+
<div class="card-section">
|
9
|
+
<div class="table-scroll">
|
10
|
+
<table class="table-list">
|
11
|
+
<thead>
|
12
|
+
<tr>
|
13
|
+
<th><%= t("models.conference.fields.title", scope: "decidim.admin") %></th>
|
14
|
+
<th><%= t("models.conference.fields.created_at", scope: "decidim.admin") %></th>
|
15
|
+
<th class="table-list__actions"><%= t("models.conference.fields.published", scope: "decidim.admin") %></th>
|
16
|
+
<th></th>
|
17
|
+
</tr>
|
18
|
+
</thead>
|
19
|
+
<tbody>
|
20
|
+
<% @conferences.each do |conference| %>
|
21
|
+
<tr>
|
22
|
+
<td>
|
23
|
+
<% if conference.promoted? %>
|
24
|
+
<span data-tooltip class="icon-state icon-highlight" aria-haspopup="true" data-disable-hover="false" title="<%= t("models.conference.fields.promoted", scope: "decidim.admin") %>">
|
25
|
+
<%= icon "star" %>
|
26
|
+
</span>
|
27
|
+
<% end %>
|
28
|
+
<% if allowed_to? :update, :conference, conference: conference %>
|
29
|
+
<%= link_to translated_attribute(conference.title), edit_conference_path(conference) %><br />
|
30
|
+
<% elsif allowed_to? :preview, :conference, conference: conference %>
|
31
|
+
<%= link_to translated_attribute(conference.title), decidim_conferences.conference_path(conference) %><br />
|
32
|
+
<% elsif allowed_to? :read, :moderation, conference: conference %>
|
33
|
+
<%= link_to translated_attribute(conference.title), moderations_path(conference) %><br />
|
34
|
+
<% else %>
|
35
|
+
<%= translated_attribute(conference.title) %>
|
36
|
+
<% end %>
|
37
|
+
</td>
|
38
|
+
<td>
|
39
|
+
<%= l conference.created_at, format: :short %>
|
40
|
+
</td>
|
41
|
+
<td class="table-list__state">
|
42
|
+
<% if conference.published? %>
|
43
|
+
<strong class="text-success"><%= t("conferences.index.published", scope: "decidim.admin") %></strong>
|
44
|
+
<% else %>
|
45
|
+
<strong class="text-alert"><%= t("conferences.index.not_published", scope: "decidim.admin") %></strong>
|
46
|
+
<% end %>
|
47
|
+
</td>
|
48
|
+
<td class="table-list__actions">
|
49
|
+
<% if allowed_to? :create, :conference, conference: conference %>
|
50
|
+
<%= icon_link_to "clipboard", new_conference_copy_path(conference), t("actions.duplicate", scope: "decidim.admin"), class: "action-icon--copy" %>
|
51
|
+
<% end %>
|
52
|
+
<% if allowed_to? :update, :conference, conference: conference %>
|
53
|
+
<%= icon_link_to "pencil", edit_conference_path(conference), t("actions.configure", scope: "decidim.admin"), class: "action-icon--new" %>
|
54
|
+
<% end %>
|
55
|
+
<% if allowed_to? :preview, :conference, conference: conference %>
|
56
|
+
<%= icon_link_to "eye", decidim_conferences.conference_path(conference), t("actions.preview", scope: "decidim.admin"), class: "action-icon--preview" %>
|
57
|
+
<% end %>
|
58
|
+
</td>
|
59
|
+
</tr>
|
60
|
+
<% end %>
|
61
|
+
</tbody>
|
62
|
+
</table>
|
63
|
+
</div>
|
64
|
+
</div>
|
65
|
+
</div>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<h2 class="conference-title-summary">
|
2
|
+
<%= t "conferences.new.title", scope: "decidim.admin" %>
|
3
|
+
</h2>
|
4
|
+
|
5
|
+
<%= decidim_form_for(@form, html: { class: "form new_conference conference_form_admin" }) do |f| %>
|
6
|
+
<%= render partial: "form", object: f %>
|
7
|
+
|
8
|
+
<div class="button--double form-general-submit">
|
9
|
+
<%= f.submit t("conferences.new.create", scope: "decidim.admin") %>
|
10
|
+
</div>
|
11
|
+
<% end %>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<p><%= t("devise.mailer.invitation_instructions.hello", email: @user.name) %></p>
|
2
|
+
|
3
|
+
<p>
|
4
|
+
<%= t ".invited_you_to_join_a_conference", invited_by: @invited_by.name, application: @user.organization.name %>
|
5
|
+
</p>
|
6
|
+
|
7
|
+
<p>
|
8
|
+
<%= link_to t(".decline", conference_title: translated_attribute(@conference.title)),routes.decline_invitation_conference_conference_registration_path(conference_slug: @conference.slug) %>
|
9
|
+
</p>
|
10
|
+
<p>
|
11
|
+
<%= link_to t(".join", conference_title: translated_attribute(@conference.title)),routes.conference_conference_registration_url(conference_slug: @conference.slug) %>
|
12
|
+
</p>
|
@@ -0,0 +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.translated :text_field, :title %>
|
11
|
+
</div>
|
12
|
+
|
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>
|
20
|
+
|
21
|
+
<div class="row column">
|
22
|
+
<%= form.number_field :weight %>
|
23
|
+
</div>
|
24
|
+
</div>
|
25
|
+
</div>
|
@@ -0,0 +1,7 @@
|
|
1
|
+
<%= decidim_form_for(@form, url: conference_media_link_path(@media_link.conference, @media_link), html: { class: "form edit_media_link" }) do |f| %>
|
2
|
+
<%= render partial: "form", object: f, locals: { title: t("media_links.edit.title", scope: "decidim.admin") } %>
|
3
|
+
|
4
|
+
<div class="button--double form-general-submit">
|
5
|
+
<%= f.submit t("media_links.edit.update", scope: "decidim.admin") %>
|
6
|
+
</div>
|
7
|
+
<% end %>
|
@@ -0,0 +1,51 @@
|
|
1
|
+
<div class='card' id="media_links">
|
2
|
+
<div class="card-divider">
|
3
|
+
<h2 class="card-title">
|
4
|
+
<%= t("media_links.index.media_links_title", scope: "decidim.admin") %>
|
5
|
+
<% if allowed_to? :create, :media_link %>
|
6
|
+
<%= 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
|
+
<% end %>
|
8
|
+
</h2>
|
9
|
+
</div>
|
10
|
+
|
11
|
+
<div class="card-section">
|
12
|
+
<div class="table-scroll">
|
13
|
+
<table class="stack">
|
14
|
+
<thead>
|
15
|
+
<tr>
|
16
|
+
<th><%= t("models.media_link.fields.title", scope: "decidim.admin") %></th>
|
17
|
+
<th><%= t("models.media_link.fields.link", scope: "decidim.admin") %></th>
|
18
|
+
<th><%= t("models.media_link.fields.date", scope: "decidim.admin") %></th>
|
19
|
+
|
20
|
+
<th class="actions"></th>
|
21
|
+
</tr>
|
22
|
+
</thead>
|
23
|
+
<tbody>
|
24
|
+
<% @media_links.each do |media_link| %>
|
25
|
+
<tr>
|
26
|
+
<td>
|
27
|
+
<%= translated_attribute(media_link.title) %>
|
28
|
+
</td>
|
29
|
+
<td>
|
30
|
+
<%= media_link.link %>
|
31
|
+
</td>
|
32
|
+
<td>
|
33
|
+
<%= l(media_link.date, format: :decidim_short ) %>
|
34
|
+
</td>
|
35
|
+
<td class="table-list__actions">
|
36
|
+
<% if allowed_to? :update, :media_link, media_link: media_link %>
|
37
|
+
<%= icon_link_to "pencil", edit_conference_media_link_path(current_conference, media_link), t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit" %>
|
38
|
+
<% end %>
|
39
|
+
|
40
|
+
<% if allowed_to? :destroy, :media_link, media_link: media_link %>
|
41
|
+
<%= 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") } %>
|
42
|
+
<% end %>
|
43
|
+
</td>
|
44
|
+
</tr>
|
45
|
+
<% end %>
|
46
|
+
</tbody>
|
47
|
+
</table>
|
48
|
+
<%= paginate @media_links, theme: "decidim" %>
|
49
|
+
</div>
|
50
|
+
</div>
|
51
|
+
</div>
|
@@ -0,0 +1,7 @@
|
|
1
|
+
<%= decidim_form_for(@form, html: { class: "form new_media_link" }) do |f| %>
|
2
|
+
<%= render partial: "form", object: f, locals: { title: t("media_links.new.title", scope: "decidim.admin") } %>
|
3
|
+
|
4
|
+
<div class="button--double form-general-submit">
|
5
|
+
<%= f.submit t("media_links.new.create", scope: "decidim.admin") %>
|
6
|
+
</div>
|
7
|
+
<% end %>
|
@@ -0,0 +1,30 @@
|
|
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>
|
12
|
+
|
13
|
+
<div class="row column">
|
14
|
+
<%= form.label :partner_type %>
|
15
|
+
<%= select :conference_partner, :partner_type, @form.types, include_blank: false %>
|
16
|
+
</div>
|
17
|
+
|
18
|
+
<div class="row column">
|
19
|
+
<%= form.number_field :weight %>
|
20
|
+
</div>
|
21
|
+
|
22
|
+
<div class="row column">
|
23
|
+
<%= form.url_field :link %>
|
24
|
+
</div>
|
25
|
+
|
26
|
+
<div class="row column">
|
27
|
+
<%= form.upload :logo, optional: false %>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
</div>
|
@@ -0,0 +1,7 @@
|
|
1
|
+
<%= decidim_form_for(@form, url: conference_partner_path(@partner.conference, @partner), html: { class: "form edit_partner" }) do |f| %>
|
2
|
+
<%= render partial: "form", object: f, locals: { title: t("partners.edit.title", scope: "decidim.admin") } %>
|
3
|
+
|
4
|
+
<div class="button--double form-general-submit">
|
5
|
+
<%= f.submit t("partners.edit.update", scope: "decidim.admin") %>
|
6
|
+
</div>
|
7
|
+
<% end %>
|
@@ -0,0 +1,56 @@
|
|
1
|
+
<div class='card' id="partners">
|
2
|
+
<div class="card-divider">
|
3
|
+
<h2 class="card-title">
|
4
|
+
<%= t(".title") %>
|
5
|
+
<% if allowed_to? :create, :partner %>
|
6
|
+
<%= 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
|
+
<% end %>
|
8
|
+
</h2>
|
9
|
+
</div>
|
10
|
+
|
11
|
+
<div class="card-section">
|
12
|
+
<div class="table-scroll">
|
13
|
+
<table class="stack">
|
14
|
+
<thead>
|
15
|
+
<tr>
|
16
|
+
<th><%= t("models.partner.fields.name", scope: "decidim.admin") %></th>
|
17
|
+
<th><%= t("models.partner.fields.partner_type", scope: "decidim.admin") %></th>
|
18
|
+
<th><%= t("models.partner.fields.link", scope: "decidim.admin") %></th>
|
19
|
+
<th><%= t("models.partner.fields.logo", scope: "decidim.admin") %></th>
|
20
|
+
|
21
|
+
<th class="actions"></th>
|
22
|
+
</tr>
|
23
|
+
</thead>
|
24
|
+
<tbody>
|
25
|
+
<% @partners.each do |partner| %>
|
26
|
+
<tr>
|
27
|
+
<td>
|
28
|
+
<%= partner.name %>
|
29
|
+
</td>
|
30
|
+
<td>
|
31
|
+
<%= t("#{partner.partner_type}", scope: "decidim.admin.models.partner.types") %>
|
32
|
+
</td>
|
33
|
+
<td>
|
34
|
+
<% if partner.link.presence %>
|
35
|
+
<%= link_to partner.link, partner.link, target: "_blank" %>
|
36
|
+
<% end %>
|
37
|
+
</td>
|
38
|
+
<td>
|
39
|
+
<%= image_tag(partner.logo.thumb.url) %>
|
40
|
+
</td>
|
41
|
+
<td class="table-list__actions">
|
42
|
+
<% if allowed_to? :update, :partner, partner: partner %>
|
43
|
+
<%= icon_link_to "pencil", edit_conference_partner_path(current_conference, partner), t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit" %>
|
44
|
+
<% end %>
|
45
|
+
|
46
|
+
<% if allowed_to? :destroy, :partner, partner: partner %>
|
47
|
+
<%= 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") } %>
|
48
|
+
<% end %>
|
49
|
+
</td>
|
50
|
+
</tr>
|
51
|
+
<% end %>
|
52
|
+
</tbody>
|
53
|
+
</table>
|
54
|
+
</div>
|
55
|
+
</div>
|
56
|
+
</div>
|
@@ -0,0 +1,7 @@
|
|
1
|
+
<%= decidim_form_for(@form, html: { class: "form new_partner" }) do |f| %>
|
2
|
+
<%= render partial: "form", object: f, locals: { title: t("partners.new.title", scope: "decidim.admin") } %>
|
3
|
+
|
4
|
+
<div class="button--double form-general-submit">
|
5
|
+
<%= f.submit t("partners.new.create", scope: "decidim.admin") %>
|
6
|
+
</div>
|
7
|
+
<% end %>
|