per page, with , order by , clip by
Results of 1 - 10 of about 130 for label (0.009 sec.)
フォーム API — Django 6.1 ドキュメント 11805
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » フォーム API ¶ このドキュメントについて このドキュメントでは、Django のフォーム API の詳細について説明します。このドキュメントを読む前に フォームにつ ... ンスを変更することで、フォーム内でのフィールドの表示方法を変更できます。 >>> f . as_div () . split ( "</div>" )[ 0 ] '<div><label for="id_subject">Subject:</label><input type="text" name="subject" maxlength="100" required id="id_subject">' >>> f [ "sub ... ject" ] . label = "Topic" >>> f . as_div () . split ( "</div>" )[ 0 ] '<div><label for="id_subject">Topic:</label><input type="text" name= ... 変更は、同じPythonプロセス内のすべての後続の ContactForm インスタンスに影響を与えます。 >>> f . base_fields [ "subject" ] . label_suffix = "?" >>> another_f = ContactForm ( auto_id = False ) >>> another_f . as_div () . split ( "</div>" )[ 0 ] '<div><la ...
https://man.mtool.work/django/6.1/ref/forms/api.html
フォーム API — Django 6.1 ドキュメント 11805
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » フォーム API ¶ このドキュメントについて このドキュメントでは、Django のフォーム API の詳細について説明します。このドキュメントを読む前に フォームにつ ... ンスを変更することで、フォーム内でのフィールドの表示方法を変更できます。 >>> f . as_div () . split ( "</div>" )[ 0 ] '<div><label for="id_subject">Subject:</label><input type="text" name="subject" maxlength="100" required id="id_subject">' >>> f [ "sub ... ject" ] . label = "Topic" >>> f . as_div () . split ( "</div>" )[ 0 ] '<div><label for="id_subject">Topic:</label><input type="text" name= ... 変更は、同じPythonプロセス内のすべての後続の ContactForm インスタンスに影響を与えます。 >>> f . base_fields [ "subject" ] . label_suffix = "?" >>> another_f = ContactForm ( auto_id = False ) >>> another_f . as_div () . split ( "</div>" )[ 0 ] '<div><la ...
https://man.mtool.work/django/6.1/ref/forms/api.html
フォームセット (Formset) — Django 6.1 ドキュメント 10286
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » フォームセット (Formset) ¶ class BaseFormSet [ソース] ¶ フォームセットは、同じページで複数のフォームを扱うための抽象レイヤーです。データグリッドに例 ... 常のフォームと同じように表示できます: >>> formset = ArticleFormSet () >>> for form in formset : ... print ( form ) ... <div><label for="id_form-0-title">Title:</label><input type="text" name="form-0-title" id="id_form-0-title"></div> <div><label for="id ... _form-0-pub_date">Pub date:</label><input type="text" name="form-0-pub_date" id="id_form-0-pub_date"></div> 見てのとおり、空のフォームがひとつだけ表示されまし ... e" , ... "pub_date" : datetime . date . today (), ... } ... ] ... ) >>> for form in formset : ... print ( form ) ... <div><label for="id_form-0-title">Title:</label><input type="text" name="form-0-title" value="Django is now open source" id="id_form-0 ...
https://man.mtool.work/django/6.1/topics/forms/formsets.html
フォームセット (Formset) — Django 6.1 ドキュメント 10286
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » フォームセット (Formset) ¶ class BaseFormSet [ソース] ¶ フォームセットは、同じページで複数のフォームを扱うための抽象レイヤーです。データグリッドに例 ... 常のフォームと同じように表示できます: >>> formset = ArticleFormSet () >>> for form in formset : ... print ( form ) ... <div><label for="id_form-0-title">Title:</label><input type="text" name="form-0-title" id="id_form-0-title"></div> <div><label for="id ... _form-0-pub_date">Pub date:</label><input type="text" name="form-0-pub_date" id="id_form-0-pub_date"></div> 見てのとおり、空のフォームがひとつだけ表示されまし ... e" , ... "pub_date" : datetime . date . today (), ... } ... ] ... ) >>> for form in formset : ... print ( form ) ... <div><label for="id_form-0-title">Title:</label><input type="text" name="form-0-title" value="Django is now open source" id="id_form-0 ...
https://man.mtool.work/django/6.1/topics/forms/formsets.html
ウィジェット — Django 6.1 ドキュメント 9143
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » ウィジェット ¶ ウィジェットは、Django が HTML の input 要素の表現方法です。ウィジェットは、HTML のレンダリングをコントロールして、ウィジェットに合致 ... e="text" name="comment" size="40" required></div> attrs を使った HTML の id をセットすることもできます。 BoundField.id_for_label で例を参照してください。 ウィジェットのクラスにスタイルを設定する ¶ ウィジェットとともに、アセット ( css や javascript ) 、 ... name の値。 Widget のサブクラスは、このメソッドをオーバーライドすることで、カスタムのコンテキスト値を提供できます。 id_for_label ( id_ ) [ソース] ¶ このウィジェットのHTML ID属性を返します。これは、フィールドのIDをもとにして <label> によって使用されます ... して RadioSelect を使用するフィールド beatles を持つフォーム myform を例にとると: < fieldset > < legend > {{ myform.beatles.label }} </ legend > {% for radio in myform.beatles %} < div class = "myradio" > {{ radio }} </ div > {% endfor %} </ fieldset > ...
https://man.mtool.work/django/6.1/ref/forms/widgets.html
ウィジェット — Django 6.1 ドキュメント 9143
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » ウィジェット ¶ ウィジェットは、Django が HTML の input 要素の表現方法です。ウィジェットは、HTML のレンダリングをコントロールして、ウィジェットに合致 ... e="text" name="comment" size="40" required></div> attrs を使った HTML の id をセットすることもできます。 BoundField.id_for_label で例を参照してください。 ウィジェットのクラスにスタイルを設定する ¶ ウィジェットとともに、アセット ( css や javascript ) 、 ... name の値。 Widget のサブクラスは、このメソッドをオーバーライドすることで、カスタムのコンテキスト値を提供できます。 id_for_label ( id_ ) [ソース] ¶ このウィジェットのHTML ID属性を返します。これは、フィールドのIDをもとにして <label> によって使用されます ... して RadioSelect を使用するフィールド beatles を持つフォーム myform を例にとると: < fieldset > < legend > {{ myform.beatles.label }} </ legend > {% for radio in myform.beatles %} < div class = "myradio" > {{ radio }} </ div > {% endfor %} </ fieldset > ...
https://man.mtool.work/django/6.1/ref/forms/widgets.html
フォームを使う — Django 6.1 ドキュメント 9070
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » フォームを使う ¶ このドキュメントについて このドキュメントでは、Web フォームの基本と、それらを Django で扱う方法を紹介しています。より詳しく知りたい ... 取得するために、ウェブサイトで簡単なフォームを作ることを考えてみましょう: < form action = "/your-name/" method = "post" > < label for = "your_name" > Your name: </ label > < input id = "your_name" type = "text" name = "your_name" value = " {{ current_n ... ト地点は以下の通りです: forms.py ¶ from django import forms class NameForm ( forms . Form ): your_name = forms . CharField ( label = "Your name" , max_length = 100 ) これは、単一のフィールド ( your_name ) で Form クラスを定義します。人間が読みやすいラベ ... ルをフィールドに適用してあり、このラベルはレンダリングされたときに <label> の中に表示されます (このケースでは、仮にラベルの指定を省略したとしても、実際には指定した label が自動的に生成されるラベル ...
https://man.mtool.work/django/6.1/topics/forms/
フォームを使う — Django 6.1 ドキュメント 8960
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » フォームを使う ¶ このドキュメントについて このドキュメントでは、Web フォームの基本と、それらを Django で扱う方法を紹介しています。より詳しく知りたい ... 取得するために、ウェブサイトで簡単なフォームを作ることを考えてみましょう: < form action = "/your-name/" method = "post" > < label for = "your_name" > Your name: </ label > < input id = "your_name" type = "text" name = "your_name" value = " {{ current_n ... ト地点は以下の通りです: forms.py ¶ from django import forms class NameForm ( forms . Form ): your_name = forms . CharField ( label = "Your name" , max_length = 100 ) これは、単一のフィールド ( your_name ) で Form クラスを定義します。人間が読みやすいラベ ... ルをフィールドに適用してあり、このラベルはレンダリングされたときに <label> の中に表示されます (このケースでは、仮にラベルの指定を省略したとしても、実際には指定した label が自動的に生成されるラベル ...
https://man.mtool.work/django/6.1/topics/forms/
フォーム フィールド — Django 6.1 ドキュメント 8729
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » フォーム フィールド ¶ class Field [ソース] ¶ Form クラスを作成時の一番重要な部分は、form のフィールド (field) の定義です。各フィールドにはカスタムの ... uired 属性が含まれていません。これは、フォームセットの追加や削除を行う際にブラウザの検証が正しくない可能性があるためです。 label ¶ Field. labellabel 属性は、フィールドに対する "人が読みやすい" ラベルを指定します。このラベルは Field が Form 内で表示 ... されるときに使用されます。 As explained in フォームをHTMLとしてアウトプットする , the default label for a Field is generated from the field name by converting all underscores to spaces and upper-casing the first letter. Sp ... ecify a string for label if that default behavior doesn't result in an adequate label. Use an empty string ( "" ) to hide the label. 以下は、2 つの ...
https://man.mtool.work/django/6.1/ref/forms/fields.html
フォーム フィールド — Django 6.1 ドキュメント 8729
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » フォーム フィールド ¶ class Field [ソース] ¶ Form クラスを作成時の一番重要な部分は、form のフィールド (field) の定義です。各フィールドにはカスタムの ... uired 属性が含まれていません。これは、フォームセットの追加や削除を行う際にブラウザの検証が正しくない可能性があるためです。 label ¶ Field. labellabel 属性は、フィールドに対する "人が読みやすい" ラベルを指定します。このラベルは Field が Form 内で表示 ... されるときに使用されます。 As explained in フォームをHTMLとしてアウトプットする , the default label for a Field is generated from the field name by converting all underscores to spaces and upper-casing the first letter. Sp ... ecify a string for label if that default behavior doesn't result in an adequate label. Use an empty string ( "" ) to hide the label. 以下は、2 つの ...
https://man.mtool.work/django/6.1/ref/forms/fields.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT