質問編集履歴

5

ソース修正

2017/06/12 11:42

投稿

yuuuui
yuuuui

スコア59

test CHANGED
File without changes
test CHANGED
@@ -20,53 +20,57 @@
20
20
 
21
21
  ```HTML
22
22
 
23
- <div class="box2 padding_10">
23
+ <form method="GET" name="article" action="{{ url('/list') }}">
24
24
 
25
- <button class="btn_m" onclick="location.href='/list'" name="">一覧/CSVダウンロード</button>
25
+ <div class="box2 padding_10">
26
26
 
27
+ <button class="btn_m" onclick="location.href='/detail'" name="">一覧/CSVダウンロード</button>
28
+
27
- </div>
29
+ </div>
28
30
 
29
31
 
30
32
 
31
- <div class="box1">
33
+ <div class="box1">
32
34
 
33
- @foreach ($articles as $article)
35
+ @foreach ($articles as $article)
34
36
 
35
- <tr>
37
+ <tr>
36
38
 
37
- <td>
39
+ <td>
38
40
 
39
- <label>
41
+ <label>
40
42
 
41
- <input class="article" type="checkbox" name="article" value="article_{{ $article->id }}" />
43
+ <input class="article" type="checkbox" name="article" value="article_{{ $article->id }}" />
42
44
 
43
- <div class="checkbox bold"></div>
45
+ <div class="checkbox bold"></div>
44
46
 
45
- </label>
47
+ </label>
46
48
 
47
- </td>
49
+ </td>
48
50
 
49
- <td>
51
+ <td>
50
52
 
51
- <div>
53
+ <div>
52
54
 
53
- <a class="bold t_110" name="id" href="/list?></a>
55
+ <a class="bold t_110" name="id" href="/detail?id={{ $article->id }}"></a>
54
56
 
55
- </div>
57
+ </div>
56
58
 
57
- <div class="">
59
+ <div class="">
58
60
 
59
- {{ $article->text }}
61
+ {{ $article->text }}
60
62
 
61
- </div>
63
+ </div>
62
64
 
63
- </td>
65
+ </td>
64
66
 
65
- </tr>
67
+ </tr>
66
68
 
67
- @endforeach
69
+ @endforeach
68
70
 
69
- </div>
71
+ </div>
72
+
73
+ </form>
70
74
 
71
75
  ```
72
76
 

4

ソース修正

2017/06/12 11:42

投稿

yuuuui
yuuuui

スコア59

test CHANGED
File without changes
test CHANGED
@@ -50,7 +50,7 @@
50
50
 
51
51
  <div>
52
52
 
53
- <a class="bold t_110" name="id" href="/detail?id={{ $article->id }}"></a>
53
+ <a class="bold t_110" name="id" href="/list?></a>
54
54
 
55
55
  </div>
56
56
 

3

ソース修正

2017/06/12 11:27

投稿

yuuuui
yuuuui

スコア59

test CHANGED
File without changes
test CHANGED
@@ -22,7 +22,7 @@
22
22
 
23
23
  <div class="box2 padding_10">
24
24
 
25
- <button class="btn_m" onclick="location.href='/detail'" name="">一覧/CSVダウンロード</button>
25
+ <button class="btn_m" onclick="location.href='/list'" name="">一覧/CSVダウンロード</button>
26
26
 
27
27
  </div>
28
28
 

2

ソースの修正

2017/06/12 11:26

投稿

yuuuui
yuuuui

スコア59

test CHANGED
File without changes
test CHANGED
@@ -20,21 +20,53 @@
20
20
 
21
21
  ```HTML
22
22
 
23
- <!--チェックボックス -->
23
+ <div class="box2 padding_10">
24
24
 
25
- <label>
25
+ <button class="btn_m" onclick="location.href='/detail'" name="">一覧/CSVダウンロード</button>
26
26
 
27
- <input class="article" type="checkbox" name="article" value="article_{{ $article->id }}" />
28
-
29
- <div class="checkbox bold"></div>
30
-
31
- </label>
27
+ </div>
32
28
 
33
29
 
34
30
 
35
- <!--CSVダウンロード -->
31
+ <div class="box1">
36
32
 
33
+ @foreach ($articles as $article)
34
+
35
+ <tr>
36
+
37
+ <td>
38
+
39
+ <label>
40
+
41
+ <input class="article" type="checkbox" name="article" value="article_{{ $article->id }}" />
42
+
43
+ <div class="checkbox bold"></div>
44
+
45
+ </label>
46
+
47
+ </td>
48
+
49
+ <td>
50
+
51
+ <div>
52
+
37
- <button class="btn_m" onclick="location.href='/detail'" name="">一覧/CSVダウンロード</button>
53
+ <a class="bold t_110" name="id" href="/detail?id={{ $article->id }}"></a>
54
+
55
+ </div>
56
+
57
+ <div class="">
58
+
59
+ {{ $article->text }}
60
+
61
+ </div>
62
+
63
+ </td>
64
+
65
+ </tr>
66
+
67
+ @endforeach
68
+
69
+ </div>
38
70
 
39
71
  ```
40
72
 

1

情報の追加

2017/06/12 11:25

投稿

yuuuui
yuuuui

スコア59

test CHANGED
File without changes
test CHANGED
@@ -2,7 +2,11 @@
2
2
 
3
3
  ブログ記事を作成しています。
4
4
 
5
+
6
+
7
+ 実現したいこととして、
8
+
5
- チェックボックスにチェックを入れた記事を一覧で表示させ、CSVダウンロードをする機能を実装しす。
9
+ チェックボックスにチェックを入れた記事を一覧で表示させ、CSVダウンロードをする機能を実装しす。(CSVダウンロード機能は未実装)
6
10
 
7
11
 
8
12