sinatra-hexacta 0.3.13 → 0.3.14

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: 3e5dcb9cef01c9a77b03a009a9b1a5451fb27889692879645801474efa41fd40
4
- data.tar.gz: 8e1e59f37a699d6c4e91e36feec49ec8422e6619662e00815b61a9276e4389ad
3
+ metadata.gz: 70103503f323c30ae3192af61c32b4ac7a57f0deb176acf6f6a33be07e621922
4
+ data.tar.gz: 8d270de55225eef6f9d8cae34ad6a4b256eeb18dc9bfd31759edca6176a64191
5
5
  SHA512:
6
- metadata.gz: bb94d132e2bc6baa03bc1b9321abc8de50df247ea04767a47cc1d530719a4fc13e4445648b3dc46e1d46b1cf1165d6df26fc247c985a264a05dbfcb92ca5a7c5
7
- data.tar.gz: 5f7ad7194685207a41c3ae66327e212dfe199dc898ebb062937274250bfb7c6fe6cd99a96045de14e0805160762eb0eb3a2f6a3d323d055eca674ba3b51fa3df
6
+ metadata.gz: a7b8584b54e4bf04a2f1267a0d605ee0274a493ea2e8397f8fcdd52f0004e9f8aaacbdc30ebd77dfd577c7c13bf522982edb5c5413df7938c74573f371bee2ba
7
+ data.tar.gz: a4a43c08dfe7cee855a2809ec54be1b854fc097a785c391d874545afadd97c72eabfb48798c479274ffe4837389f685b76066ae3a4132222722ff53bf6f2df4b
@@ -4,11 +4,19 @@
4
4
  - id = "#{name}_#{rand(1000)}"
5
5
  - unless defined? clazz
6
6
  - clazz = nil
7
+ -unless defined? readonly
8
+ -readonly = false
7
9
 
8
10
  .form-group.fg-float
9
11
  label #{title}
10
12
  .fg-line
11
13
  -if required
12
- input.form-control.date-picker.fg-input id="#{id}" type="text" name="#{name}" required="" class="#{clazz}" value="#{value}"
14
+ -if readonly
15
+ input.form-control.date-picker.fg-input id="#{id}" type="text" name="#{name}" required="" class="#{clazz}" value="#{value}" readonly=''
16
+ -else
17
+ input.form-control.date-picker.fg-input id="#{id}" type="text" name="#{name}" required="" class="#{clazz}" value="#{value}"
13
18
  -else
14
- input.form-control.date-picker.fg-input id="#{id}" type="text" name="#{name}" class="#{clazz}" value="#{value}"
19
+ -if readonly
20
+ input.form-control.date-picker.fg-input id="#{id}" type="text" name="#{name}" class="#{clazz}" value="#{value}" readonly=''
21
+ -else
22
+ input.form-control.date-picker.fg-input id="#{id}" type="text" name="#{name}" class="#{clazz}" value="#{value}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-hexacta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.13
4
+ version: 0.3.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marco Zanger