Change all notes inputs to use notes component
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<!-- $o=Domain::class -->
|
||||
@use(Illuminate\Support\Facades\Gate)
|
||||
@use(App\Models\Echoarea)
|
||||
|
||||
@extends('layouts.app')
|
||||
@@ -149,8 +150,7 @@
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<label for="notes" class="form-label">Notes</label>
|
||||
<textarea class="form-control" rows=3 id="notes" name="notes" placeholder="Notes..." @cannot('admin',$o)disabled @endcannot>{{ old('notes',$o->notes) }}</textarea>
|
||||
<x-form.notes name="notes" label="Notes" rows=3 placeholder="Notes..." :value="$o->notes" :disabled="Gate::denies('admin',$o)"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -163,11 +163,8 @@
|
||||
<h2 class="cap">Home Page</h2>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<label for="homepage" class="form-label">Home Page Text</label>
|
||||
<div style="background-color: #fff;color: #000;">
|
||||
<textarea class="form-control" rows=5 id="homepage" name="homepage" placeholder="Home Page..." @cannot('admin',$o)disabled @endcannot>{{ old('homepage',$o->homepage) }}</textarea>
|
||||
</div>
|
||||
<div class="col-12" >
|
||||
<x-form.notes name="homepage" label="Home Page Text" rows=5 placeholder="Home Page..." :value="$o->homepage" :disabled="Gate::denies('admin',$o)" :simplemde="true"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -183,12 +180,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@endsection
|
||||
|
||||
@pa(simplemde)
|
||||
|
||||
@section('page-scripts')
|
||||
<script type="text/javascript">
|
||||
var simplemde = new SimpleMDE({ element: $("#homepage")[0] });
|
||||
</script>
|
||||
@append
|
||||
@endsection
|
Reference in New Issue
Block a user