Hide the notify checkbox if subscribers isn't enabled
This commit is contained in:
@@ -107,12 +107,14 @@
|
|||||||
<label>{{ trans('forms.incidents.incident_time') }}</label> <small class="text-muted">{{ trans('forms.optional') }}</small>
|
<label>{{ trans('forms.incidents.incident_time') }}</label> <small class="text-muted">{{ trans('forms.optional') }}</small>
|
||||||
<input type="text" name="created_at" class="form-control" rel="datepicker-any">
|
<input type="text" name="created_at" class="form-control" rel="datepicker-any">
|
||||||
</div>
|
</div>
|
||||||
|
@if(subscribers_enabled())
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" name="notify" value="1" checked="{{ Input::old('incident.message', 'checked') }}">
|
<input type="checkbox" name="notify" value="1" checked="{{ Input::old('incident.message', 'checked') }}">
|
||||||
{{ trans('forms.incidents.notify_subscribers') }}
|
{{ trans('forms.incidents.notify_subscribers') }}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
@endif
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|||||||
@@ -43,12 +43,14 @@
|
|||||||
<label>{{ trans('forms.incidents.scheduled_at') }}</label>
|
<label>{{ trans('forms.incidents.scheduled_at') }}</label>
|
||||||
<input type="text" name="incident[scheduled_at]" class="form-control" rel="datepicker" required>
|
<input type="text" name="incident[scheduled_at]" class="form-control" rel="datepicker" required>
|
||||||
</div>
|
</div>
|
||||||
|
@if(subscribers_enabled())
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" name="incident[notify]" value="1" checked="{{ Input::old('incident.message', 'checked') }}">
|
<input type="checkbox" name="incident[notify]" value="1" checked="{{ Input::old('incident.message', 'checked') }}">
|
||||||
{{ trans('forms.incidents.notify_subscribers') }}
|
{{ trans('forms.incidents.notify_subscribers') }}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
@endif
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|||||||
Reference in New Issue
Block a user