field
تسمية وحقل إدخال وتلميح اختياري وشرح وخطأ. عنصر التحكّم النصّي العام، بمعرّف صريح.
مجرّد
ضع هذا داخل <section rst-box><form rst-form>.
<div rst-field >
<label rst-field-label for ="f_bare" >العنوان</label >
<input rst-input type ="text" id ="f_bare" name ="f_bare" >
</div >
ضع هذا داخل <section rst-box><form rst-form>.
{{ template "field" dict "ID" "f_bare" "Name" "f_bare" "Label" "العنوان" }}
مع تلميح
ضع هذا داخل <section rst-box><form rst-form>.
<div rst-field >
<label rst-field-label for ="f_hint" >المعرّف النصي <span rst-field-hint >(أحرف صغيرة، بلا مسافات)</span ></label >
<input rst-input type ="text" id ="f_hint" name ="f_hint" >
</div >
ضع هذا داخل <section rst-box><form rst-form>.
{{ template "field" dict
"ID" "f_hint"
"Name" "f_hint"
"Label" "المعرّف النصي"
"Hint" "أحرف صغيرة، بلا مسافات" }}
مع مساعدة أسفل عنصر التحكّم
ضع هذا داخل <section rst-box><form rst-form>.
<div rst-field >
<label rst-field-label for ="f_help" >البريد الإلكتروني</label >
<input rst-input type ="email" id ="f_help" name ="f_help" autocomplete ="email" aria-describedby ="f_help-help" >
<p rst-field-help id ="f_help-help" >نستخدمه فقط لإرسال الردود إليك.</p >
</div >
ضع هذا داخل <section rst-box><form rst-form>.
{{ template "field" dict
"ID" "f_help"
"Name" "f_help"
"Label" "البريد الإلكتروني"
"Type" "email"
"Help" "نستخدمه فقط لإرسال الردود إليك."
"Autocomplete" "email" }}
مطلوب
ضع هذا داخل <section rst-box><form rst-form>.
<div rst-field >
<label rst-field-label for ="f_required" >الاسم الكامل</label >
<input rst-input type ="text" id ="f_required" name ="f_required" required >
</div >
ضع هذا داخل <section rst-box><form rst-form>.
{{ template "field" dict
"ID" "f_required"
"Name" "f_required"
"Label" "الاسم الكامل"
"Required" true }}
مع خطأ
ضع هذا داخل <section rst-box><form rst-form>.
<div rst-field >
<label rst-field-label for ="f_error" >البريد الإلكتروني</label >
<input rst-input type ="email" id ="f_error" name ="f_error" value ="grace@" aria-invalid ="true" aria-describedby ="f_error-error" >
<p rst-field-error id ="f_error-error" role ="alert" >لا يبدو هذا عنوان بريد إلكتروني.</p >
</div >
ضع هذا داخل <section rst-box><form rst-form>.
{{ template "field" dict
"ID" "f_error"
"Name" "f_error"
"Label" "البريد الإلكتروني"
"Type" "email"
"Error" "لا يبدو هذا عنوان بريد إلكتروني."
"Value" "grace@" }}
قصير
ضع هذا داخل <section rst-box><form rst-form>.
<div rst-field >
<label rst-field-label for ="f_short" >الرمز البريدي</label >
<input rst-input ="short" type ="text" id ="f_short" name ="f_short" value ="D02 XY45" >
</div >
ضع هذا داخل <section rst-box><form rst-form>.
{{ template "field" dict
"ID" "f_short"
"Name" "f_short"
"Label" "الرمز البريدي"
"Short" true
"Value" "D02 XY45" }}
الحقل الرئيسي
ضع هذا داخل <section rst-box><form rst-form>.
<div rst-field >
<label rst-field-label for ="f_primary" >العنوان</label >
<input rst-input ="primary" type ="text" id ="f_primary" name ="f_primary" value ="اجتماع مجلس الإدارة الفصلي" >
</div >
ضع هذا داخل <section rst-box><form rst-form>.
{{ template "field" dict
"ID" "f_primary"
"Name" "f_primary"
"Label" "العنوان"
"Primary" true
"Value" "اجتماع مجلس الإدارة الفصلي" }}