Add the 'display' type to the edit-item blade, allowing printed information that can't be edited

This commit is contained in:
Kevin MacMartin 2016-12-19 22:59:19 -05:00
parent 61233c887e
commit 54508b4ebe
2 changed files with 3 additions and 0 deletions

View file

@ -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

View file

@ -45,6 +45,8 @@
@endif
@endforeach
</select>
@elseif($column['type'] == 'display')
<div class="text-display">{{ $value }}</div>
@endif
</div>
@endif