Hide the notify checkbox if subscribers isn't enabled

This commit is contained in:
James Brooks
2015-11-21 14:35:35 +00:00
parent 1bd54696c9
commit 8ecefc65fb
2 changed files with 4 additions and 0 deletions

View File

@@ -107,12 +107,14 @@
<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">
</div>
@if(subscribers_enabled())
<div class="checkbox">
<label>
<input type="checkbox" name="notify" value="1" checked="{{ Input::old('incident.message', 'checked') }}">
{{ trans('forms.incidents.notify_subscribers') }}
</label>
</div>
@endif
</fieldset>
<div class="form-group">

View File

@@ -43,12 +43,14 @@
<label>{{ trans('forms.incidents.scheduled_at') }}</label>
<input type="text" name="incident[scheduled_at]" class="form-control" rel="datepicker" required>
</div>
@if(subscribers_enabled())
<div class="checkbox">
<label>
<input type="checkbox" name="incident[notify]" value="1" checked="{{ Input::old('incident.message', 'checked') }}">
{{ trans('forms.incidents.notify_subscribers') }}
</label>
</div>
@endif
</fieldset>
<div class="form-group">