質問編集履歴

1

追記記入

2020/03/31 06:52

投稿

tomaa
tomaa

スコア84

test CHANGED
File without changes
test CHANGED
@@ -134,7 +134,35 @@
134
134
 
135
135
  ```
136
136
 
137
+ FormViewのテンプレート
137
138
 
139
+ ```html
140
+
141
+ {{ form.non_field_errors }}
142
+
143
+
144
+
145
+ {% for field in form %}
146
+
147
+ <label for="{{ field.id_for_label }}" class="control-label col-md-4 col-sm-4 ">
148
+
149
+ {{ field.label_tag }}
150
+
151
+ </label>
152
+
153
+ <div class="col-md-8 col-sm-8 ">
154
+
155
+ {{ field }}
156
+
157
+ {{ field.errors }}
158
+
159
+ </div>
160
+
161
+
162
+
163
+ {% endfor %}
164
+
165
+ ```
138
166
 
139
167
 
140
168