Dan Brown

Standardized form button layout/colors

...@@ -4,8 +4,13 @@ ...@@ -4,8 +4,13 @@
4 <label for="name">Book Name</label> 4 <label for="name">Book Name</label>
5 @include('form/text', ['name' => 'name']) 5 @include('form/text', ['name' => 'name'])
6 </div> 6 </div>
7 +
7 <div class="form-group description-input"> 8 <div class="form-group description-input">
8 <label for="description">Description</label> 9 <label for="description">Description</label>
9 @include('form/textarea', ['name' => 'description']) 10 @include('form/textarea', ['name' => 'description'])
10 </div> 11 </div>
11 -<button type="submit" class="button pos">Save</button>
...\ No newline at end of file ...\ No newline at end of file
12 +
13 +<div class="form-group">
14 + <a href="/books" class="button muted">Cancel</a>
15 + <button type="submit" class="button pos">Save Book</button>
16 +</div>
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
11 <form action="{{$chapter->getUrl()}}" method="POST"> 11 <form action="{{$chapter->getUrl()}}" method="POST">
12 {!! csrf_field() !!} 12 {!! csrf_field() !!}
13 <input type="hidden" name="_method" value="DELETE"> 13 <input type="hidden" name="_method" value="DELETE">
14 + <a href="{{$chapter->getUrl()}}" class="button muted">Cancel</a>
14 <button type="submit" class="button neg">Confirm</button> 15 <button type="submit" class="button neg">Confirm</button>
15 - <a href="{{$chapter->getUrl()}}" class="button">Cancel</a>
16 </form> 16 </form>
17 </div> 17 </div>
18 18
......
1 1
2 -{{ csrf_field() }} 2 +{!! csrf_field() !!}
3 +
3 <div class="form-group title-input"> 4 <div class="form-group title-input">
4 <label for="name">Chapter Name</label> 5 <label for="name">Chapter Name</label>
5 @include('form/text', ['name' => 'name']) 6 @include('form/text', ['name' => 'name'])
6 </div> 7 </div>
8 +
7 <div class="form-group description-input"> 9 <div class="form-group description-input">
8 <label for="description">Description</label> 10 <label for="description">Description</label>
9 @include('form/textarea', ['name' => 'description']) 11 @include('form/textarea', ['name' => 'description'])
10 </div> 12 </div>
11 -<button type="submit" class="button pos">Save</button>
...\ No newline at end of file ...\ No newline at end of file
13 +
14 +<div class="form-group">
15 + <a onclick="window.history.back();" class="button muted">Cancel</a>
16 + <button type="submit" class="button pos">Save</button>
17 +</div>
......
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
9 <form action="{{$page->getUrl()}}" method="POST"> 9 <form action="{{$page->getUrl()}}" method="POST">
10 {!! csrf_field() !!} 10 {!! csrf_field() !!}
11 <input type="hidden" name="_method" value="DELETE"> 11 <input type="hidden" name="_method" value="DELETE">
12 + <a href="{{$page->getUrl()}}" class="button muted">Cancel</a>
12 <button type="submit" class="button neg">Confirm</button> 13 <button type="submit" class="button neg">Confirm</button>
13 - <a href="{{$page->getUrl()}}" class="button">Cancel</a>
14 </form> 14 </form>
15 </div> 15 </div>
16 16
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
13 @include('form/textarea', ['name' => 'html']) 13 @include('form/textarea', ['name' => 'html'])
14 </div> 14 </div>
15 <div class="margin-top large"> 15 <div class="margin-top large">
16 + <a onclick="window.history.back();" class="button muted">Cancel</a>
16 <button type="submit" class="button pos">Save Page</button> 17 <button type="submit" class="button pos">Save Page</button>
17 </div> 18 </div>
18 </div> 19 </div>
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
27 <input type="hidden" name="_method" value="PUT"> 27 <input type="hidden" name="_method" value="PUT">
28 <input type="hidden" id="sort-tree-input" name="sort-tree"> 28 <input type="hidden" id="sort-tree-input" name="sort-tree">
29 <div class="list"> 29 <div class="list">
30 + <a href="{{$book->getUrl()}}" class="button muted">Cancel</a>
30 <button class="button pos" type="submit">Save Ordering</button> 31 <button class="button pos" type="submit">Save Ordering</button>
31 </div> 32 </div>
32 </form> 33 </form>
......