Sha256: 5156061b256e8b9118782eacc589cede6126e405e35863bd408d4bfb99c5ce6b

Contents?: true

Size: 587 Bytes

Versions: 3

Compression:

Stored size: 587 Bytes

Contents

ruby:
  form ||= nil
  person_id_key ||= :person_id
  lookup_url ||= wcms_components_people_url
  placeholder ||= 'First or last name'
  required ||= false

  html_options = {placeholder: placeholder, required: required, class: 'form-control typeahead'}

- if lookup_url
  .person-lookup data-lookup-url=lookup_url
    - if form
      = form.hidden_field person_id_key, class: 'hidden-person-id'
    - else
      = hidden_field_tag person_id_key, '', class: 'hidden-person-id'
    = text_field_tag :person_name, '', html_options

- else
  p
    ' Please specify
    code = ":lookup_url"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
biola_wcms_components-0.2.1 app/views/wcms_components/forms/_person_lookup.html.slim
biola_wcms_components-0.2.0 app/views/wcms_components/forms/_person_lookup.html.slim
biola_wcms_components-0.1.0 app/views/wcms_components/forms/_person_lookup.html.slim