teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

書式の改善

2018/07/06 08:07

投稿

Mitsu-44
Mitsu-44

スコア7

title CHANGED
File without changes
body CHANGED
@@ -6,18 +6,20 @@
6
6
 
7
7
  ### 発生している問題・エラーメッセージ
8
8
 
9
- なし
9
+ ボタンが縦並びにってまう
10
10
 
11
11
  ### 該当のソースコード
12
+ php, bootstrap
13
+
12
14
  <div>
13
- <span class="form-inline">
15
+ <span class="form-inline">
14
- @include('micropost_favorite.favorite_button', ['user'=>$user])
16
+ @include('micropost_favorite.favorite_button', ['user'=>$user])
15
- @if (Auth::id() == $micropost ->user_id)
17
+ @if (Auth::id() == $micropost ->user_id)
16
- {!! Form::open(['route' => ['microposts.destroy', $micropost->id], 'method' => 'delete']) !!}
18
+ {!! Form::open(['route' => ['microposts.destroy', $micropost->id], 'method' => 'delete']) !!}
17
- {!! Form::submit('delete', ['class' => 'btn btn-danger btn-xs']) !!}
19
+ {!! Form::submit('delete', ['class' => 'btn btn-danger btn-xs']) !!}
18
- {!! Form::close() !!}
20
+ {!! Form::close() !!}
19
- @endif
21
+ @endif
20
- </span>
22
+ </span>
21
23
  </div>
22
24
 
23
25
  ### 試したこと
@@ -26,4 +28,4 @@
26
28
 
27
29
  ### 補足情報(FW/ツールのバージョンなど)
28
30
 
29
- ここにより詳細な情報記載してください。
31
+ favorite.button とdelete ボタン横並びに表示せたです