mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-30 04:23:11 +03:00
Initial commit
This commit is contained in:
5
resources/views/form/delete-button.blade.php
Normal file
5
resources/views/form/delete-button.blade.php
Normal file
@ -0,0 +1,5 @@
|
||||
<form action="{{$url}}" method="POST">
|
||||
{{ csrf_field() }}
|
||||
<input type="hidden" name="_method" value="DELETE">
|
||||
<button type="submit" class="button neg">{{ isset($text) ? $text : 'Delete' }}</button>
|
||||
</form>
|
6
resources/views/form/text.blade.php
Normal file
6
resources/views/form/text.blade.php
Normal file
@ -0,0 +1,6 @@
|
||||
<input type="text" id="{{ $name }}" name="{{ $name }}"
|
||||
@if($errors->has($name)) class="neg" @endif
|
||||
@if(isset($model) || old($name)) value="{{ old($name) ? old($name) : $model->$name}}" @endif>
|
||||
@if($errors->has($name))
|
||||
<div class="text-neg text-small">{{ $errors->first($name) }}</div>
|
||||
@endif
|
5
resources/views/form/textarea.blade.php
Normal file
5
resources/views/form/textarea.blade.php
Normal file
@ -0,0 +1,5 @@
|
||||
<textarea id="{{ $name }}" name="{{ $name }}"
|
||||
@if($errors->has($name)) class="neg" @endif>@if(isset($model) || old($name)){{ old($name) ? old($name) : $model->$name}}@endif</textarea>
|
||||
@if($errors->has($name))
|
||||
<div class="text-neg text-small">{{ $errors->first($name) }}</div>
|
||||
@endif
|
Reference in New Issue
Block a user