From 8ab58f3c4d2141f933de34e4997dde5cf6aad419 Mon Sep 17 00:00:00 2001 From: James Brooks Date: Sun, 18 Jan 2015 21:06:38 +0000 Subject: [PATCH] Don't show the template picker if there are none to pick --- app/views/dashboard/incidents/add.blade.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/views/dashboard/incidents/add.blade.php b/app/views/dashboard/incidents/add.blade.php index 8f2a10ef..0365bfbf 100644 --- a/app/views/dashboard/incidents/add.blade.php +++ b/app/views/dashboard/incidents/add.blade.php @@ -16,6 +16,7 @@ @include('partials.dashboard.errors') {{ Form::open(['name' => 'IncidentForm', 'class' => 'form-vertical', 'role' => 'form']) }}
+ @if($incidentTemplates->count() > 0)
+ @endif