Standardized form button layout/colors

This commit is contained in:
Dan Brown 2015-08-08 21:38:11 +01:00
parent 52033f3a6f
commit a4f21e9482
6 changed files with 18 additions and 5 deletions

View File

@ -4,8 +4,13 @@
<label for="name">Book Name</label>
@include('form/text', ['name' => 'name'])
</div>
<div class="form-group description-input">
<label for="description">Description</label>
@include('form/textarea', ['name' => 'description'])
</div>
<button type="submit" class="button pos">Save</button>
<div class="form-group">
<a href="/books" class="button muted">Cancel</a>
<button type="submit" class="button pos">Save Book</button>
</div>

View File

@ -11,8 +11,8 @@
<form action="{{$chapter->getUrl()}}" method="POST">
{!! csrf_field() !!}
<input type="hidden" name="_method" value="DELETE">
<a href="{{$chapter->getUrl()}}" class="button muted">Cancel</a>
<button type="submit" class="button neg">Confirm</button>
<a href="{{$chapter->getUrl()}}" class="button">Cancel</a>
</form>
</div>

View File

@ -1,11 +1,17 @@
{{ csrf_field() }}
{!! csrf_field() !!}
<div class="form-group title-input">
<label for="name">Chapter Name</label>
@include('form/text', ['name' => 'name'])
</div>
<div class="form-group description-input">
<label for="description">Description</label>
@include('form/textarea', ['name' => 'description'])
</div>
<button type="submit" class="button pos">Save</button>
<div class="form-group">
<a onclick="window.history.back();" class="button muted">Cancel</a>
<button type="submit" class="button pos">Save</button>
</div>

View File

@ -9,8 +9,8 @@
<form action="{{$page->getUrl()}}" method="POST">
{!! csrf_field() !!}
<input type="hidden" name="_method" value="DELETE">
<a href="{{$page->getUrl()}}" class="button muted">Cancel</a>
<button type="submit" class="button neg">Confirm</button>
<a href="{{$page->getUrl()}}" class="button">Cancel</a>
</form>
</div>

View File

@ -13,6 +13,7 @@
@include('form/textarea', ['name' => 'html'])
</div>
<div class="margin-top large">
<a onclick="window.history.back();" class="button muted">Cancel</a>
<button type="submit" class="button pos">Save Page</button>
</div>
</div>

View File

@ -27,6 +27,7 @@
<input type="hidden" name="_method" value="PUT">
<input type="hidden" id="sort-tree-input" name="sort-tree">
<div class="list">
<a href="{{$book->getUrl()}}" class="button muted">Cancel</a>
<button class="button pos" type="submit">Save Ordering</button>
</div>
</form>