Bootstrap/HtmlCss Inconsistency

...

http://www.files.com/image/56aa3406a11dc/Screen%20Shot%202016-01-28%20at%209.20.01%20PM.png

Followed all steps correctly but it seems like there's a bit of inconsistency in the provided code in the book. Like the button colors (Had to insert btn-raised) and alignment (Had to modify it). Also the last part of Chapter 2 wherein we reference the bootstrap JS and CSS. For some reason, some pages doesn't load the javascript properly. It couldn't find it. Solved it using assets().


 
Circle Image
 
 
LearningLaravel
Posts:  10
Points:  16
 
 
 
11 months ago
 

Thanks. We'll check and fix it soon.

You may also use:

<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>

 
 
Circle Image
 
 
Ityan
Posts:  5
Points:  8
 
 
 
11 months ago
 

A quick fix for the Delete Button alignment bug:

Old: <a href="{!! action('[email protected]', $ticket->slug) !!}" class="btn btn-info pull-left">Edit</a>

<form method="post" action="{!! action('[email protected]', $ticket->slug) !!}" class="pull-left"> <input type="hidden" name="_token" value="{!! csrf_token() !!}"> <div class="form-group"> <div> <button type="submit" class="btn btn-warning">Delete</button> </div> </div> </form> <div class="clearfix"></div>

New: <a href="{!! action('[email protected]', $ticket->slug) !!}" class="btn btn-raised btn-info pull-left">Edit</a>

<form method="post" action="{!! action('[email protected]', $ticket->slug) !!}" class="pull-left"> <input type="hidden" name="_token" value="{!! csrf_token() !!}"> <button type="submit" class="btn btn-raised btn-warning">Delete</button> </form> <div class="clearfix"></div>

 
 
Circle Image
 
 
Ityan
Posts:  5
Points:  8
 
 
 
11 months ago
 

How do I post here like its in a code editor?

 
 
Circle Image
 
 
Ityan
Posts:  5
Points:  8
 
 
 
11 months ago
 

How do I post here like its in a code editor?