Sha256: 11a67cee9add0578ba6c250eee1e1a7e871ce4d05690289c886aaa6d87a7b81c

Contents?: true

Size: 565 Bytes

Versions: 8

Compression:

Stored size: 565 Bytes

Contents

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


-if required
  .form-group.has-feedback.has-success
    label #{title}
    .fg-line
      input.form-control.fg-input id="#{id}" type="#{type}" placeholder=("#{placeholder}") name="#{name}" required="" value="#{value}"
-else
  .form-group
    label #{title}
    .fg-line
      input.form-control.fg-input id="#{id}" type="#{type}" placeholder=("#{placeholder}") name="#{name}" value="#{value}"

Version data entries

8 entries across 8 versions & 1 rubygems

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