mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-21 23:52:31 -05:00
Add the 'display' type to the edit-item blade, allowing printed information that can't be edited
This commit is contained in:
parent
61233c887e
commit
54508b4ebe
2 changed files with 3 additions and 0 deletions
|
@ -176,6 +176,7 @@ The following is a list of possible `types` in the `columns` array for Editable
|
|||
* `date`: Date and time selection tool for date/time data
|
||||
* `select`: Text input via option select with possible options in an `options` array
|
||||
* `hidden`: Fields that will contain values to pass to the update function but won't appear on the page (this must be used for the sort column)
|
||||
* `display`: Displayed information that can't be edited
|
||||
|
||||
#### Edit Item Functionality
|
||||
|
||||
|
|
|
@ -45,6 +45,8 @@
|
|||
@endif
|
||||
@endforeach
|
||||
</select>
|
||||
@elseif($column['type'] == 'display')
|
||||
<div class="text-display">{{ $value }}</div>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
|
|
Loading…
Reference in a new issue