field
ラベル、入力欄、任意のヒント、補足、エラー。ID を明示した、一般的なテキスト系のコントロールです。
素のまま
これは <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" "四半期の取締役会" }}