From 54508b4ebe35e1f4399fd760a87fc55cdb73a925 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Mon, 19 Dec 2016 22:59:19 -0500 Subject: [PATCH] Add the 'display' type to the edit-item blade, allowing printed information that can't be edited --- readme.md | 1 + resources/views/dashboard/edit-item.blade.php | 2 ++ 2 files changed, 3 insertions(+) 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