Sha256: d2ed8f9f916dcd40c75c9d60f2a11cf1915e06c934fdc1d6d189429dcff6101a

Contents?: true

Size: 502 Bytes

Versions: 8

Compression:

Stored size: 502 Bytes

Contents

- unless defined? required
  - required = false
- if !(defined? id) || id.blank? 
  - id = "#{name}_#{rand(1000)}"
- unless defined? placeholder
  - placeholder = "Escribe aquĆ­..."

.form-group
  .fg-line
    label.fg-label #{title}
    - if required
      textarea.form-control name="#{name}" placeholder=("#{placeholder}") rows="5" maxlength="#{length}" required="" #{value}
    - else
      textarea.form-control name="#{name}" placeholder=("#{placeholder}") rows="5" maxlength="#{length}" #{value}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sinatra-hexacta-0.3.3 lib/sinatra/views/inputs/textarea.slim
sinatra-hexacta-0.3.2 lib/sinatra/views/inputs/textarea.slim
sinatra-hexacta-0.3.1 lib/sinatra/views/inputs/textarea.slim
sinatra-hexacta-0.3.0 lib/sinatra/views/inputs/textarea.slim
sinatra-hexacta-0.1.1 lib/sinatra/views/inputs/textarea.slim
sinatra-hexacta-0.1.0 lib/sinatra/views/inputs/textarea.slim
sinatra-hexacta-0.0.2 lib/sinatra/views/inputs/textarea.slim
sinatra-hexacta-0.0.1 lib/sinatra/views/inputs/textarea.slim