Updated input fields to be saveable.

Also the value is automatically changed to the database value now.
This commit is contained in:
purple 2023-02-26 14:41:16 +01:00
parent 700819af08
commit d83006cf31

View file

@ -42,37 +42,40 @@
</div> </div>
</div> </div>
<div class="col-xs-9"> <div class="col-xs-9">
<div class="box"> <form action="" method="POST">
<div class="box-header with-border"> <div class="box">
<h3 class="box-title"><i class='bx bxs-cog' style='margin-right:5px;'></i>Configuration</h3> <div class="box-header with-border">
</div> <h3 class="box-title"><i class='bx bxs-cog' style='margin-right:5px;'></i>Configuration</h3>
<div class="box-body"> </div>
<div class="row"> <div class="box-body">
<div class="col-xs-4"> <div class="row">
<label class="control-label">placeholder</label> <div class="col-xs-4">
<input type="text" id="placeholder" value="placeholder" class="form-control" @if(!$bp->licenseIsValid())readonly @endif/> <label class="control-label">placeholder</label>
<p class="text-muted small">placeholder</p> <input type="text" required name="placeholder:1" id="placeholder" value="{{ $bp->dbGet('placeholder:1') }}" class="form-control" @if(!$bp->licenseIsValid())readonly @endif/>
</div> <p class="text-muted small">placeholder</p>
<div class="col-xs-4"> </div>
<label class="control-label">placeholder</label> <div class="col-xs-4">
<input type="text" id="placeholder" value="placeholder" class="form-control" @if(!$bp->licenseIsValid())readonly @endif/> <label class="control-label">placeholder</label>
<p class="text-muted small">placeholder</p> <input type="text" required name="placeholder:2" id="placeholder" value="{{ $bp->dbGet('placeholder:2') }}" class="form-control" @if(!$bp->licenseIsValid())readonly @endif/>
</div> <p class="text-muted small">placeholder</p>
<div class="col-xs-4"> </div>
<label class="control-label">placeholder</label> <div class="col-xs-4">
<input type="text" id="placeholder" value="placeholder" class="form-control" @if(!$bp->licenseIsValid())readonly @endif/> <label class="control-label">placeholder</label>
<p class="text-muted small">placeholder</p> <input type="text" required name="placeholder:3" id="placeholder" value="{{ $bp->dbGet('placeholder:3') }}" class="form-control" @if(!$bp->licenseIsValid())readonly @endif/>
<p class="text-muted small">placeholder</p>
</div>
</div> </div>
</div> </div>
<div class="box-footer">
@if ($license)
{{ csrf_field() }}
<button type="submit" name="_method" value="PATCH" class="btn btn-gray-alt btn-sm pull-right">Save</button>
@else
<p class="text-muted small">You are required to have a valid license key attached to be able to change any settings.</p>
@endif
</div>
</div> </div>
<div class="box-footer"> </form>
@if ($license)
<a href=""><button class="btn btn-gray-alt btn-sm pull-right">Save</button></a>
@else
<p class="text-muted small">You are required to have a valid license key attached to be able to change any settings.</p>
@endif
</div>
</div>
</div> </div>
</div> </div>
<div class="modal fade" id="licenseMoreInfo" tabindex="-1" role="dialog"> <div class="modal fade" id="licenseMoreInfo" tabindex="-1" role="dialog">