zadok 0.2.1 → 0.2.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
  SHA256:
3
- metadata.gz: c320b0690c224d5890fed3751585f897e206766956b3cd1e7f9d1fd748633877
4
- data.tar.gz: 534849248440647a73257e6e47843674e9698eed83299073e968a50090f167e8
3
+ metadata.gz: a25bb95f4269c2b8861b67d9881ae9ccfaca077c9ee689ecb53cb3c1553430a4
4
+ data.tar.gz: 7e95b03e6e81eee539aedfeb822cdcdbe03066a86b785e98f723a2193075848b
5
5
  SHA512:
6
- metadata.gz: c11c5b6c770fa3462133e46edeb8ec257f3c778721a67cca692ddce2a63c91dd9f28c5fdee124b9b17f141e7e1d95c2988f5e74544510c3b6d54a239e2c159fb
7
- data.tar.gz: 92ffc5d42f21e48e8d4c9c9de354d1e1eba45639e23c200ff0e3d56db81106c91db75a38e52aca8723d9ca02b43d38e2d47dde5146731ba4fc165d66b43b954f
6
+ metadata.gz: a6e9530a546e04def80b2384e812926d033003c7ab1d35b1b09a6cfc64cd346ff85f037cefb6d2489b7045afc9b8454887c9cf2b57977d618e6d14341f8ab669
7
+ data.tar.gz: e8b37cbaf1ff9c830cc84dc68c63acfaf1ef7b67c2810e39a7b338027396bc180e4deeb4e9bf07c523498e88043d3874da26b2295ff98c10a4c28c95ab68ab95
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zadok (0.2.1)
4
+ zadok (0.2.2)
5
5
  bootstrap (~> 4.0)
6
6
  cancancan (~> 2.1)
7
7
  font-awesome-rails (~> 4.7)
@@ -0,0 +1,2 @@
1
+ - options[:field_count].times do
2
+ = render "zadok/form/fields/#{options[:field_type]}", resource: resource, form: form, attr: attr, options: options.deep_merge(html: { multiple: true })
@@ -0,0 +1,5 @@
1
+ .form-group
2
+ - [true, false].each do |option|
3
+ .form-check.form-check-inline
4
+ = form.label, t("zadok.options").fetch(option)
5
+ = form.radio_button attr, option
@@ -0,0 +1,5 @@
1
+ .form-group
2
+ = form.label attr
3
+ = form.file_field attr, options.fetch(:html) { {} }.merge(class: "form-control")
4
+ - if options[:preview]
5
+ = image_tag resource.send(attr).url, class: "logo img-fluid"
@@ -0,0 +1,6 @@
1
+ .form-group
2
+ = form.label attr
3
+ .input-group-prepend
4
+ .input-group-text
5
+ | #
6
+ = form.text_field attr, options.fetch(:html) { {} }.merge(class: "form-control", maxlength: 6)
@@ -0,0 +1,3 @@
1
+ .form-group
2
+ = form.label attr
3
+ = form.text_area attr, options.fetch(:html) { {} }.merge(rows: options[:rows], cols: options[:cols], class: "form-control")
@@ -0,0 +1,3 @@
1
+ .form-group
2
+ = form.label attr
3
+ = form.url_field attr, options.fetch(:html) { {} }.merge(class: "form-control")
@@ -23,7 +23,6 @@ module Zadok
23
23
 
24
24
  def previous_or_next_page(page, text, css_class)
25
25
  link_tag = if page
26
-
27
26
  link(text, page, class: "page-link")
28
27
  else
29
28
  css_class = "disabled"
data/lib/zadok/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Zadok
4
- VERSION = "0.2.1"
4
+ VERSION = "0.2.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zadok
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leon Hooijer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-01-25 00:00:00.000000000 Z
11
+ date: 2018-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bootstrap
@@ -209,9 +209,15 @@ files:
209
209
  - app/views/zadok/filters/_select.html.slim
210
210
  - app/views/zadok/filters/_textfield.html.slim
211
211
  - app/views/zadok/filters/_typeable_multiselect.html.slim
212
+ - app/views/zadok/form/fields/_array.html.slim
213
+ - app/views/zadok/form/fields/_boolean.slim
212
214
  - app/views/zadok/form/fields/_email_field.html.slim
215
+ - app/views/zadok/form/fields/_file_field.html.slim
216
+ - app/views/zadok/form/fields/_hex_field.html.slim
213
217
  - app/views/zadok/form/fields/_select.html.slim
218
+ - app/views/zadok/form/fields/_text_area.html.slim
214
219
  - app/views/zadok/form/fields/_text_field.html.slim
220
+ - app/views/zadok/form/fields/_url_field.html.slim
215
221
  - app/views/zadok/index.html.slim
216
222
  - app/views/zadok/new.html.slim
217
223
  - lib/zadok.rb