decidim-admin 0.23.5 → 0.23.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of decidim-admin might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3987b893c104292daae242ef4dc3f0c11c6135ef884496eb048716935439b753
4
- data.tar.gz: 958646a5bf90c6e2a98565c8b7a12614807fe7be0891049c6477867cab091284
3
+ metadata.gz: 07d25670045188f12ab6457b2d014d699eb764ab5c06474ce5b003c04293734b
4
+ data.tar.gz: f72154538a405f4cc107b7fa37103d982db78bbfd9dc1819a6bfa84bd70b4cb7
5
5
  SHA512:
6
- metadata.gz: 283127ca9c0b78f2b751075efe83ad01df0d162b0eb60788152467dcfd980e5cdb91183876ba0033788dd9884cfba7aecb56fa7da1816da9caa108fa7e61c794
7
- data.tar.gz: 3da1fa828a4bcf05549131ec1bea9e180db45d8bd90a16b49d0d6d685e763f456b2db1b449510cb1740ddb9521386c78111dbbf61491e69ef9e7782832498516
6
+ metadata.gz: 61693af44d5beb83d900d2c26e90e2a3a1b9d4cf517a5349209e9b46bc2d4bf5066d8158b057d2af352c60dbef9708d3fe8575623792e93afff0b570147236eb
7
+ data.tar.gz: 448e060e71c29fe482c11c9eb3a276cc9bcd274176231218e638383e6a0deabd8b3e4c130c05fdbc62cb02947c5d32f6139d1f3156a37dec8ec1cb3fe1c6d023
@@ -23,10 +23,10 @@
23
23
  let $selectedSubform = $form.find(`#${subformWrapperClass}-${value}`)
24
24
 
25
25
  if ($target.prop("checked")) {
26
- $selectedSubform.find("input,textarea").prop("disabled", false);
26
+ $selectedSubform.find("input,textarea,select").prop("disabled", false);
27
27
  $selectedSubform.show();
28
28
  } else {
29
- $selectedSubform.find("input,textarea").prop("disabled", true);
29
+ $selectedSubform.find("input,textarea,select").prop("disabled", true);
30
30
  $selectedSubform.hide();
31
31
  }
32
32
  }
@@ -23,10 +23,10 @@
23
23
  let $subforms = $form.find(`.${subformWrapperClass}`);
24
24
  let $selectedSubform = $subforms.filter(`#${subformWrapperClass}-${value}`)
25
25
 
26
- $subforms.find("input,textarea").prop("disabled", true);
26
+ $subforms.find("input,textarea,select").prop("disabled", true);
27
27
  $subforms.hide();
28
28
 
29
- $selectedSubform.find("input,textarea").prop("disabled", false);
29
+ $selectedSubform.find("input,textarea,select").prop("disabled", false);
30
30
  $selectedSubform.show();
31
31
  }
32
32
 
@@ -3,7 +3,7 @@
3
3
  <h2 class="card-title">
4
4
  <%= t "decidim.admin.titles.area_types" %>
5
5
  <% if allowed_to? :create, :area_type %>
6
- <%= link_to t("actions.add", scope: "decidim.admin"), ["new", "area_type"], class: "button tiny button--title new" %>
6
+ <%= link_to t("actions.add", scope: "decidim.admin"), [:new, :area_type], class: "button tiny button--title new" %>
7
7
  <% end %>
8
8
  </h2>
9
9
  </div>
@@ -28,7 +28,7 @@
28
28
  </td>
29
29
  <td class="table-list__actions">
30
30
  <% if allowed_to? :update, :area_type, area_type: area_type %>
31
- <%= icon_link_to "pencil", ["edit", area_type], t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit", method: :get, data: {} %>
31
+ <%= icon_link_to "pencil", [:edit, area_type], t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit", method: :get, data: {} %>
32
32
  <% end %>
33
33
 
34
34
  <% if allowed_to? :destroy, :area_type, area_type: area_type %>
@@ -29,7 +29,7 @@
29
29
  </td>
30
30
  <td class="table-list__actions">
31
31
  <% if allowed_to? :update, :area, area: area %>
32
- <%= icon_link_to "pencil", ["edit", area], t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit", method: :get, data: {} %>
32
+ <%= icon_link_to "pencil", [:edit, area], t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit", method: :get, data: {} %>
33
33
  <% end %>
34
34
 
35
35
  <% if allowed_to? :destroy, :area, area: area %>
@@ -8,7 +8,7 @@
8
8
  <strong class="subscribed_title"><%= t("newsletters.index.subscribed_count", scope: "decidim.admin") %></strong>
9
9
  <span class="subscribed_count"><%= recipients_count_query %></span>
10
10
  <% if allowed_to? :create, :newsletter %>
11
- <%= link_to t("actions.new", scope: "decidim.admin", name: t("models.newsletter.name", scope: "decidim.admin").downcase), ["newsletter_templates"], class: "button tiny button--title new" %>
11
+ <%= link_to t("actions.new", scope: "decidim.admin", name: t("models.newsletter.name", scope: "decidim.admin").downcase), [:newsletter_templates], class: "button tiny button--title new" %>
12
12
  <% end %>
13
13
  </div>
14
14
  </div>
@@ -65,7 +65,7 @@
65
65
 
66
66
  <div class="button--double form-general-submit">
67
67
  <% if allowed_to?(:update, :newsletter, newsletter: @newsletter) && !@newsletter.sent? %>
68
- <%= link_to t("actions.edit", scope: "decidim.admin"), ["edit", @newsletter], class: "button" %>
68
+ <%= link_to t("actions.edit", scope: "decidim.admin"), [:edit, @newsletter], class: "button" %>
69
69
  <% end %>
70
70
  <% unless @newsletter.sent? %>
71
71
  <%= f.submit t(".deliver"), class: "button alert", data: { confirm: t(".confirm_deliver") } %>
@@ -17,7 +17,7 @@
17
17
  <div class="button--double form-general-submit">
18
18
  <% if allowed_to?(:update, :newsletter, newsletter: @newsletter) %>
19
19
  <% if !@newsletter.sent? %>
20
- <%= link_to t("actions.edit", scope: "decidim.admin"), ["edit", @newsletter], class: "button" %>
20
+ <%= link_to t("actions.edit", scope: "decidim.admin"), [:edit, @newsletter], class: "button" %>
21
21
  <% end %>
22
22
  <% unless @newsletter.sent? %>
23
23
  <%= link_to t(".select_recipients_to_deliver"), select_recipients_to_deliver_newsletter_path(@newsletter), class: "button alert" %>
@@ -32,7 +32,7 @@
32
32
  <%= icon_link_to "zoom-in", scope_scopes_path(scope), t("actions.browse", scope: "decidim.admin"), class: "action-icon--browse", method: :get, data: {} %>
33
33
 
34
34
  <% if allowed_to? :update, :scope, scope: scope %>
35
- <%= icon_link_to "pencil", ["edit", scope], t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit", method: :get, data: {} %>
35
+ <%= icon_link_to "pencil", [:edit, scope], t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit", method: :get, data: {} %>
36
36
  <% end %>
37
37
 
38
38
  <% if allowed_to? :destroy, :scope, scope: scope %>
@@ -5,7 +5,7 @@
5
5
  <% if topic %>
6
6
  <%= translated_attribute(topic.title) %>
7
7
  <%= link_to t(".destroy"), [topic], class: "button tiny button--title destroy", method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %>
8
- <%= link_to t(".edit"), ["edit", topic], class: "button tiny button--title new" %>
8
+ <%= link_to t(".edit"), [:edit, topic], class: "button tiny button--title new" %>
9
9
  <% else %>
10
10
  <%= t(".without_topic") %>
11
11
  <% end %>
@@ -28,7 +28,7 @@
28
28
  <% pages.each do |page| %>
29
29
  <tr>
30
30
  <td>
31
- <%= link_to translated_attribute(page.title), ["edit", page] %><br>
31
+ <%= link_to translated_attribute(page.title), [:edit, page] %><br>
32
32
  </td>
33
33
  <td>
34
34
  <%= l page.created_at, format: :short %>
@@ -40,7 +40,7 @@
40
40
  </td>
41
41
  <td class="table-list__actions">
42
42
  <% if allowed_to? :update, :static_page, static_page: page %>
43
- <%= icon_link_to "pencil", ["edit", page], t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit" %>
43
+ <%= icon_link_to "pencil", [:edit, page], t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit" %>
44
44
  <% end %>
45
45
 
46
46
  <%= icon_link_to "eye", decidim.page_path(page), t("actions.view", scope: "decidim.admin.static_pages"), class: "action-icon--preview" %>
@@ -3,7 +3,7 @@
3
3
  <h2 class="card-title">
4
4
  <%= t "decidim.admin.titles.users" %>
5
5
  <% if allowed_to? :create, :admin_user %>
6
- <%= link_to t("actions.new", scope: "decidim.admin", name: t("models.user.name", scope: "decidim.admin")), ["new", "user"], class: "button tiny button--title" %>
6
+ <%= link_to t("actions.new", scope: "decidim.admin", name: t("models.user.name", scope: "decidim.admin")), [:new, :user], class: "button tiny button--title" %>
7
7
  <% end %>
8
8
  </h2>
9
9
  </div>
@@ -46,7 +46,7 @@
46
46
  <td><%= l user.created_at, format: :short %></td>
47
47
  <td class="table-list__actions">
48
48
  <% if allowed_to?(:invite, :admin_user, user: user) && user.invited_to_sign_up? %>
49
- <%= icon_link_to "reload", ["resend_invitation", user], t("actions.resend_invitation", scope: "decidim.admin"), class: "resend-invitation", method: :post %>
49
+ <%= icon_link_to "reload", [:resend_invitation, user], t("actions.resend_invitation", scope: "decidim.admin"), class: "resend-invitation", method: :post %>
50
50
  <% end %>
51
51
 
52
52
  <% if allowed_to? :destroy, :admin_user, user: user %>
@@ -4,7 +4,7 @@
4
4
  <%= t ".title" %>
5
5
  </div>
6
6
  <div class="secondary-nav__actions">
7
- <%= link_to t("actions.new", scope: "decidim.admin", name: t("models.newsletter.name", scope: "decidim.admin")), ["newsletter_templates"], class: "button expanded small new" %>
7
+ <%= link_to t("actions.new", scope: "decidim.admin", name: t("models.newsletter.name", scope: "decidim.admin")), [:newsletter_templates], class: "button expanded small new" %>
8
8
  </div>
9
9
  </div>
10
10
  <% end %>
@@ -4,8 +4,8 @@
4
4
  <%= t "decidim.admin.titles.static_pages" %>
5
5
  </div>
6
6
  <div class="secondary-nav__actions">
7
- <%= link_to t("static_page_topics.new.create", scope: "decidim.admin"), ["new", "static_page_topic"], class: "button expanded small new" %>
8
- <%= link_to t("static_pages.new.create", scope: "decidim.admin"), ["new", "static_page"], class: "button expanded small new" %>
7
+ <%= link_to t("static_page_topics.new.create", scope: "decidim.admin"), [:new, :static_page_topic], class: "button expanded small new" %>
8
+ <%= link_to t("static_pages.new.create", scope: "decidim.admin"), [:new, :static_page], class: "button expanded small new" %>
9
9
  </div>
10
10
  </div>
11
11
  <% end %>
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-admin version.
5
5
  module Admin
6
6
  def self.version
7
- "0.23.5"
7
+ "0.23.6"
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.5
4
+ version: 0.23.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-04-08 00:00:00.000000000 Z
13
+ date: 2021-05-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: active_link_to
@@ -32,14 +32,14 @@ dependencies:
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.23.5
35
+ version: 0.23.6
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - '='
41
41
  - !ruby/object:Gem::Version
42
- version: 0.23.5
42
+ version: 0.23.6
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: devise
45
45
  requirement: !ruby/object:Gem::Requirement
@@ -130,28 +130,28 @@ dependencies:
130
130
  requirements:
131
131
  - - '='
132
132
  - !ruby/object:Gem::Version
133
- version: 0.23.5
133
+ version: 0.23.6
134
134
  type: :development
135
135
  prerelease: false
136
136
  version_requirements: !ruby/object:Gem::Requirement
137
137
  requirements:
138
138
  - - '='
139
139
  - !ruby/object:Gem::Version
140
- version: 0.23.5
140
+ version: 0.23.6
141
141
  - !ruby/object:Gem::Dependency
142
142
  name: decidim-participatory_processes
143
143
  requirement: !ruby/object:Gem::Requirement
144
144
  requirements:
145
145
  - - '='
146
146
  - !ruby/object:Gem::Version
147
- version: 0.23.5
147
+ version: 0.23.6
148
148
  type: :development
149
149
  prerelease: false
150
150
  version_requirements: !ruby/object:Gem::Requirement
151
151
  requirements:
152
152
  - - '='
153
153
  - !ruby/object:Gem::Version
154
- version: 0.23.5
154
+ version: 0.23.6
155
155
  description: Organization administration to manage a single organization.
156
156
  email:
157
157
  - josepjaume@gmail.com