回答編集履歴
2
answer
CHANGED
@@ -30,6 +30,8 @@
|
|
30
30
|
{% endfor %}
|
31
31
|
</tbody>
|
32
32
|
</table>
|
33
|
+
<!-- ここは削除 <input class="btn btn-outline-success" type="submit" value="保存する"> -->
|
34
|
+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js?ver=1.12.4"></script>
|
33
35
|
```
|
34
36
|
|
35
37
|
・app.py
|
1
修正範囲表示部分の拡張
answer
CHANGED
@@ -3,6 +3,14 @@
|
|
3
3
|
・スピナーのインプットに、peopleという名前を設定し、valueで 競合人数を返すようにします。
|
4
4
|
|
5
5
|
```html
|
6
|
+
<table class="table table-bordered table-striped">
|
7
|
+
<thead>
|
8
|
+
<tr>
|
9
|
+
<th scope="col">#</th>
|
10
|
+
<th scope="col">書籍名</th>
|
11
|
+
<th scope="col">競合人数</th>
|
12
|
+
</tr>
|
13
|
+
</thead>
|
6
14
|
<tbody>
|
7
15
|
{% for item in data %}
|
8
16
|
<tr>
|
@@ -21,6 +29,7 @@
|
|
21
29
|
</tr>
|
22
30
|
{% endfor %}
|
23
31
|
</tbody>
|
32
|
+
</table>
|
24
33
|
```
|
25
34
|
|
26
35
|
・app.py
|