lib/sinatra/views/inputs/textarea.slim in sinatra-hexacta-0.3.3 vs lib/sinatra/views/inputs/textarea.slim in sinatra-hexacta-0.3.4
- old
+ new
@@ -2,13 +2,15 @@
- required = false
- if !(defined? id) || id.blank?
- id = "#{name}_#{rand(1000)}"
- unless defined? placeholder
- placeholder = "Escribe aquĆ..."
+- unless defined? rows
+ - rows = 5
.form-group
.fg-line
label.fg-label #{title}
- if required
- textarea.form-control name="#{name}" placeholder=("#{placeholder}") rows="5" maxlength="#{length}" required="" #{value}
+ textarea.form-control name="#{name}" placeholder=("#{placeholder}") rows="#{rows}" maxlength="#{length}" required="" #{value}
- else
- textarea.form-control name="#{name}" placeholder=("#{placeholder}") rows="5" maxlength="#{length}" #{value}
+ textarea.form-control name="#{name}" placeholder=("#{placeholder}") rows="#{rows}" maxlength="#{length}" #{value}
\ No newline at end of file