You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.7 KiB
39 lines
1.7 KiB
<x-modal id="api-form-modal" :title="$this->title" size="modal-lg" wire:submit="save" wire:loading form livewire>
|
|
|
|
<div class="d-flex flex-column gap-3">
|
|
@foreach($this->endpoints as $key => $endpoint)
|
|
<x-card :subtitle="$endpoint['label']">
|
|
<div class="row">
|
|
<div class="col-sm-12 col-md-6">
|
|
<x-form.select
|
|
name="{{ $key }}"
|
|
wire:model="field.{{ $key }}.client_id"
|
|
:options="$this->clients->mapWithKeys(function ($item) {
|
|
return [$item->ulid => $item->name];
|
|
})"
|
|
:disabled="$mode == 'view'"
|
|
:label="__('domains/channel/field.client.name')"
|
|
/>
|
|
</div>
|
|
<div class="col-sm-12 col-md-6">
|
|
<x-form.input
|
|
name="{{ $key }}"
|
|
wire:model="field.{{ $key }}.value"
|
|
:disabled="$mode == 'view'"
|
|
label="URL"
|
|
/>
|
|
</div>
|
|
</div>
|
|
</x-card>
|
|
@endforeach
|
|
</div>
|
|
|
|
<x-slot:footer>
|
|
<x-button type="button" theme="secondary" :label="__('ui/button.cancel')" data-bs-dismiss="modal" />
|
|
@if($mode == 'view')
|
|
<x-button type="button" theme="info" :label="__('ui/button.update-mode')" wire:click="editMode" />
|
|
@else
|
|
<x-button type="submit" theme="primary" :label="__('ui/button.save')" />
|
|
@endif
|
|
</x-slot:footer>
|
|
</x-modal>
|
|
|