Sha256: 06ea8550ee9539dc2a2f42542e47a77bb4669b80ff6395183e7c9cfedad47fea

Contents?: true

Size: 1.11 KB

Versions: 1

Compression:

Stored size: 1.11 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 }} currency">
  {% 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 %}

  <span class="currency-prefix">$</span>

  <input
    class="uikit-text-input uikit-text-input--block"
    placeholder="{{ include.placeholder }}"
    type="number"
    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

1 entries across 1 versions & 1 rubygems

Version Path
dta_rapid-0.5.6 _includes/forms/currency-field.html