Sha256: 7db884c5619a5b36b1524122b63bcf046c2f5b39bee287241a94909d422c2502

Contents?: true

Size: 453 Bytes

Versions: 35

Compression:

Stored size: 453 Bytes

Contents

ruby:
  # If you change parameters here, also change them in _date.html.slim
  form ||= nil
  attribute ||= nil
  placeholder ||= nil
  required ||= false
  value ||= nil
  format ||= 'datetime'

  html_options = {
    placeholder: placeholder,
    required: required,
    class: 'form-control chronic_ping',
    data: {format: format}
  }


- if form
  = form.text_field attribute, html_options
- else
  = text_field_tag attribute, value, html_options

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
biola_wcms_components-0.15.1 app/views/wcms_components/forms/_datetime.html.slim
biola_wcms_components-0.15.0 app/views/wcms_components/forms/_datetime.html.slim
biola_wcms_components-0.14.0 app/views/wcms_components/forms/_datetime.html.slim
biola_wcms_components-0.13.0 app/views/wcms_components/forms/_datetime.html.slim
biola_wcms_components-0.12.0 app/views/wcms_components/forms/_datetime.html.slim
biola_wcms_components-0.11.0 app/views/wcms_components/forms/_datetime.html.slim
biola_wcms_components-0.10.0 app/views/wcms_components/forms/_datetime.html.slim
biola_wcms_components-0.9.1 app/views/wcms_components/forms/_datetime.html.slim
biola_wcms_components-0.9.0 app/views/wcms_components/forms/_datetime.html.slim
biola_wcms_components-0.8.0 app/views/wcms_components/forms/_datetime.html.slim
biola_wcms_components-0.7.0 app/views/wcms_components/forms/_datetime.html.slim
biola_wcms_components-0.6.1 app/views/wcms_components/forms/_datetime.html.slim
biola_wcms_components-0.6.0 app/views/wcms_components/forms/_datetime.html.slim
biola_wcms_components-0.5.0 app/views/wcms_components/forms/_datetime.html.slim
biola_wcms_components-0.4.0 app/views/wcms_components/forms/_datetime.html.slim