Add stickied incident
This commit is contained in:
@@ -62,6 +62,13 @@
|
||||
<option value='0'>{{ trans('forms.incidents.logged_in_only') }}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="incident-name">{{ trans('forms.incidents.stick_status') }}</label>
|
||||
<select name='stickied' class="form-control">
|
||||
<option value='1'>{{ trans('forms.incidents.stickied') }}</option>
|
||||
<option value='0' selected>{{ trans('forms.incidents.not_stickied') }}</option>
|
||||
</select>
|
||||
</div>
|
||||
@if(!$components_in_groups->isEmpty() || !$components_out_groups->isEmpty())
|
||||
<div class="form-group">
|
||||
<label>{{ trans('forms.incidents.component') }}</label>
|
||||
|
||||
@@ -51,6 +51,13 @@
|
||||
<option value='0' {{ $incident->visible === 0 ? 'selected' : null }}>{{ trans('forms.incidents.logged_in_only') }}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="incident-stick">{{ trans('forms.incidents.stick_status') }}</label>
|
||||
<select name="stickied" id="incident-stick" class="form-control">
|
||||
<option value='1' {{ $incident->stickied === 1 ? 'selected' : null }}>{{ trans('forms.incidents.stickied') }}</option>
|
||||
<option value='0' {{ $incident->stickied === 0 ? 'selected' : null }}>{{ trans('forms.incidents.not_stickied') }}</option>
|
||||
</select>
|
||||
</div>
|
||||
@if($incident->component)
|
||||
<div class="form-group" id='component-status'>
|
||||
<div class="panel panel-default">
|
||||
|
||||
8
resources/views/partials/modules/stickied.blade.php
Normal file
8
resources/views/partials/modules/stickied.blade.php
Normal file
@@ -0,0 +1,8 @@
|
||||
@if(!$stickied_incidents->isEmpty())
|
||||
<div class="section-stickied">
|
||||
<h1>{{ trans('cachet.incidents.stickied') }}</h1>
|
||||
@foreach($stickied_incidents as $date => $incidents)
|
||||
@include('partials.incidents', [compact($date), compact($incidents)])
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
Reference in New Issue
Block a user