decidim-admin 0.21.0 → 0.23.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of decidim-admin might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/app/assets/javascripts/decidim/admin/application.js.es6 +7 -0
- data/app/assets/javascripts/decidim/admin/budget_rule_toggler.component.js.es6 +52 -0
- data/app/assets/javascripts/decidim/admin/bundle.js +26 -32
- data/app/assets/javascripts/decidim/admin/bundle.js.map +1 -1
- data/app/assets/javascripts/decidim/admin/choose_language.js +12 -0
- data/app/assets/javascripts/decidim/admin/dynamic_fields.component.js.es6 +24 -5
- data/app/assets/javascripts/decidim/admin/form.js.es6 +24 -10
- data/app/assets/javascripts/decidim/admin/gallery.js.es6 +5 -0
- data/app/assets/javascripts/decidim/admin/newsletters.js.es6 +4 -0
- data/app/assets/javascripts/decidim/admin/officializations.js.es6 +20 -0
- data/app/assets/javascripts/decidim/admin/scope_picker_enabler.component.js.es6 +14 -0
- data/app/assets/stylesheets/decidim/admin/_decidim.scss +2 -0
- data/app/assets/stylesheets/decidim/admin/_variables.scss +1 -1
- data/app/assets/stylesheets/decidim/admin/extra/_newsletter-templates-gallery.scss +3 -0
- data/app/assets/stylesheets/decidim/admin/extra/_organization-appearance.scss +141 -0
- data/app/assets/stylesheets/decidim/admin/extra/_show_email.scss +31 -0
- data/app/assets/stylesheets/decidim/admin/extra/_title_bar.scss +4 -0
- data/app/assets/stylesheets/decidim/admin/modules/_buttons.scss +11 -1
- data/app/assets/stylesheets/decidim/admin/modules/_callouts.scss +11 -0
- data/app/assets/stylesheets/decidim/admin/modules/_cards.scss +2 -2
- data/app/assets/stylesheets/decidim/admin/modules/_filters.scss +2 -2
- data/app/assets/stylesheets/decidim/admin/modules/_forms.scss +16 -2
- data/app/assets/stylesheets/decidim/admin/modules/_import_result.scss +10 -0
- data/app/assets/stylesheets/decidim/admin/modules/_loading-spinner.scss +19 -0
- data/app/assets/stylesheets/decidim/admin/modules/_main-nav.scss +0 -1
- data/app/assets/stylesheets/decidim/admin/modules/_modules.scss +5 -1
- data/app/assets/stylesheets/decidim/admin/modules/_process-header.scss +0 -1
- data/app/assets/stylesheets/decidim/admin/modules/_secondary-nav.scss +0 -1
- data/app/assets/stylesheets/decidim/admin/modules/_table-list.scss +0 -5
- data/app/assets/stylesheets/decidim/admin/modules/_tabs.scss +7 -0
- data/app/assets/stylesheets/decidim/admin/modules/_users_statistics.scss +18 -0
- data/app/assets/stylesheets/decidim/admin/utils/_mixins.scss +42 -0
- data/app/assets/stylesheets/decidim/admin/utils/_settings.scss +4 -1
- data/app/cells/decidim/admin/content_block/show.erb +2 -2
- data/app/commands/decidim/admin/create_attachment.rb +2 -2
- data/app/commands/decidim/admin/create_newsletter.rb +34 -9
- data/app/commands/decidim/admin/destroy_share_token.rb +46 -0
- data/app/commands/decidim/admin/reorder_content_blocks.rb +1 -1
- data/app/commands/decidim/admin/update_component.rb +27 -3
- data/app/commands/decidim/admin/update_content_block.rb +25 -1
- data/app/commands/decidim/admin/update_newsletter.rb +31 -9
- data/app/commands/decidim/admin/update_organization.rb +11 -0
- data/app/commands/decidim/admin/update_organization_appearance.rb +3 -1
- data/app/controllers/concerns/decidim/admin/participatory_space_export.rb +8 -2
- data/app/controllers/decidim/admin/application_controller.rb +1 -0
- data/app/controllers/decidim/admin/authorization_workflows_controller.rb +6 -0
- data/app/controllers/decidim/admin/components_controller.rb +17 -6
- data/app/controllers/decidim/admin/dashboard_controller.rb +33 -1
- data/app/controllers/decidim/admin/metrics_controller.rb +22 -0
- data/app/controllers/decidim/admin/newsletter_templates_controller.rb +41 -0
- data/app/controllers/decidim/admin/newsletters_controller.rb +32 -4
- data/app/controllers/decidim/admin/officializations_controller.rb +8 -0
- data/app/controllers/decidim/admin/organization_appearance_controller.rb +1 -0
- data/app/controllers/decidim/admin/organization_controller.rb +4 -3
- data/app/controllers/decidim/admin/organization_homepage_content_blocks_controller.rb +2 -1
- data/app/controllers/decidim/admin/share_tokens_controller.rb +30 -0
- data/app/forms/decidim/admin/attachment_form.rb +3 -0
- data/app/forms/decidim/admin/component_form.rb +5 -22
- data/app/forms/decidim/admin/newsletter_form.rb +15 -3
- data/app/forms/decidim/admin/organization_appearance_form.rb +7 -4
- data/app/forms/decidim/admin/organization_form.rb +20 -0
- data/app/forms/decidim/admin/participatory_space_private_user_csv_import_form.rb +13 -0
- data/app/forms/decidim/admin/participatory_space_private_user_form.rb +3 -2
- data/app/forms/decidim/admin/selective_newsletter_form.rb +6 -0
- data/app/frontend/components/autocomplete.component.test.tsx +2 -1
- data/app/frontend/components/autocomplete.component.tsx +29 -0
- data/app/helpers/decidim/admin/application_helper.rb +1 -0
- data/app/helpers/decidim/admin/filterable_helper.rb +35 -27
- data/app/helpers/decidim/admin/icon_link_helper.rb +1 -1
- data/app/helpers/decidim/admin/newsletters_helper.rb +3 -1
- data/app/helpers/decidim/admin/resource_scope_helper.rb +43 -0
- data/app/helpers/decidim/admin/settings_helper.rb +52 -59
- data/app/helpers/decidim/admin/uploader_image_dimensions_helper.rb +30 -0
- data/app/models/decidim/admin/fake_newsletter.rb +49 -0
- data/app/permissions/decidim/admin/permissions.rb +7 -1
- data/app/presenters/decidim/admin/dashboard_metric_charts_presenter.rb +57 -0
- data/app/queries/decidim/admin/active_users_counter.rb +35 -0
- data/app/queries/decidim/admin/newsletter_recipients.rb +5 -8
- data/app/views/decidim/admin/attachment_collections/index.html.erb +1 -1
- data/app/views/decidim/admin/authorization_workflows/index.html.erb +1 -0
- data/app/views/decidim/admin/categories/index.html.erb +1 -1
- data/app/views/decidim/admin/components/_component.html.erb +5 -0
- data/app/views/decidim/admin/components/_form.html.erb +4 -0
- data/app/views/decidim/admin/components/_settings_fields.html.erb +2 -2
- data/app/views/decidim/admin/components/index.html.erb +1 -0
- data/app/views/decidim/admin/dashboard/show.html.erb +35 -10
- data/app/views/decidim/admin/exports/_dropdown.html.erb +6 -2
- data/app/views/decidim/admin/impersonatable_users/index.html.erb +2 -2
- data/app/views/decidim/admin/metrics/_metrics.html.erb +21 -0
- data/app/views/decidim/admin/metrics/index.html.erb +7 -0
- data/app/views/decidim/admin/newsletter_templates/index.html.erb +28 -0
- data/app/views/decidim/admin/newsletter_templates/show.html.erb +12 -0
- data/app/views/decidim/admin/newsletters/_form.html.erb +1 -7
- data/app/views/decidim/admin/newsletters/edit.html.erb +1 -1
- data/app/views/decidim/admin/newsletters/index.html.erb +1 -1
- data/app/views/decidim/admin/newsletters/new.html.erb +1 -1
- data/app/views/decidim/admin/officializations/_show_email_modal.html.erb +31 -0
- data/app/views/decidim/admin/officializations/index.html.erb +7 -3
- data/app/views/decidim/admin/officializations/show_email.html.erb +2 -0
- data/app/views/decidim/admin/organization/_form.html.erb +21 -0
- data/app/views/decidim/admin/organization_appearance/_form.html.erb +2 -72
- data/app/views/decidim/admin/organization_appearance/form/_colors.html.erb +23 -0
- data/app/views/decidim/admin/organization_appearance/form/_images.html.erb +38 -0
- data/app/views/decidim/admin/organization_appearance/form/_minimap.html.erb +46 -0
- data/app/views/decidim/admin/resource_permissions/_options_form.html.erb +1 -1
- data/app/views/decidim/admin/share_tokens/_share_tokens.html.erb +57 -0
- data/app/views/decidim/admin/shared/_filters.html.erb +3 -3
- data/app/views/decidim/admin/shared/_gallery.html.erb +21 -0
- data/app/views/decidim/admin/static_pages/_form.html.erb +1 -1
- data/app/views/decidim/admin/user_groups/index.html.erb +4 -4
- data/app/views/decidim/admin/users_statistics/_users_count.html.erb +39 -0
- data/app/views/layouts/decidim/admin/_application.html.erb +1 -0
- data/app/views/layouts/decidim/admin/_header.html.erb +3 -0
- data/app/views/layouts/decidim/admin/_title_bar.html.erb +20 -10
- data/app/views/layouts/decidim/admin/newsletters.erb +1 -1
- data/config/locales/am-ET.yml +1 -0
- data/config/locales/ar.yml +12 -45
- data/config/locales/bg-BG.yml +16 -0
- data/config/locales/bg.yml +131 -0
- data/config/locales/ca.yml +84 -46
- data/config/locales/cs.yml +175 -137
- data/config/locales/da-DK.yml +1 -0
- data/config/locales/da.yml +1 -0
- data/config/locales/de.yml +150 -56
- data/config/locales/el.yml +814 -0
- data/config/locales/en.yml +84 -46
- data/config/locales/eo-UY.yml +0 -1
- data/config/locales/eo.yml +51 -0
- data/config/locales/es-MX.yml +84 -46
- data/config/locales/es-PY.yml +84 -46
- data/config/locales/es.yml +84 -46
- data/config/locales/et-EE.yml +1 -0
- data/config/locales/et.yml +1 -0
- data/config/locales/eu.yml +30 -59
- data/config/locales/fi-plain.yml +84 -46
- data/config/locales/fi.yml +98 -60
- data/config/locales/fr-CA.yml +847 -0
- data/config/locales/fr.yml +126 -51
- data/config/locales/ga-IE.yml +1 -0
- data/config/locales/gl.yml +156 -42
- data/config/locales/hr-HR.yml +1 -0
- data/config/locales/hr.yml +1 -0
- data/config/locales/hu.yml +55 -46
- data/config/locales/id-ID.yml +12 -41
- data/config/locales/is-IS.yml +10 -42
- data/config/locales/is.yml +568 -0
- data/config/locales/it.yml +106 -85
- data/config/locales/ja-JP.yml +855 -0
- data/config/locales/ja.yml +847 -0
- data/config/locales/ko-KR.yml +1 -0
- data/config/locales/ko.yml +1 -0
- data/config/locales/lt-LT.yml +1 -0
- data/config/locales/lt.yml +1 -0
- data/config/locales/lv.yml +795 -0
- data/config/locales/mt-MT.yml +1 -0
- data/config/locales/mt.yml +1 -0
- data/config/locales/nl.yml +74 -46
- data/config/locales/no.yml +108 -83
- data/config/locales/om-ET.yml +1 -0
- data/config/locales/pl.yml +354 -233
- data/config/locales/pt-BR.yml +13 -42
- data/config/locales/pt.yml +321 -231
- data/config/locales/ro-RO.yml +810 -0
- data/config/locales/ru.yml +11 -44
- data/config/locales/si-LK.yml +1 -0
- data/config/locales/sk-SK.yml +823 -0
- data/config/locales/sk.yml +802 -0
- data/config/locales/sl.yml +162 -0
- data/config/locales/so-SO.yml +1 -0
- data/config/locales/sr-CS.yml +586 -0
- data/config/locales/sv.yml +134 -54
- data/config/locales/sw-KE.yml +1 -0
- data/config/locales/ti-ER.yml +1 -0
- data/config/locales/tr-TR.yml +139 -50
- data/config/locales/uk.yml +10 -42
- data/config/locales/vi-VN.yml +1 -0
- data/config/locales/vi.yml +1 -0
- data/config/locales/zh-CN.yml +845 -0
- data/config/locales/zh-TW.yml +1 -0
- data/config/routes.rb +14 -3
- data/lib/decidim/admin/engine.rb +12 -9
- data/lib/decidim/admin/form_builder.rb +2 -2
- data/lib/decidim/admin/test/manage_attachment_collections_examples.rb +1 -1
- data/lib/decidim/admin/test/manage_component_permissions_examples.rb +15 -15
- data/lib/decidim/admin/version.rb +1 -1
- metadata +85 -33
- data/app/commands/decidim/admin/create_oauth_application.rb +0 -36
- data/app/commands/decidim/admin/destroy_oauth_application.rb +0 -39
- data/app/commands/decidim/admin/update_oauth_application.rb +0 -39
- data/app/controllers/decidim/admin/oauth_applications_controller.rb +0 -90
- data/app/forms/decidim/admin/oauth_application_form.rb +0 -32
- data/app/views/decidim/admin/oauth_applications/_form.html.erb +0 -19
- data/app/views/decidim/admin/oauth_applications/edit.html.erb +0 -13
- data/app/views/decidim/admin/oauth_applications/index.html.erb +0 -40
- data/app/views/decidim/admin/oauth_applications/new.html.erb +0 -13
- data/app/views/decidim/admin/oauth_applications/show.html.erb +0 -27
@@ -54,6 +54,27 @@
|
|
54
54
|
</div>
|
55
55
|
</div>
|
56
56
|
|
57
|
+
<% if Decidim.config.enable_machine_translations %>
|
58
|
+
<div class="row">
|
59
|
+
<div class="columns xlarge-6">
|
60
|
+
<%= form.check_box :enable_machine_translations %>
|
61
|
+
</div>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<div class="row">
|
65
|
+
<div class="columns xlarge-6">
|
66
|
+
<%= form.label :machine_translation_display_priority, t("activemodel.attributes.organization.machine_translation_display_priority") %>
|
67
|
+
<%= form.collection_radio_buttons :machine_translation_display_priority, form.object.machine_translation_priorities, :first, :last %>
|
68
|
+
</div>
|
69
|
+
</div>
|
70
|
+
<% end %>
|
71
|
+
|
72
|
+
<div class="row">
|
73
|
+
<div class="columns xlarge-6">
|
74
|
+
<%= form.text_field :comments_max_length %>
|
75
|
+
</div>
|
76
|
+
</div>
|
77
|
+
|
57
78
|
<div class="row">
|
58
79
|
<div class="columns xlarge-6">
|
59
80
|
<%= form.check_box :rich_text_editor_in_public_views, help_text: t(".rich_text_editor_in_public_views_help") %>
|
@@ -87,75 +87,5 @@
|
|
87
87
|
</div>
|
88
88
|
</div>
|
89
89
|
|
90
|
-
|
91
|
-
|
92
|
-
<h2 class="card-title"><%= t ".layout_appearance_title" %></h2>
|
93
|
-
</div>
|
94
|
-
<div class="card-section">
|
95
|
-
<div class="row">
|
96
|
-
<div class="columns xlarge-6">
|
97
|
-
<%= form.upload :logo %>
|
98
|
-
</div>
|
99
|
-
|
100
|
-
<div class="columns xlarge-6">
|
101
|
-
<%= form.upload :favicon %>
|
102
|
-
</div>
|
103
|
-
</div>
|
104
|
-
|
105
|
-
<div class="row">
|
106
|
-
<div class="columns xlarge-6">
|
107
|
-
<%= form.upload :official_img_header %>
|
108
|
-
</div>
|
109
|
-
|
110
|
-
<div class="columns xlarge-6">
|
111
|
-
<%= form.upload :official_img_footer %>
|
112
|
-
</div>
|
113
|
-
</div>
|
114
|
-
|
115
|
-
<div class="row">
|
116
|
-
<div class="columns xlarge-6">
|
117
|
-
<%= form.text_field :official_url %>
|
118
|
-
</div>
|
119
|
-
</div>
|
120
|
-
</div>
|
121
|
-
</div>
|
122
|
-
|
123
|
-
<div class="card">
|
124
|
-
<div class="card-divider">
|
125
|
-
<h2 class="card-title"><%= t ".colors_title" %></h2>
|
126
|
-
</div>
|
127
|
-
<div class="card-section">
|
128
|
-
<div class="row">
|
129
|
-
<div class="columns xlarge-6">
|
130
|
-
<%= form.color_field :primary_color, value: current_organization.colors["primary"] %>
|
131
|
-
</div>
|
132
|
-
|
133
|
-
<div class="columns xlarge-6">
|
134
|
-
<%= form.color_field :secondary_color, value: current_organization.colors["secondary"] %>
|
135
|
-
</div>
|
136
|
-
</div>
|
137
|
-
|
138
|
-
<div class="row">
|
139
|
-
<div class="columns xlarge-6">
|
140
|
-
<%= form.color_field :success_color, value: current_organization.colors["success"] %>
|
141
|
-
</div>
|
142
|
-
|
143
|
-
<div class="columns xlarge-6">
|
144
|
-
<%= form.color_field :warning_color, value: current_organization.colors["warning"] %>
|
145
|
-
</div>
|
146
|
-
</div>
|
147
|
-
|
148
|
-
<div class="row">
|
149
|
-
<div class="columns xlarge-6">
|
150
|
-
<%= form.color_field :alert_color, value: current_organization.colors["alert"] %>
|
151
|
-
</div>
|
152
|
-
</div>
|
153
|
-
|
154
|
-
<% if Decidim.enable_html_header_snippets %>
|
155
|
-
<div class="row column">
|
156
|
-
<%= form.text_area :header_snippets %>
|
157
|
-
<p class="help-text"><%= t(".header_snippets_help") %></p>
|
158
|
-
</div>
|
159
|
-
<% end %>
|
160
|
-
</div>
|
161
|
-
</div>
|
90
|
+
<%= render partial: "decidim/admin/organization_appearance/form/images", locals: { form: form } %>
|
91
|
+
<%= render partial: "decidim/admin/organization_appearance/form/colors", locals: { form: form } %>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<div class="card">
|
2
|
+
<div class="card-divider">
|
3
|
+
<h2 class="card-title"><%= t ".colors_title" %></h2>
|
4
|
+
</div>
|
5
|
+
<div class="card-section">
|
6
|
+
<div class="organization-colors">
|
7
|
+
<%= form.color_field :primary_color, value: current_organization.colors["primary"] %>
|
8
|
+
<%= form.color_field :secondary_color, value: current_organization.colors["secondary"] %>
|
9
|
+
<%= form.color_field :success_color, value: current_organization.colors["success"] %>
|
10
|
+
<%= form.color_field :warning_color, value: current_organization.colors["warning"] %>
|
11
|
+
<%= form.color_field :alert_color, value: current_organization.colors["alert"] %>
|
12
|
+
<%= form.color_field :highlight_color, value: current_organization.colors["highlight"] %>
|
13
|
+
<%= form.color_field :highlight_alternative_color, value: current_organization.colors["highlight-alternative"] %>
|
14
|
+
</div>
|
15
|
+
|
16
|
+
<% if true %>
|
17
|
+
<div class="row column">
|
18
|
+
<%= form.text_area :header_snippets %>
|
19
|
+
<p class="help-text"><%= t(".header_snippets_help") %></p>
|
20
|
+
</div>
|
21
|
+
<% end %>
|
22
|
+
</div>
|
23
|
+
</div>
|
@@ -0,0 +1,38 @@
|
|
1
|
+
<div class="card">
|
2
|
+
<div class="card-divider">
|
3
|
+
<h2 class="card-title"><%= t ".layout_appearance_title" %></h2>
|
4
|
+
</div>
|
5
|
+
|
6
|
+
<div class="card-section">
|
7
|
+
<div class="minimap">
|
8
|
+
<label for="minimap"><%= t(".preview") %></label>
|
9
|
+
<%= render "decidim/admin/organization_appearance/form/minimap" %>
|
10
|
+
</div>
|
11
|
+
|
12
|
+
<div class="organization-images">
|
13
|
+
<div class="preview">
|
14
|
+
<%= form.upload :favicon, dimensions_info: current_organization.favicon.dimensions_info, extension_whitelist: current_organization.favicon.extension_whitelist %>
|
15
|
+
</div>
|
16
|
+
|
17
|
+
<div class="preview">
|
18
|
+
<%= form.upload :logo, dimensions_info: current_organization.logo.dimensions_info, extension_whitelist: current_organization.favicon.extension_whitelist %>
|
19
|
+
</div>
|
20
|
+
|
21
|
+
<div class="preview">
|
22
|
+
<%= form.upload :official_img_header, dimensions_info: current_organization.official_img_header.dimensions_info, extension_whitelist: current_organization.favicon.extension_whitelist %>
|
23
|
+
</div>
|
24
|
+
|
25
|
+
<div class="preview">
|
26
|
+
<%= form.upload :official_img_footer, dimensions_info: current_organization.official_img_footer.dimensions_info, extension_whitelist: current_organization.favicon.extension_whitelist %>
|
27
|
+
</div>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<div class="card-section">
|
32
|
+
<div class="row" style="display: grid; grid-template-columns: 1fr 1fr;">
|
33
|
+
<div class="preview-official_url">
|
34
|
+
<%= form.text_field :official_url %>
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
</div>
|
@@ -0,0 +1,46 @@
|
|
1
|
+
<% size_factor = 0.2 %>
|
2
|
+
<div id="minimap-wrapper">
|
3
|
+
<div id="minimap">
|
4
|
+
<div class="minimap-tab">
|
5
|
+
<% if current_organization.favicon.present? %>
|
6
|
+
<%= image_tag current_organization.favicon.url, class: "minimap-favicon" %>
|
7
|
+
<% else %>
|
8
|
+
<%= content_tag :div, nil, { class: "minimap-favicon placeholder", style: "width: #{image_width(current_organization, :favicon) * size_factor }px; height: #{image_height(current_organization, :favicon) * size_factor }px;" } do %>
|
9
|
+
<% end %>
|
10
|
+
<% end %>
|
11
|
+
|
12
|
+
<span> < <%= t("favicon", scope: "activemodel.attributes.organization") %></span>
|
13
|
+
</div>
|
14
|
+
|
15
|
+
<div class="minimap-header">
|
16
|
+
<% if current_organization.logo.present? %>
|
17
|
+
<%= image_tag current_organization.logo.url, class: "minimap-logo" %>
|
18
|
+
<% else %>
|
19
|
+
<%= content_tag :div, nil, { class: "minimap-logo placeholder", style: "width: #{image_width(current_organization, :logo) * size_factor }px; height: #{image_height(current_organization, :logo) * size_factor }px;" } do %>
|
20
|
+
<span><%= t("logo", scope: "activemodel.attributes.organization") %></span>
|
21
|
+
<% end %>
|
22
|
+
<% end %>
|
23
|
+
|
24
|
+
<% if current_organization.official_img_header.present? %>
|
25
|
+
<%= image_tag current_organization.official_img_header.url, class: "minimap-official_img_header" %>
|
26
|
+
<% else %>
|
27
|
+
<span class="float-right"><%= t("official_img_header", scope: "activemodel.attributes.organization") %> > </span>
|
28
|
+
<%= content_tag :div, nil, { class: "minimap-official_img_header placeholder float-right", style: "width: #{image_width(current_organization, :official_img_header) * size_factor }px; height: #{image_height(current_organization, :official_img_header) * size_factor }px;" } %>
|
29
|
+
<% end %>
|
30
|
+
|
31
|
+
</div>
|
32
|
+
|
33
|
+
<div class="minimap-navbar"></div>
|
34
|
+
<div class="minimap-body"></div>
|
35
|
+
|
36
|
+
<div class="minimap-footer">
|
37
|
+
<% if current_organization.official_img_footer.present? %>
|
38
|
+
<%= image_tag current_organization.official_img_footer.url, class: "minimap-official_img_footer" %>
|
39
|
+
<% else %>
|
40
|
+
<%= content_tag :div, nil, { class: "minimap-official_img_footer placeholder", style: "width: #{image_width(current_organization, :official_img_footer) * size_factor }px; height: #{image_height(current_organization, :official_img_footer) * size_factor }px;" } do %>
|
41
|
+
<span><%= t("official_img_footer", scope: "activemodel.attributes.organization") %></span>
|
42
|
+
<% end %>
|
43
|
+
<% end %>
|
44
|
+
</div>
|
45
|
+
</div>
|
46
|
+
</div>
|
@@ -0,0 +1,57 @@
|
|
1
|
+
<div class="card share_tokens">
|
2
|
+
<div class="card-divider">
|
3
|
+
<legend><%= t ".title" %></legend>
|
4
|
+
</div>
|
5
|
+
<div class="card-section">
|
6
|
+
<div class="help-text">
|
7
|
+
<p><%= t ".help" %></p>
|
8
|
+
</div>
|
9
|
+
<% if share_tokens.any? %>
|
10
|
+
<div class="table-scroll">
|
11
|
+
<table class="table-list">
|
12
|
+
<thead>
|
13
|
+
<tr>
|
14
|
+
<th><%= t("models.share_token.fields.token", scope: "decidim.admin") %></th>
|
15
|
+
<th><%= t("models.share_token.fields.user", scope: "decidim.admin") %></th>
|
16
|
+
<th><%= t("models.share_token.fields.times_used", scope: "decidim.admin") %></th>
|
17
|
+
<th><%= t("models.share_token.fields.last_used_at", scope: "decidim.admin") %></th>
|
18
|
+
<th><%= t("models.share_token.fields.created_at", scope: "decidim.admin") %></th>
|
19
|
+
<th><%= t("models.share_token.fields.expires_at", scope: "decidim.admin") %></th>
|
20
|
+
<th class="actions"></th>
|
21
|
+
</tr>
|
22
|
+
</thead>
|
23
|
+
<tbody>
|
24
|
+
<% share_tokens.each do |share_token| %>
|
25
|
+
<tr>
|
26
|
+
<td><%= share_token.token %></td>
|
27
|
+
<td><%= share_token.user.name %></td>
|
28
|
+
<td><%= share_token.times_used %></td>
|
29
|
+
<td><%= l share_token.last_used_at, format: :short if share_token.last_used_at.present? %></td>
|
30
|
+
<td><%= l share_token.created_at, format: :short %></td>
|
31
|
+
<td><%= l share_token.expires_at, format: :short if share_token.expires_at.present? %></td>
|
32
|
+
<td class="table-list__actions">
|
33
|
+
<%= icon_link_to "share",
|
34
|
+
share_token.url,
|
35
|
+
t("actions.share", scope: "decidim.admin.share_tokens"),
|
36
|
+
class: "action-icon--share",
|
37
|
+
target: "_blank" %>
|
38
|
+
<%= icon_link_to "circle-x",
|
39
|
+
decidim_admin.share_token_path(
|
40
|
+
share_token,
|
41
|
+
url: request.fullpath
|
42
|
+
),
|
43
|
+
t("actions.destroy", scope: "decidim.admin.share_tokens"),
|
44
|
+
class: "action-icon--remove",
|
45
|
+
method: :delete,
|
46
|
+
data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin.share_tokens") } %>
|
47
|
+
</td>
|
48
|
+
</tr>
|
49
|
+
<% end %>
|
50
|
+
</tbody>
|
51
|
+
</table>
|
52
|
+
</div>
|
53
|
+
<% else %>
|
54
|
+
<p><%= t ".empty" %></p>
|
55
|
+
<% end %>
|
56
|
+
</div>
|
57
|
+
</div>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<a href="#" class="dropdown button">
|
6
6
|
<%= t("filter_label", scope: "decidim.admin.filters") %>
|
7
7
|
</a>
|
8
|
-
<%= dropdown_submenu(submenu_options_tree) %>
|
8
|
+
<%= dropdown_submenu(submenu_options_tree(i18n_ctx)) %>
|
9
9
|
</li>
|
10
10
|
</ul>
|
11
11
|
</div>
|
@@ -22,7 +22,7 @@
|
|
22
22
|
scope: "decidim.admin.filters.search_placeholder")
|
23
23
|
) %>
|
24
24
|
<div class="input-group-button">
|
25
|
-
<button type="submit" class="button
|
25
|
+
<button type="submit" class="button">
|
26
26
|
<%= icon "magnifying-glass", aria_label: t("search_label", scope: "decidim.admin.filters") %>
|
27
27
|
</button>
|
28
28
|
</div>
|
@@ -32,7 +32,7 @@
|
|
32
32
|
</div>
|
33
33
|
<div class="card-section fcell grid-x">
|
34
34
|
<div class="cell medium-10 filter-status">
|
35
|
-
<%= applied_filters_tags %>
|
35
|
+
<%= applied_filters_tags(i18n_ctx) %>
|
36
36
|
</div>
|
37
37
|
<div class="cell auto text-right">
|
38
38
|
<%= admin_filters_pagination %>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<div class="row column gallery__container">
|
2
|
+
<fieldset>
|
3
|
+
<legend><%= t(".gallery_legend") %></legend>
|
4
|
+
|
5
|
+
<% if @form.photos.any? %>
|
6
|
+
<% @form.photos.each do |photo| %>
|
7
|
+
<div class="callout gallery__item" data-closable>
|
8
|
+
<%= image_tag photo.thumbnail_url, class: "thumbnail", alt: photo.file.file.filename %>
|
9
|
+
<%= form.hidden_field :photos, multiple: true, value: photo.id, id: "photo-#{photo.id}" %>
|
10
|
+
<button class="close-button" aria-label="<%= t(".delete_image") %>" title="<%= t(".delete_image") %>" type="button" data-close>
|
11
|
+
<span aria-hidden="true">×</span>
|
12
|
+
</button>
|
13
|
+
</div>
|
14
|
+
<% end %>
|
15
|
+
<% end %>
|
16
|
+
|
17
|
+
<div class="row column">
|
18
|
+
<%= form.file_field :add_photos, multiple: true, label: t(".add_images") %>
|
19
|
+
</div>
|
20
|
+
</fieldset>
|
21
|
+
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<%= javascript_include_tag "decidim/slug_form" %>
|
7
7
|
<div class="row column slug">
|
8
8
|
<%= form.text_field :slug %>
|
9
|
-
<p class="help-text"><%== t(".slug_help", url: decidim_form_slug_url("", form.object.slug)) %></p>
|
9
|
+
<p class="help-text"><%== t(".slug_help", url: decidim_form_slug_url("pages", form.object.slug)) %></p>
|
10
10
|
</div>
|
11
11
|
<% end %>
|
12
12
|
|
@@ -26,8 +26,8 @@
|
|
26
26
|
<%= search_field_tag :q, @query,label: false, class: "input-group-field", placeholder: t(".search") %>
|
27
27
|
<%= hidden_field_tag :state, @state %>
|
28
28
|
<div class="input-group-button">
|
29
|
-
<button type="submit" class="button
|
30
|
-
<%= icon "magnifying-glass", aria_label: t(".search") %>
|
29
|
+
<button type="submit" class="button">
|
30
|
+
<%= icon "magnifying-glass", aria_label: t(".search"), role: "img" %>
|
31
31
|
</button>
|
32
32
|
</div>
|
33
33
|
</div>
|
@@ -81,7 +81,7 @@
|
|
81
81
|
<% if !user_group.verified? %>
|
82
82
|
<%= icon_link_to "circle-check", decidim_admin.verify_user_group_path(user_group), t("actions.verify", scope: "decidim.admin"), method: :put, class: "action-icon--verify" %>
|
83
83
|
<% else %>
|
84
|
-
<%= icon "circle-check", class: "action-icon action-icon--disabled" %>
|
84
|
+
<%= icon "circle-check", class: "action-icon action-icon--disabled", role: "img" %>
|
85
85
|
<% end %>
|
86
86
|
<% end %>
|
87
87
|
|
@@ -89,7 +89,7 @@
|
|
89
89
|
<% if !user_group.rejected? %>
|
90
90
|
<%= icon_link_to "circle-x", decidim_admin.reject_user_group_path(user_group), t("actions.reject", scope: "decidim.admin"), method: :put, class: "action-icon--reject" %>
|
91
91
|
<% else %>
|
92
|
-
<%= icon "circle-x", class: "action-icon action-icon--disabled" %>
|
92
|
+
<%= icon "circle-x", class: "action-icon action-icon--disabled", role: "img" %>
|
93
93
|
<% end %>
|
94
94
|
<% end %>
|
95
95
|
</td>
|
@@ -0,0 +1,39 @@
|
|
1
|
+
<div class="card">
|
2
|
+
<div class="card-divider">
|
3
|
+
<h2 class="card-title">
|
4
|
+
<%= t("decidim.admin.titles.statistics") %>
|
5
|
+
</h2>
|
6
|
+
</div>
|
7
|
+
<div class="table-scroll">
|
8
|
+
<% if result.empty? %>
|
9
|
+
<div class="table">
|
10
|
+
<p class="users_count"><%= t(".no_users_count_statistics_yet") %></p>
|
11
|
+
</div>
|
12
|
+
<% else %>
|
13
|
+
<table class="table-list users_count">
|
14
|
+
<thead>
|
15
|
+
<tr>
|
16
|
+
<th></th>
|
17
|
+
<th><%= t(".last_month") %></th>
|
18
|
+
<th><%= t(".last_week") %></th>
|
19
|
+
<th><%= t(".last_day") %></th>
|
20
|
+
</tr>
|
21
|
+
</thead>
|
22
|
+
<tbody>
|
23
|
+
<tr>
|
24
|
+
<td class="title"><%= t(".participants") %></td>
|
25
|
+
<td><%= result[:total_participants_last_month] %></td>
|
26
|
+
<td><%= result[:total_participants_last_week] %></td>
|
27
|
+
<td><%= result[:total_participants_last_24] %></td>
|
28
|
+
</tr>
|
29
|
+
<tr>
|
30
|
+
<td class="title"><%= t(".admins") %></td>
|
31
|
+
<td><%= result[:total_admins_last_month] %></td>
|
32
|
+
<td><%= result[:total_admins_last_week] %></td>
|
33
|
+
<td><%= result[:total_admins_last_24] %></td>
|
34
|
+
</tr>
|
35
|
+
</tbody>
|
36
|
+
</table>
|
37
|
+
<% end %>
|
38
|
+
</div>
|
39
|
+
</div>
|
@@ -1,4 +1,7 @@
|
|
1
1
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
2
2
|
<%= csrf_meta_tags %>
|
3
3
|
<%= stylesheet_link_tag "decidim/admin/application", media: "all" %>
|
4
|
+
<%= javascript_include_tag "decidim/confirm" %>
|
4
5
|
<%= javascript_include_tag "decidim/admin/application" %>
|
6
|
+
<%= organization_colors %>
|
7
|
+
<%= snippets.display(:head) %>
|
@@ -10,12 +10,17 @@
|
|
10
10
|
<div class='tool-bar'>
|
11
11
|
<% if available_locales.length > 1 %>
|
12
12
|
<div class="topbar__dropmenu language-choose">
|
13
|
-
<ul class="dropdown menu" data-dropdown-menu
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
<ul class="dropdown menu" data-dropdown-menu
|
14
|
+
data-autoclose="false"
|
15
|
+
data-disable-hover="true"
|
16
|
+
data-click-open="true"
|
17
|
+
data-close-on-click="true"
|
18
|
+
tabindex="-1">
|
19
|
+
<li class="is-dropdown-submenu-parent" tabindex="-1">
|
20
|
+
<%= link_to t("name", scope: "locale"), "#", id: "admin-user-menu-control", "aria-controls": "admin-user-menu", "aria-haspopup": "true" %>
|
21
|
+
<ul class="menu is-dropdown-submenu" id="admin-user-menu" role="menu" aria-labelledby="admin-user-menu-control" tabindex="-1">
|
17
22
|
<% (available_locales - [I18n.locale.to_s]).each do |locale| %>
|
18
|
-
<li><%= link_to
|
23
|
+
<li><%= link_to(locale_name(locale), decidim.locale_path(locale: locale), method: :post, tabindex: "-1") %></li>
|
19
24
|
<% end %>
|
20
25
|
</ul>
|
21
26
|
</li>
|
@@ -24,11 +29,16 @@
|
|
24
29
|
<% end %>
|
25
30
|
|
26
31
|
<div class="user-login">
|
27
|
-
<ul class="dropdown menu" data-dropdown-menu
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
+
<ul class="dropdown menu" data-dropdown-menu
|
33
|
+
data-autoclose="false"
|
34
|
+
data-disable-hover="true"
|
35
|
+
data-click-open="true"
|
36
|
+
data-close-on-click="true"
|
37
|
+
tabindex="-1">
|
38
|
+
<li class="is-dropdown-submenu-parent" tabindex="-1">
|
39
|
+
<%= link_to current_user.email, "#", id: "admin-language-menu-control", "aria-controls": "admin-language-menu", "aria-haspopup": "true", "aria-label": t("layouts.decidim.user_menu.account", name: current_user.email) %>
|
40
|
+
<ul class="menu is-dropdown-submenu" id="admin-language-menu" role="menu" aria-labelledby="admin-language-menu-control" tabindex="-1">
|
41
|
+
<li><%= link_to(t("layouts.decidim.user_menu.sign_out"), decidim.destroy_user_session_path, method: :delete, tabindex: "-1") %></li>
|
32
42
|
</ul>
|
33
43
|
</li>
|
34
44
|
</ul>
|