decidim-admin 0.0.6 → 0.0.7
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/stylesheets/decidim/admin/_decidim.scss +9 -0
- data/app/assets/stylesheets/decidim/admin/_variables.scss +7 -0
- data/app/assets/stylesheets/decidim/admin/application.scss +2 -19
- data/app/assets/stylesheets/decidim/admin/extra/_categories.scss +5 -0
- data/app/assets/stylesheets/decidim/admin/{_email_preview.scss → extra/_email_preview.scss} +0 -0
- data/app/assets/stylesheets/decidim/admin/{_login.scss → extra/_login.scss} +0 -0
- data/app/assets/stylesheets/decidim/admin/extra/_select_multiple.scss +3 -0
- data/app/assets/stylesheets/decidim/admin/extra/_title_bar.scss +5 -0
- data/app/assets/stylesheets/decidim/admin/modules/_action-icon.scss +13 -0
- data/app/assets/stylesheets/decidim/admin/modules/_buttons.scss +44 -0
- data/app/assets/stylesheets/decidim/admin/modules/_callouts.scss +32 -0
- data/app/assets/stylesheets/decidim/admin/modules/_cards.scss +36 -0
- data/app/assets/stylesheets/decidim/admin/modules/_char-counter.scss +20 -0
- data/app/assets/stylesheets/decidim/admin/modules/_component-counter.scss +17 -0
- data/app/assets/stylesheets/decidim/admin/modules/_forms.scss +80 -0
- data/app/assets/stylesheets/decidim/admin/modules/_icons.scss +65 -0
- data/app/assets/stylesheets/decidim/admin/modules/_layout.scss +67 -0
- data/app/assets/stylesheets/decidim/admin/modules/_main-nav.scss +41 -0
- data/app/assets/stylesheets/decidim/admin/modules/_modules.scss +24 -0
- data/app/assets/stylesheets/decidim/admin/modules/_process-header.scss +11 -0
- data/app/assets/stylesheets/decidim/admin/modules/_secondary-nav.scss +95 -0
- data/app/assets/stylesheets/decidim/admin/modules/_table-list.scss +78 -0
- data/app/assets/stylesheets/decidim/admin/modules/_tabs.scss +49 -0
- data/app/assets/stylesheets/decidim/admin/modules/_title-bar.scss +32 -0
- data/app/assets/stylesheets/decidim/admin/modules/_typography.scss +15 -0
- data/app/assets/stylesheets/decidim/admin/modules/_user-login.scss +23 -0
- data/app/assets/stylesheets/decidim/admin/utils/_fontface.scss +27 -0
- data/app/assets/stylesheets/decidim/admin/utils/_helpers.scss +25 -0
- data/app/assets/stylesheets/decidim/admin/utils/_keyframes.scss +21 -0
- data/app/assets/stylesheets/decidim/admin/utils/_mixins.scss +20 -0
- data/app/assets/stylesheets/decidim/admin/utils/_settings.scss +590 -0
- data/app/assets/stylesheets/decidim/admin/utils/_toggle-expand.scss +8 -0
- data/app/commands/decidim/admin/create_attachment.rb +13 -4
- data/app/commands/decidim/admin/update_participatory_process.rb +3 -3
- data/app/commands/decidim/admin/update_participatory_process_admin.rb +40 -0
- data/app/controllers/decidim/admin/application_controller.rb +7 -1
- data/app/controllers/decidim/admin/newsletters_controller.rb +1 -1
- data/app/controllers/decidim/admin/organization_controller.rb +2 -0
- data/app/controllers/decidim/admin/participatory_process_user_roles_controller.rb +29 -0
- data/app/controllers/decidim/admin/participatory_processes_controller.rb +2 -2
- data/app/controllers/decidim/admin/scopes_controller.rb +2 -0
- data/app/controllers/decidim/admin/static_pages_controller.rb +2 -0
- data/app/controllers/decidim/admin/user_groups_controller.rb +3 -1
- data/app/controllers/decidim/admin/users_controller.rb +1 -1
- data/app/helpers/decidim/admin/application_helper.rb +8 -0
- data/app/helpers/decidim/admin/icon_link_helper.rb +30 -0
- data/app/jobs/decidim/admin/newsletter_job.rb +1 -1
- data/app/queries/decidim/admin/process_admin_roles_for_process.rb +1 -1
- data/app/views/decidim/admin/attachments/_form.html.erb +29 -8
- data/app/views/decidim/admin/attachments/edit.html.erb +3 -5
- data/app/views/decidim/admin/attachments/index.html.erb +45 -35
- data/app/views/decidim/admin/attachments/new.html.erb +3 -5
- data/app/views/decidim/admin/categories/_form.html.erb +18 -10
- data/app/views/decidim/admin/categories/edit.html.erb +3 -5
- data/app/views/decidim/admin/categories/index.html.erb +57 -42
- data/app/views/decidim/admin/categories/new.html.erb +3 -5
- data/app/views/decidim/admin/dashboard/show.html.erb +6 -3
- data/app/views/decidim/admin/features/_feature.html.erb +11 -11
- data/app/views/decidim/admin/features/_form.html.erb +56 -48
- data/app/views/decidim/admin/features/edit.html.erb +3 -5
- data/app/views/decidim/admin/features/index.html.erb +21 -19
- data/app/views/decidim/admin/features/new.html.erb +3 -4
- data/app/views/decidim/admin/moderations/index.html.erb +71 -61
- data/app/views/decidim/admin/newsletters/_form.html.erb +7 -1
- data/app/views/decidim/admin/newsletters/edit.html.erb +10 -8
- data/app/views/decidim/admin/newsletters/index.html.erb +50 -43
- data/app/views/decidim/admin/newsletters/new.html.erb +10 -8
- data/app/views/decidim/admin/newsletters/show.html.erb +20 -12
- data/app/views/decidim/admin/organization/_form.html.erb +98 -62
- data/app/views/decidim/admin/organization/edit.html.erb +11 -8
- data/app/views/decidim/admin/participatory_process_groups/_form.html.erb +4 -4
- data/app/views/decidim/admin/participatory_process_groups/edit.html.erb +15 -9
- data/app/views/decidim/admin/participatory_process_groups/index.html.erb +37 -35
- data/app/views/decidim/admin/participatory_process_groups/new.html.erb +10 -8
- data/app/views/decidim/admin/participatory_process_steps/_form.html.erb +21 -11
- data/app/views/decidim/admin/participatory_process_steps/edit.html.erb +3 -4
- data/app/views/decidim/admin/participatory_process_steps/index.html.erb +60 -51
- data/app/views/decidim/admin/participatory_process_steps/new.html.erb +4 -5
- data/app/views/decidim/admin/participatory_process_user_roles/_form.html.erb +23 -0
- data/app/views/decidim/admin/participatory_process_user_roles/edit.html.erb +7 -0
- data/app/views/decidim/admin/participatory_process_user_roles/index.html.erb +46 -34
- data/app/views/decidim/admin/participatory_process_user_roles/new.html.erb +7 -0
- data/app/views/decidim/admin/participatory_processes/_form.html.erb +103 -72
- data/app/views/decidim/admin/participatory_processes/edit.html.erb +15 -17
- data/app/views/decidim/admin/participatory_processes/index.html.erb +52 -43
- data/app/views/decidim/admin/participatory_processes/new.html.erb +6 -5
- data/app/views/decidim/admin/scopes/edit.html.erb +9 -7
- data/app/views/decidim/admin/scopes/index.html.erb +37 -36
- data/app/views/decidim/admin/scopes/new.html.erb +9 -6
- data/app/views/decidim/admin/static_pages/_form.html.erb +3 -3
- data/app/views/decidim/admin/static_pages/edit.html.erb +10 -8
- data/app/views/decidim/admin/static_pages/index.html.erb +38 -37
- data/app/views/decidim/admin/static_pages/new.html.erb +10 -8
- data/app/views/decidim/admin/user_groups/index.html.erb +37 -31
- data/app/views/decidim/admin/users/_form.html.erb +5 -4
- data/app/views/decidim/admin/users/index.html.erb +57 -52
- data/app/views/decidim/admin/users/new.html.erb +10 -7
- data/app/views/layouts/decidim/admin/_application.html.erb +23 -36
- data/app/views/layouts/decidim/admin/_callouts_full.html.erb +10 -0
- data/app/views/layouts/decidim/admin/_language_chooser.html.erb +9 -9
- data/app/views/layouts/decidim/admin/_main_nav.html.erb +11 -0
- data/app/views/layouts/decidim/admin/_template_bottom.html.erb +2 -0
- data/app/views/layouts/decidim/admin/_template_top.html.erb +3 -0
- data/app/views/layouts/decidim/admin/_title_bar.html.erb +20 -0
- data/app/views/layouts/decidim/admin/newsletters.erb +14 -0
- data/app/views/layouts/decidim/admin/pages.html.erb +14 -0
- data/app/views/layouts/decidim/admin/participatory_process.html.erb +55 -53
- data/app/views/layouts/decidim/admin/participatory_process_groups.html.erb +14 -0
- data/app/views/layouts/decidim/admin/participatory_processes.html.erb +14 -0
- data/app/views/layouts/decidim/admin/settings.html.erb +19 -0
- data/app/views/layouts/decidim/admin/users.html.erb +21 -0
- data/config/i18n-tasks.yml +1 -0
- data/config/locales/ca.yml +77 -22
- data/config/locales/en.yml +75 -20
- data/config/locales/es.yml +77 -22
- data/config/locales/eu.yml +191 -16
- data/config/locales/fi.yml +0 -29
- data/config/routes.rb +1 -1
- data/lib/decidim/admin/test/manage_attachments_examples.rb +11 -11
- metadata +54 -18
- data/app/assets/stylesheets/decidim/admin/_actions.scss +0 -8
- data/app/assets/stylesheets/decidim/admin/_forms.scss +0 -10
- data/app/assets/stylesheets/decidim/admin/_foundation_and_overrides.scss +0 -53
- data/app/assets/stylesheets/decidim/admin/_icons.scss +0 -9
- data/app/assets/stylesheets/decidim/admin/_layout.scss +0 -27
- data/app/assets/stylesheets/decidim/admin/_settings.scss +0 -566
- data/app/assets/stylesheets/decidim/admin/_tables.scss +0 -21
- data/app/views/layouts/decidim/admin/_login_items.html.erb +0 -8
- data/app/views/layouts/decidim/admin/_sidebar.html.erb +0 -22
@@ -1,11 +1,13 @@
|
|
1
|
-
|
2
|
-
<
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
1
|
+
<%= decidim_form_for(@form, html: { class: "form edit_newsletter" }) do |f| %>
|
2
|
+
<div class="card">
|
3
|
+
<div class="card-divider">
|
4
|
+
<h2 class="card-title"><%= t ".title" %></h2>
|
5
|
+
</div>
|
6
|
+
<div class="card-section">
|
7
|
+
<%= render partial: 'form', object: f %>
|
8
|
+
</div>
|
9
|
+
</div>
|
10
|
+
<div class="button--double form-general-submit">
|
9
11
|
<%= f.submit t(".save_and_preview") %>
|
10
12
|
</div>
|
11
13
|
<% end %>
|
@@ -1,47 +1,54 @@
|
|
1
|
-
<div
|
2
|
-
|
3
|
-
<h2
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
<%= link_to t("actions.new", scope: "decidim.admin", name: t("models.newsletter.name", scope: "decidim.admin").downcase), ['new', 'newsletter'], class: 'new' %>
|
1
|
+
<div class="card">
|
2
|
+
<div class="card-divider">
|
3
|
+
<h2 class="card-title">
|
4
|
+
<%= t ".title" %>
|
5
|
+
<%= link_to t("actions.new", scope: "decidim.admin", name: t("models.newsletter.name", scope: "decidim.admin").downcase), ['new', 'newsletter'], class: 'button tiny button--title new' %>
|
6
|
+
</h2>
|
8
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.newsletter.fields.subject", scope: "decidim.admin") %></th>
|
14
|
+
<th><%= t("models.newsletter.fields.created_at", scope: "decidim.admin") %></th>
|
15
|
+
<th><%= t("models.newsletter.fields.sent_at", scope: "decidim.admin") %></th>
|
16
|
+
<th><%= t("models.newsletter.fields.progress", scope: "decidim.admin") %></th>
|
17
|
+
<th></th>
|
18
|
+
</tr>
|
19
|
+
</thead>
|
20
|
+
<tbody>
|
21
|
+
<% @newsletters.each do |newsletter| %>
|
22
|
+
<tr data-newsletter-id="<%= newsletter.id %>">
|
23
|
+
<td><%= translated_attribute newsletter.subject %></td>
|
24
|
+
<td><%= l newsletter.created_at, format: :long if newsletter.created_at %></td>
|
25
|
+
<td><%= l newsletter.sent_at, format: :long if newsletter.sent_at %></td>
|
26
|
+
<td>
|
27
|
+
<% if newsletter.sent? %>
|
28
|
+
<%= "#{newsletter.total_deliveries} / #{newsletter.total_recipients}" %>
|
29
|
+
<% end %>
|
30
|
+
</td>
|
31
|
+
<td class="table-list__actions">
|
32
|
+
<% if can?(:update, newsletter) && !newsletter.sent? %>
|
33
|
+
<%= link_to decidim_admin.edit_newsletter_path(newsletter), data: { tooltip: true, disable_hover: false }, :'aria-haspopup' => true, title: t("actions.edit", scope: "decidim.admin"), class: "action-icon edit" do %>
|
34
|
+
<%= icon "pencil" %>
|
35
|
+
<% end %>
|
36
|
+
<% end %>
|
9
37
|
|
38
|
+
<%= link_to decidim_admin.newsletter_path(newsletter), data: { tooltip: true, disable_hover: false }, :'aria-haspopup' => true, title: t("actions.preview", scope: "decidim.admin"), class: "action-icon preview" do %>
|
39
|
+
<%= icon "eye" %>
|
40
|
+
<% end %>
|
10
41
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
<tr data-newsletter-id="<%= newsletter.id %>">
|
24
|
-
<td><%= translated_attribute newsletter.subject %></td>
|
25
|
-
<td><%= l newsletter.created_at, format: :long if newsletter.created_at %></td>
|
26
|
-
<td><%= l newsletter.sent_at, format: :long if newsletter.sent_at %></td>
|
27
|
-
<td>
|
28
|
-
<% if newsletter.sent? %>
|
29
|
-
<%= "#{newsletter.total_deliveries} / #{newsletter.total_recipients}" %>
|
30
|
-
<% end %>
|
31
|
-
</td>
|
32
|
-
<td class="actions">
|
33
|
-
<%= link_to t("actions.preview", scope: "decidim.admin"), decidim_admin.newsletter_path(newsletter) %>
|
34
|
-
|
35
|
-
<% if can?(:update, newsletter) && !newsletter.sent? %>
|
36
|
-
<%= link_to t("actions.edit", scope: "decidim.admin"), decidim_admin.edit_newsletter_path(newsletter) %>
|
37
|
-
<% end %>
|
38
|
-
|
39
|
-
<% if can?(:destroy, newsletter) && !newsletter.sent? %>
|
40
|
-
<%= link_to t("actions.destroy", scope: "decidim.admin"), decidim_admin.newsletter_path(newsletter), method: :delete, class: "button", data: { confirm: t(".confirm_delete") } %>
|
41
|
-
<% end %>
|
42
|
-
</td>
|
43
|
-
</tr>
|
44
|
-
<% end %>
|
45
|
-
</tbody>
|
46
|
-
</table>
|
42
|
+
<% if can?(:destroy, newsletter) && !newsletter.sent? %>
|
43
|
+
<%= link_to decidim_admin.newsletter_path(newsletter), method: :delete, data: { confirm: t(".confirm_delete"), tooltip: true, disable_hover: false }, :'aria-haspopup' => true, title: t("actions.destroy", scope: "decidim.admin"), class: "action-icon action-icon--remove" do %>
|
44
|
+
<%= icon "circle-x" %>
|
45
|
+
<% end %>
|
46
|
+
<% end %>
|
47
|
+
</td>
|
48
|
+
</tr>
|
49
|
+
<% end %>
|
50
|
+
</tbody>
|
51
|
+
</table>
|
52
|
+
</div>
|
53
|
+
</div>
|
47
54
|
</div>
|
@@ -1,11 +1,13 @@
|
|
1
|
-
|
2
|
-
<
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
1
|
+
<%= decidim_form_for(@form, html: { class: "form new_newsletter" }) do |f| %>
|
2
|
+
<div class="card">
|
3
|
+
<div class="card-divider">
|
4
|
+
<h2 class="card-title"><%= t ".title" %></h2>
|
5
|
+
</div>
|
6
|
+
<div class="card-section">
|
7
|
+
<%= render partial: 'form', object: f %>
|
8
|
+
</div>
|
9
|
+
</div>
|
10
|
+
<div class="button--double form-general-submit">
|
9
11
|
<%= f.submit t(".save") %>
|
10
12
|
</div>
|
11
13
|
<% end %>
|
@@ -1,14 +1,22 @@
|
|
1
|
-
<
|
1
|
+
<div class="card">
|
2
|
+
<div class="card-divider">
|
3
|
+
<h2 class="card-title"><%= t ".preview" %></h2>
|
4
|
+
</div>
|
5
|
+
<div class="card-section">
|
6
|
+
<dl>
|
7
|
+
<dt><%= t ".subject" %></dt>
|
8
|
+
<dd><%= @email.subject %></dd>
|
9
|
+
</dl>
|
2
10
|
|
3
|
-
<
|
4
|
-
|
5
|
-
|
6
|
-
</
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
11
|
+
<iframe src="<%= preview_newsletter_path(@newsletter) %>" class="email-preview">
|
12
|
+
</iframe>
|
13
|
+
</div>
|
14
|
+
</div>
|
15
|
+
<div class="button--double form-general-submit">
|
16
|
+
<% if can?(:update, @newsletter) && !@newsletter.sent? %>
|
17
|
+
<%= link_to t("actions.edit", scope: "decidim.admin"), ['edit', @newsletter], class: "button" %>
|
18
|
+
<% end %>
|
19
|
+
<% unless @newsletter.sent? %>
|
20
|
+
<%= link_to t(".deliver"), deliver_newsletter_path(@newsletter), method: :post, class: "button alert", data: { confirm: t(".confirm_deliver") } %>
|
21
|
+
<% end %>
|
14
22
|
</div>
|
@@ -1,73 +1,109 @@
|
|
1
|
-
<div class="
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
<
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
</
|
20
|
-
|
21
|
-
<div class="
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
</div>
|
28
|
-
|
29
|
-
|
1
|
+
<div class="row">
|
2
|
+
<div class="columns xlarge-6">
|
3
|
+
<%= form.text_field :name %>
|
4
|
+
</div>
|
5
|
+
|
6
|
+
<div class="columns xlarge-6">
|
7
|
+
<div class="label--tabs">
|
8
|
+
<label for="organization_social_handlers">
|
9
|
+
<%= t('.social_handlers') %>
|
10
|
+
</label>
|
11
|
+
<ul class="tabs tabs--lang" data-tabs id="organization_social_handlers">
|
12
|
+
<% Decidim::Organization::SOCIAL_HANDLERS.each do |handler| %>
|
13
|
+
<li class="tabs-title <% if handler == Decidim::Organization::SOCIAL_HANDLERS.first %> is-active <% end %>">
|
14
|
+
<a href="#<%= handler %>" <% if handler == Decidim::Organization::SOCIAL_HANDLERS.first %> aria-selected="true" <% end %>>
|
15
|
+
<%= t(".#{handler}") %>
|
16
|
+
</a>
|
17
|
+
</li>
|
18
|
+
<% end %>
|
19
|
+
</ul>
|
20
|
+
</div>
|
21
|
+
<div class="tabs-content" data-tabs-content="organization_social_handlers">
|
22
|
+
<% Decidim::Organization::SOCIAL_HANDLERS.each do |handler| %>
|
23
|
+
<div class="tabs-panel <% if handler == Decidim::Organization::SOCIAL_HANDLERS.first %> is-active <% end %>" id="<%= handler %>">
|
24
|
+
<%= form.text_field "#{handler}_handler", label: false %>
|
25
|
+
</div>
|
26
|
+
<% end %>
|
27
|
+
</div>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<div class="row column">
|
30
32
|
<%= form.translated :editor, :description %>
|
31
33
|
</div>
|
32
34
|
|
33
|
-
<div class="
|
35
|
+
<div class="row column">
|
34
36
|
<%= form.translated :text_area, :welcome_text %>
|
35
37
|
</div>
|
36
38
|
|
37
|
-
<div class="
|
39
|
+
<div class="row column">
|
38
40
|
<%= form.collection_select :default_locale, localized_locales(current_organization.available_locales), :id, :name %>
|
39
41
|
</div>
|
40
42
|
|
41
|
-
<div class="
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
<
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
<
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
43
|
+
<div class="row">
|
44
|
+
<div class="columns xlarge-4">
|
45
|
+
<%= form.file_field :homepage_image %>
|
46
|
+
<% if current_organization.homepage_image.present? %>
|
47
|
+
<label><%= t('.current_image') %></label>
|
48
|
+
<%= image_tag current_organization.homepage_image.big.url %>
|
49
|
+
<label><%= t('.url') %></label>
|
50
|
+
<%= link_to current_organization.homepage_image.file.filename, current_organization.homepage_image.url, target: "_blank" %>
|
51
|
+
<% end %>
|
52
|
+
</div>
|
53
|
+
|
54
|
+
<div class="columns xlarge-4">
|
55
|
+
<%= form.file_field :logo %>
|
56
|
+
<% if current_organization.logo.present? %>
|
57
|
+
<label><%= t('.current_image') %></label>
|
58
|
+
<%= image_tag current_organization.logo.medium.url %>
|
59
|
+
<label><%= t('.url') %></label>
|
60
|
+
<%= link_to current_organization.logo.file.filename, current_organization.logo.url, target: "_blank" %>
|
61
|
+
<% end %>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<div class="columns xlarge-4">
|
65
|
+
<%= form.file_field :favicon %>
|
66
|
+
<% if current_organization.favicon.present? %>
|
67
|
+
<label><%= t('.current_image') %></label>
|
68
|
+
<%= image_tag current_organization.favicon.big.url %>
|
69
|
+
<label><%= t('.url') %></label>
|
70
|
+
<%= link_to current_organization.favicon.file.filename, current_organization.favicon.url, target: "_blank" %>
|
71
|
+
<% end %>
|
72
|
+
</div>
|
73
|
+
</div>
|
74
|
+
|
75
|
+
<div class="row">
|
76
|
+
<div class="columns xlarge-6">
|
77
|
+
<%= form.file_field :official_img_header %>
|
78
|
+
<% if current_organization.official_img_header.present? %>
|
79
|
+
<label><%= t('.current_image') %></label>
|
80
|
+
<%= image_tag current_organization.official_img_header.url %>
|
81
|
+
<label><%= t('.url') %></label>
|
82
|
+
<%= link_to current_organization.official_img_header.file.filename, current_organization.official_img_header.url, target: "_blank" %>
|
83
|
+
<% end %>
|
84
|
+
</div>
|
85
|
+
|
86
|
+
<div class="columns xlarge-6">
|
87
|
+
<%= form.file_field :official_img_footer %>
|
88
|
+
<% if current_organization.official_img_footer.present? %>
|
89
|
+
<label><%= t('.current_image') %></label>
|
90
|
+
<%= image_tag current_organization.official_img_footer.url %>
|
91
|
+
<label><%= t('.url') %></label>
|
92
|
+
<%= link_to current_organization.official_img_footer.file.filename, current_organization.official_img_footer.url, target: "_blank" %>
|
93
|
+
<% end %>
|
94
|
+
</div>
|
95
|
+
</div>
|
96
|
+
|
97
|
+
<div class="row">
|
98
|
+
<div class="columns xlarge-6">
|
99
|
+
<%= form.text_field :reference_prefix %>
|
100
|
+
</div>
|
101
|
+
|
102
|
+
<div class="columns xlarge-6">
|
103
|
+
<%= form.text_field :official_url %>
|
104
|
+
</div>
|
105
|
+
</div>
|
106
|
+
|
107
|
+
<div class="row column">
|
72
108
|
<%= form.check_box :show_statistics %>
|
73
109
|
</div>
|
@@ -1,11 +1,14 @@
|
|
1
|
-
|
2
|
-
<
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
1
|
+
<%= decidim_form_for(@form, html: { class: "form eidt_organitzation" }, url: organization_path) do |f| %>
|
2
|
+
<div class="card">
|
3
|
+
<div class="card-divider">
|
4
|
+
<h2 class="card-title"><%= t ".title" %></h2>
|
5
|
+
</div>
|
6
|
+
<div class="card-section">
|
7
|
+
<%= render partial: 'form', object: f %>
|
8
|
+
</div>
|
9
|
+
</div>
|
10
|
+
<div class="button--double form-general-submit">
|
9
11
|
<%= f.submit t(".update") %>
|
10
12
|
</div>
|
11
13
|
<% end %>
|
14
|
+
|
@@ -1,17 +1,17 @@
|
|
1
|
-
<div class="
|
1
|
+
<div class="row column">
|
2
2
|
<%= form.translated :text_field, :name, autofocus: true %>
|
3
3
|
</div>
|
4
4
|
|
5
|
-
<div class="
|
5
|
+
<div class="row column">
|
6
6
|
<%= form.translated :editor, :description, toolbar: :full, lines: 25 %>
|
7
7
|
</div>
|
8
8
|
|
9
|
-
<div class="
|
9
|
+
<div class="row column">
|
10
10
|
<% if processes_for_select %>
|
11
11
|
<%= form.select :participatory_process_ids, processes_for_select, {}, { multiple: true, class: "chosen-select" } %>
|
12
12
|
<% end %>
|
13
13
|
</div>
|
14
14
|
|
15
|
-
<div class="
|
15
|
+
<div class="row column">
|
16
16
|
<%= form.file_field :hero_image %>
|
17
17
|
</div>
|
@@ -1,13 +1,19 @@
|
|
1
|
-
<div class="actions">
|
2
|
-
<% if can? :destroy, participatory_process_group %>
|
3
|
-
<%= link_to t("decidim.admin.actions.destroy"), participatory_process_group, method: :delete, class: "alert button", data: { confirm: t("decidim.admin.actions.confirm_destroy") } %>
|
4
|
-
<% end %>
|
5
|
-
</div>
|
6
1
|
|
7
|
-
<%= decidim_form_for(@form) do |f| %>
|
8
|
-
|
9
|
-
|
10
|
-
|
2
|
+
<%= decidim_form_for(@form, html: { class: "form edit_participatory_process_group" }) do |f| %>
|
3
|
+
<div class="card">
|
4
|
+
<div class="card-divider">
|
5
|
+
<h2 class="card-title">
|
6
|
+
<%= t ".title" %>
|
7
|
+
<% if can? :destroy, participatory_process_group %>
|
8
|
+
<%= link_to t("decidim.admin.actions.destroy"), participatory_process_group, method: :delete, class: 'button alert tiny button--title destroy', data: { confirm: t("decidim.admin.actions.confirm_destroy") } %>
|
9
|
+
<% end %>
|
10
|
+
</h2>
|
11
|
+
</div>
|
12
|
+
<div class="card-section">
|
13
|
+
<%= render partial: 'form', object: f %>
|
14
|
+
</div>
|
15
|
+
</div>
|
16
|
+
<div class="button--double form-general-submit">
|
11
17
|
<%= f.submit t(".update") %>
|
12
18
|
</div>
|
13
19
|
<% end %>
|
@@ -1,38 +1,40 @@
|
|
1
|
-
|
2
|
-
<
|
3
|
-
|
1
|
+
<div class="card">
|
2
|
+
<div class="card-divider">
|
3
|
+
<h2 class="card-title">
|
4
|
+
<%= t "decidim.admin.titles.participatory_process_groups" %>
|
5
|
+
<%= link_to t("actions.new", scope: "decidim.admin", name: t("models.participatory_process_group.name", scope: "decidim.admin")), ['new', 'participatory_process_group'], class: 'button tiny button--title new' if can? :create, Decidim::ParticipatoryProcessGroup %>
|
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.participatory_process_group.fields.name", scope: "decidim.admin") %></th>
|
14
|
+
<th></th>
|
15
|
+
</tr>
|
16
|
+
</thead>
|
17
|
+
<tbody>
|
18
|
+
<% collection.each do |group| %>
|
19
|
+
<tr>
|
20
|
+
<td>
|
21
|
+
<%= link_to translated_attribute(group.name), group %><br />
|
22
|
+
</td>
|
23
|
+
<td class="table-list__actions">
|
24
|
+
<% if can? :update, group %>
|
25
|
+
<%= icon_link_to "pencil", ['edit', group], t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit" %>
|
26
|
+
<% end %>
|
4
27
|
|
5
|
-
|
6
|
-
<%= link_to t("actions.new", scope: "decidim.admin", name: t("models.participatory_process_group.name", scope: "decidim.admin")), ['new', 'participatory_process_group'], class: 'new' if can? :create, Decidim::ParticipatoryProcessGroup %>
|
7
|
-
</div>
|
8
|
-
|
9
|
-
<table class="stack">
|
10
|
-
<thead>
|
11
|
-
<tr>
|
12
|
-
<th><%= t("models.participatory_process_group.fields.name", scope: "decidim.admin") %></th>
|
13
|
-
<th class="actions"><%= t("actions.title", scope: "decidim.admin") %></th>
|
14
|
-
</tr>
|
15
|
-
</thead>
|
16
|
-
<tbody>
|
17
|
-
<% collection.each do |group| %>
|
18
|
-
<tr>
|
19
|
-
<td>
|
20
|
-
<%= link_to translated_attribute(group.name), group %><br />
|
21
|
-
</td>
|
22
|
-
<td class="actions">
|
23
|
-
<% if can? :preview, group %>
|
24
|
-
<%= link_to t("actions.preview", scope: "decidim.admin"), decidim.participatory_process_group_path(group) %>
|
25
|
-
<% end %>
|
28
|
+
<%= icon_link_to "eye", decidim.participatory_process_group_path(group), t("actions.preview", scope: "decidim.admin"), class: "action-icon--preview" %>
|
26
29
|
|
27
|
-
|
28
|
-
|
30
|
+
<% if can? :destroy, group %>
|
31
|
+
<%= icon_link_to "circle-x", group, t("actions.destroy", scope: "decidim.admin"), class: "action-icon--remove", method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %>
|
32
|
+
<% end %>
|
33
|
+
</td>
|
34
|
+
</tr>
|
29
35
|
<% end %>
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
</tr>
|
36
|
-
<% end %>
|
37
|
-
</tbody>
|
38
|
-
</table>
|
36
|
+
</tbody>
|
37
|
+
</table>
|
38
|
+
</div>
|
39
|
+
</div>
|
40
|
+
</div>
|