diff --git a/readme.md b/readme.md index dcf1eff..44e494a 100644 --- a/readme.md +++ b/readme.md @@ -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 diff --git a/resources/views/dashboard/edit-item.blade.php b/resources/views/dashboard/edit-item.blade.php index 7ae92ff..f2b8277 100644 --- a/resources/views/dashboard/edit-item.blade.php +++ b/resources/views/dashboard/edit-item.blade.php @@ -45,6 +45,8 @@ @endif @endforeach + @elseif($column['type'] == 'display') +
{{ $value }}
@endif @endif