回答編集履歴

1

修正

2019/09/15 11:23

投稿

退会済みユーザー
test CHANGED
@@ -6,27 +6,13 @@
6
6
 
7
7
  <form class="mx-auto text-center" action="" method="POST" enctype='multipart/form-data'>
8
8
 
9
- {{ form.non_field_errors }}
9
+ <div class="form-group">
10
10
 
11
- {% for field in form %}
11
+ <input type="file" name="upload" class="form-control-file formInner" required>
12
12
 
13
- <div class="form-group">
13
+ </div>
14
14
 
15
- <label for="{{ field.id_for_label }}">{{ field.label_tag }}</label>
16
-
17
- {{ field }}
18
-
19
- {{ field.errors }}
20
-
21
- </div>
22
-
23
- {% endfor %}
24
-
25
- {% csrf_token %}
26
-
27
-
28
-
29
- </form>
15
+ </form>
30
16
 
31
17
 
32
18
 
@@ -52,6 +38,14 @@
52
38
 
53
39
  }
54
40
 
41
+
42
+
43
+ .formInner{
44
+
45
+ width:inherit;
46
+
47
+ }
48
+
55
49
  ```
56
50
 
57
51