Added form control buttons

Also improved form styling
This commit is contained in:
Miguel Nogueira 2020-08-31 18:11:00 +01:00
parent 9431eb5036
commit 25ddf81118
1 changed files with 6 additions and 1 deletions

View File

@ -46,12 +46,17 @@
@foreach($options as $option) @foreach($options as $option)
<div class="form-group"> <div class="form-group">
<label for="{{$option->option_name}}">{{$option->friendly_name}}</label> <label for="{{$option->option_name}}">{{$option->friendly_name}}</label>
<input type="checkbox" name="{{$option->option_name}}" id="{{$option->option_name}}" class="form-control" checked> <input type="checkbox" name="{{$option->option_name}}" id="{{$option->option_name}}" class="form-check-input" {{ ($option->option_value == 1) ? 'checked' : '' }}>
</div> </div>
@endforeach @endforeach
</form> </form>
</div> </div>
<div class="card-footer">
<button type="button" class="btn btn-success" onclick="$('#settings').submit()"><i class="fa fa-save"></i> Save changes</button>
<button type="button" class="btn btn-warning" onclick="window.location.href='{{route('dashboard')}}'"><i class="fa fa-arrow-circle-o-left"></i> Back to Dashboard</button>
</div>
</div> </div>
</div> </div>