الانتقال إلى المحتوى
الأقسام
Fiesta

field-money

النموذج الحقول التي يكتب فيها الشخص، في الحالات التي يضعها فيها نموذج حقيقي. كل واحد منها داخل ‎rst-box‎ بحشوة، لأن هذه هي البطاقة التي يوضع فيها النموذج.

مبلغ مالي بعملة واحدة. يظهر رمز العملة بجوار التسمية ويُرسَل مع النموذج، فإذا تغيّرت العملة بينما كان أحدهم يكتب، يُكتشف ذلك عند الحفظ.

كل مثال يعمل فعلًا، لكن روابطه لا تؤدي إلى أي مكان. يعرض HTML الترميز الجاهز للنسخ.

مجرّد

معاينة

ضع هذا داخل <section rst-box><form rst-form>.

<div rst-field>
  <label rst-field-label for="fm_bare">سعر التذكرة <span class="rst-mono">EUR</span></label>
  <input rst-input id="fm_bare" name="fm_bare" type="text" inputmode="decimal">
  <input type="hidden" name="fm_bare.locale" value="en">
  <input type="hidden" name="fm_bare.currency" value="EUR">
  <input type="hidden" name="fm_bare.seed" value="">
</div>

مع تلميح

معاينة

ضع هذا داخل <section rst-box><form rst-form>.

<div rst-field>
  <label rst-field-label for="fm_hint">سعر التذكرة <span class="rst-mono">EUR</span></label>
  <input rst-input id="fm_hint" name="fm_hint" type="text" inputmode="decimal" aria-describedby="fm_hint-hint">
  <input type="hidden" name="fm_hint.locale" value="en">
  <input type="hidden" name="fm_hint.currency" value="EUR">
  <input type="hidden" name="fm_hint.seed" value="">
  <small rst-field-hint id="fm_hint-hint">مثلًا، 12.50 أو €12.50.</small>
</div>

مع خطأ

معاينة

ضع هذا داخل <section rst-box><form rst-form>.

<div rst-field>
  <label rst-field-label for="fm_error">سعر التذكرة <span class="rst-mono">EUR</span></label>
  <input rst-input id="fm_error" name="fm_error" type="text" inputmode="decimal" value="12,.50" aria-invalid="true" aria-describedby="fm_error-error">
  <input type="hidden" name="fm_error.locale" value="en">
  <input type="hidden" name="fm_error.currency" value="EUR">
  <input type="hidden" name="fm_error.seed" value="">
  <small rst-field-error id="fm_error-error">استخدم النقطة للكسور العشرية، مثل 12.50.</small>
</div>