Sha256: 4cc824e709a3e0a1baa5b63e7dca5527f3834f996e09ce4a02a5d4c2a9cf4328

Contents?: true

Size: 1.1 KB

Versions: 5

Compression:

Stored size: 1.1 KB

Contents

{% assign id=include.id %}
{% assign name=include.id %}

{% if include.required %}
  {% assign required="required" %}
{% endif %}

<p class="uikit-text-input__root {{ include.className | default: null }}">
  {% if include.label %}
    <label class="uikit-text-input__label" for="{{ include.id | default: id }}">
      {{ include.label }}
    </label>
  {% endif %}
  {% if include.hint %}
    <label class="uikit-text-input__hint" for="{{ include.id | default: id }}">{{ include.hint }}</label>
  {% endif %}
  <input
    class="uikit-text-input uikit-text-input--block"
    placeholder="{{ include.placeholder }}"
    type="{{ include.type | default: "text" }}"
    id="{{ include.id }}"
    value="{{ include.value | default: "" }}"
    name="{{ include.name | default: name }}"
    {{ required }}
    {% if include.pattern %}data-parsley-pattern="{{ include.pattern }}"{% endif %}
    {% if include.validation_message %}data-parsley-error-message="{{ include.validation_message }}"{% endif %}
  />
  {% if include.description %}
    <p class="uikit-text-input__description">{{ include.description }}</p>
  {% endif %}
</p>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dta_rapid-0.5.5 _includes/forms/text-field.html
dta_rapid-0.5.4 _includes/forms/text-field.html
dta_rapid-0.5.3 _includes/forms/text-field.html
dta_rapid-0.5.2 _includes/forms/text-field.html
dta_rapid-0.5.1 _includes/forms/text-field.html