Fix creating a system with the correct role, Fix need to have hold/active on creation
This commit is contained in:
@@ -21,38 +21,34 @@
|
||||
|
||||
<!-- Active -->
|
||||
<div class="col-2">
|
||||
@if($o->exists)
|
||||
@can('update',$o)
|
||||
<label for="active" class="form-label">Active</label>
|
||||
<div class="input-group">
|
||||
<div class="btn-group" role="group">
|
||||
<input type="radio" class="btn-check" name="active" id="active_yes" value="1" required @if(old('active',$o->active))checked @endif>
|
||||
<label class="btn btn-outline-success" for="active_yes">Yes</label>
|
||||
@can('update',$o)
|
||||
<label for="active" class="form-label">Active</label>
|
||||
<div class="input-group">
|
||||
<div class="btn-group" role="group">
|
||||
<input type="radio" class="btn-check" name="active" id="active_yes" value="1" required @if(old('active',$o->active))checked @endif>
|
||||
<label class="btn btn-outline-success" for="active_yes">Yes</label>
|
||||
|
||||
<input type="radio" class="btn-check btn-danger" name="active" id="active_no" value="0" required @if(! old('active',$o->active))checked @endif>
|
||||
<label class="btn btn-outline-danger" for="active_no">No</label>
|
||||
</div>
|
||||
<input type="radio" class="btn-check btn-danger" name="active" id="active_no" value="0" required @if(! old('active',$o->active))checked @endif>
|
||||
<label class="btn btn-outline-danger" for="active_no">No</label>
|
||||
</div>
|
||||
@endcan
|
||||
@endif
|
||||
</div>
|
||||
@endcan
|
||||
</div>
|
||||
|
||||
<!-- Hold -->
|
||||
<div class="col-2">
|
||||
@if($o->exists)
|
||||
@can('update',$o)
|
||||
<label for="hold" class="form-label">Hold Mail</label>
|
||||
<div class="input-group">
|
||||
<div class="btn-group" role="group">
|
||||
<input type="radio" class="btn-check" name="hold" id="hold_yes" value="1" required @if(old('hold',$o->hold))checked @endif>
|
||||
<label class="btn btn-outline-success" for="hold_yes">Yes</label>
|
||||
@can('update',$o)
|
||||
<label for="hold" class="form-label">Hold Mail</label>
|
||||
<div class="input-group">
|
||||
<div class="btn-group" role="group">
|
||||
<input type="radio" class="btn-check" name="hold" id="hold_yes" value="1" required @if(old('hold',$o->hold))checked @endif>
|
||||
<label class="btn btn-outline-success" for="hold_yes">Yes</label>
|
||||
|
||||
<input type="radio" class="btn-check btn-danger" name="hold" id="hold_no" value="0" required @if(! old('hold',$o->hold))checked @endif>
|
||||
<label class="btn btn-outline-danger" for="hold_no">No</label>
|
||||
</div>
|
||||
<input type="radio" class="btn-check btn-danger" name="hold" id="hold_no" value="0" required @if(! old('hold',$o->hold))checked @endif>
|
||||
<label class="btn btn-outline-danger" for="hold_no">No</label>
|
||||
</div>
|
||||
@endcan
|
||||
@endif
|
||||
</div>
|
||||
@endcan
|
||||
</div>
|
||||
|
||||
<!-- ZeroTier ID -->
|
||||
|
Reference in New Issue
Block a user