mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-06 10:44:33 +08:00
Standardized form button layout/colors
This commit is contained in:
@ -4,8 +4,13 @@
|
|||||||
<label for="name">Book Name</label>
|
<label for="name">Book Name</label>
|
||||||
@include('form/text', ['name' => 'name'])
|
@include('form/text', ['name' => 'name'])
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group description-input">
|
<div class="form-group description-input">
|
||||||
<label for="description">Description</label>
|
<label for="description">Description</label>
|
||||||
@include('form/textarea', ['name' => 'description'])
|
@include('form/textarea', ['name' => 'description'])
|
||||||
</div>
|
</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>
|
@ -11,8 +11,8 @@
|
|||||||
<form action="{{$chapter->getUrl()}}" method="POST">
|
<form action="{{$chapter->getUrl()}}" method="POST">
|
||||||
{!! csrf_field() !!}
|
{!! csrf_field() !!}
|
||||||
<input type="hidden" name="_method" value="DELETE">
|
<input type="hidden" name="_method" value="DELETE">
|
||||||
|
<a href="{{$chapter->getUrl()}}" class="button muted">Cancel</a>
|
||||||
<button type="submit" class="button neg">Confirm</button>
|
<button type="submit" class="button neg">Confirm</button>
|
||||||
<a href="{{$chapter->getUrl()}}" class="button">Cancel</a>
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -1,11 +1,17 @@
|
|||||||
|
|
||||||
{{ csrf_field() }}
|
{!! csrf_field() !!}
|
||||||
|
|
||||||
<div class="form-group title-input">
|
<div class="form-group title-input">
|
||||||
<label for="name">Chapter Name</label>
|
<label for="name">Chapter Name</label>
|
||||||
@include('form/text', ['name' => 'name'])
|
@include('form/text', ['name' => 'name'])
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group description-input">
|
<div class="form-group description-input">
|
||||||
<label for="description">Description</label>
|
<label for="description">Description</label>
|
||||||
@include('form/textarea', ['name' => 'description'])
|
@include('form/textarea', ['name' => 'description'])
|
||||||
</div>
|
</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>
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
<form action="{{$page->getUrl()}}" method="POST">
|
<form action="{{$page->getUrl()}}" method="POST">
|
||||||
{!! csrf_field() !!}
|
{!! csrf_field() !!}
|
||||||
<input type="hidden" name="_method" value="DELETE">
|
<input type="hidden" name="_method" value="DELETE">
|
||||||
|
<a href="{{$page->getUrl()}}" class="button muted">Cancel</a>
|
||||||
<button type="submit" class="button neg">Confirm</button>
|
<button type="submit" class="button neg">Confirm</button>
|
||||||
<a href="{{$page->getUrl()}}" class="button">Cancel</a>
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
@include('form/textarea', ['name' => 'html'])
|
@include('form/textarea', ['name' => 'html'])
|
||||||
</div>
|
</div>
|
||||||
<div class="margin-top large">
|
<div class="margin-top large">
|
||||||
|
<a onclick="window.history.back();" class="button muted">Cancel</a>
|
||||||
<button type="submit" class="button pos">Save Page</button>
|
<button type="submit" class="button pos">Save Page</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
<input type="hidden" name="_method" value="PUT">
|
<input type="hidden" name="_method" value="PUT">
|
||||||
<input type="hidden" id="sort-tree-input" name="sort-tree">
|
<input type="hidden" id="sort-tree-input" name="sort-tree">
|
||||||
<div class="list">
|
<div class="list">
|
||||||
|
<a href="{{$book->getUrl()}}" class="button muted">Cancel</a>
|
||||||
<button class="button pos" type="submit">Save Ordering</button>
|
<button class="button pos" type="submit">Save Ordering</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
Reference in New Issue
Block a user