This repository has been archived by the owner on Oct 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add disabled and readOnly properties on form elements and size proper…
…ty for delete button
- Loading branch information
Showing
21 changed files
with
62 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
@can('update', $model) | ||
<a class="btn btn-{{ $size or 'sm' }} btn-edit" href="{{ $url }}"><i class="fas fa-edit"></i> Edit</a> | ||
<a class="btn btn-{{ $size ?? 'sm' }} btn-edit" href="{{ $url }}"><i class="fas fa-edit"></i> Edit</a> | ||
@endcan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
@can('view', $model) | ||
<a class="btn btn-{{ $size or 'sm' }} btn-primary" href="{{ $url }}"><i class="fas fa-eye"></i> View</a> | ||
<a class="btn btn-{{ $size ?? 'sm' }} btn-primary" href="{{ $url }}"><i class="fas fa-eye"></i> View</a> | ||
@endcan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
<div class="form-group"> | ||
<div class="checkbox"> | ||
<label> | ||
<input type="checkbox" name="{{ $name }}" class="{{ $class or '' }}" value="{{ $value or 1 }}" @if(isset($checked) && $checked) checked @endif> {{ $label }} | ||
<input type="checkbox" | ||
name="{{ $name }}" | ||
class="{{ $class ?? '' }}" | ||
value="{{ $value ?? 1 }}" | ||
{{ isset($required) && $required ? 'required' : '' }} | ||
{{ isset($disabled) && $disabled ? 'disabled' : '' }} | ||
> {{ $label }} | ||
</label> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<button type="submit" class="btn {{ $class or 'btn-success' }}"> | ||
<button type="submit" class="btn {{ $class ?? 'btn-success' }}" {{ isset($disabled) && $disabled ? 'disabled' : '' }}> | ||
@isset($icon) | ||
<i class="fas fa-{{ $icon }}"></i> | ||
@endisset | ||
|
||
{{ $label or 'Submit' }} | ||
{{ $label ?? 'Submit' }} | ||
</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<div class="togglebutton"> | ||
<label> | ||
<input type="checkbox" name="{{ $name }}" class="{{ $class or '' }}" {{ isset($checked) && $checked ? 'checked' : '' }}> {{ $label }} | ||
<input type="checkbox" name="{{ $name }}" class="{{ $class ?? '' }}" {{ isset($checked) && $checked ? 'checked' : '' }}> {{ $label }} | ||
</label> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<li class="{{ $active or false ? 'active' : '' }}"> | ||
<a href="{{ $url or route($route) }}"> | ||
<li class="{{ $active ?? false ? 'active' : '' }}"> | ||
<a href="{{ $url ?? route($route) }}"> | ||
<span class="sidebar-normal">{{ $title }}</span> | ||
</a> | ||
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<div id="{{ $panel }}" class="tab-panel {{ $active or false ? 'active' : '' }}"> | ||
<div id="{{ $panel }}" class="tab-panel {{ $active ?? false ? 'active' : '' }}"> | ||
{{ $slot }} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters