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 +4 -4
- data/lib/sinatra/views/inputs/date.slim +10 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70103503f323c30ae3192af61c32b4ac7a57f0deb176acf6f6a33be07e621922
|
4
|
+
data.tar.gz: 8d270de55225eef6f9d8cae34ad6a4b256eeb18dc9bfd31759edca6176a64191
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
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}"
|