Some presentation fixes: ordered domain names, select2 for zone systems

This commit is contained in:
Deon George
2021-08-15 16:13:51 +10:00
parent ae96ff9a24
commit 655c0db94d
3 changed files with 17 additions and 4 deletions

View File

@@ -20,7 +20,7 @@
<span class="input-group-text"><i class="bi bi-tag-fill"></i></span>
<select class="form-select @error('domain_id') is-invalid @enderror" id="domain" name="domain_id" required @cannot('admin',$o)disabled @endcannot>
<option value="">&nbsp;</option>
@foreach (\App\Models\Domain::active()->cursor() as $oo)
@foreach (\App\Models\Domain::active()->orderBy('name')->cursor() as $oo)
<option value="{{ $oo->id }}" @if(old('domain_id',$o->domain_id)==$oo->id)selected @endif>{{ $oo->name }}</option>
@endforeach
</select>