govuk_admin_template 4.4.1 → 4.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0d573e304a7b38d47cc53a9b4a5434b30fdebc56
4
- data.tar.gz: 8fed3854017def7648e9e46593b91e2f581762a5
3
+ metadata.gz: 5b001638272059fb392e22f917167507d93bdd6f
4
+ data.tar.gz: 06d2a2beb96487cc4fdc35c7fe01e097ed78b491
5
5
  SHA512:
6
- metadata.gz: 264c2dad9cb265aa436dab2b6bc221203aaec97922df4e34c550153fea2675a27e6c4fb2cb0f60a6e589d2a3252a3db93078d7e00a285303173e9d35d9b671f8
7
- data.tar.gz: cca7a6a8e75832cc8e2e5a5655f79f3bea1801b44dee4f74f247ccef6f706d6ec44a75fdf68a1cba39333b4f27a64ac52d43727f4c104ac813f812bb830e874f
6
+ metadata.gz: ca2a85325585a860eb8efa6d8b9024e466ff684b27ca032fbbdfb92b7a3efa2f047c3a2eaeab6fbf90edbedd12f8165c08a8fafaa5b269173d78cd28a144d1bf
7
+ data.tar.gz: 1869aaae180183e1ed71a5ca1c999785b1a4f51fbd23a29cfa361bc878c114498631836178c4317e43d7f0309297c15695213bb6cceeed27afc1435e3d6feab0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 4.4.2
2
+
3
+ * Modularize the table-filter markup
4
+
1
5
  # 4.4.1
2
6
 
3
7
  * Remove default label of `Password` for input fields.
@@ -5,9 +5,8 @@
5
5
  %>
6
6
  <tr class="if-no-js-hide table-header-secondary">
7
7
  <td colspan="<%= colspan %>">
8
- <form>
9
- <label for="<%= filter_id %>" class="rm"><%= placeholder %></label>
10
- <input id="<%= filter_id %>" type="text" class="form-control normal js-filter-table-input" placeholder="<%= placeholder %>">
11
- </form>
8
+ <%=
9
+ render partial: 'govuk_admin_template/table_filter_form', locals: { placeholder: placeholder, filter_id: filter_id }
10
+ %>
12
11
  </td>
13
12
  </tr>
@@ -0,0 +1,8 @@
1
+ <%
2
+ placeholder ||= "Filter table"
3
+ filter_id ||= SecureRandom.uuid
4
+ %>
5
+ <form>
6
+ <label for="<%= filter_id %>" class="rm"><%= placeholder %></label>
7
+ <input id="<%= filter_id %>" type="text" class="form-control normal js-filter-table-input" placeholder="<%= placeholder %>">
8
+ </form>
@@ -1,3 +1,3 @@
1
1
  module GovukAdminTemplate
2
- VERSION = "4.4.1"
2
+ VERSION = "4.4.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_admin_template
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.4.1
4
+ version: 4.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-12 00:00:00.000000000 Z
11
+ date: 2016-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -173,6 +173,7 @@ files:
173
173
  - app/controllers/govuk_admin_template/style_guide_controller.rb
174
174
  - app/views/govuk_admin_template/_govspeak_help.html.erb
175
175
  - app/views/govuk_admin_template/_table_filter.html.erb
176
+ - app/views/govuk_admin_template/_table_filter_form.html.erb
176
177
  - app/views/govuk_admin_template/style_guide/index.html.erb
177
178
  - app/views/layouts/govuk_admin_template.html.erb
178
179
  - config/locales/simple_form.en.yml