Highlight packet configuration is not mailer configuration in system/addedit

This commit is contained in:
Deon George 2025-02-07 13:47:36 +11:00
parent b1eaec3271
commit db34b2b641

View File

@ -144,12 +144,12 @@
<div class="row pt-4"> <div class="row pt-4">
<!-- Mailer Details --> <!-- Mailer Details -->
<div class="col-12"> <div class="col-3">
<h4 class="mb-0 pb-2">Mailer Details</h4> <h4 class="mb-0 pb-2">Mailer Details</h4>
<!-- Mailer Ports --> <!-- Mailer Ports -->
<div class="row pt-0"> <div class="row pt-0">
<div class="col-3"> <div class="col-12">
@foreach (Mailer::all() as $mo) @foreach (Mailer::all() as $mo)
@php($x=$o->mailers->find($mo)) @php($x=$o->mailers->find($mo))
<div class="row pt-0"> <div class="row pt-0">
@ -171,14 +171,19 @@
</div> </div>
@endforeach @endforeach
</div> </div>
</div>
</div>
<div class="offset-1 col-8">
<h4 class="mb-0 pb-2">Packet Details</h4>
<div class="row pt-0">
<!-- Mail Packet --> <!-- Mail Packet -->
<div class="col-4"> <div class="col-6">
<x-form.select name="pkt_type" icon="bi-ui-radios" label="Mail Packet" feedback="Set a packet type" :value="$o->pkt_type ?: config('fido.packet_default')" :options="collect(Packet::PACKET_TYPES)->map(fn($item,$key)=>['id'=>$key,'value'=>$key])" required :disabled="Gate::denies('update_nn',$o)"/> <x-form.select name="pkt_type" icon="bi-ui-radios" label="Mail Packet" feedback="Set a packet type" :value="$o->pkt_type ?: config('fido.packet_default')" :options="collect(Packet::PACKET_TYPES)->map(fn($item,$key)=>['id'=>$key,'value'=>$key])" required :disabled="Gate::denies('update_nn',$o)"/>
</div> </div>
<!-- Packet Msgs --> <!-- Packet Msgs -->
<div class="col-2"> <div class="col-3">
<label for="pkt_msgs" class="form-label w-100">Packet Msgs</label> <label for="pkt_msgs" class="form-label w-100">Packet Msgs</label>
<div class="input-group has-validation"> <div class="input-group has-validation">
<span class="input-group-text"><i class="bi bi-hash"></i></span> <span class="input-group-text"><i class="bi bi-hash"></i></span>