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.
48 lines
1.6 KiB
48 lines
1.6 KiB
<x-modal id="studyprogram-form-modal" :title="$this->title" wire:submit="save" wire:loading form livewire>
|
|
<div class="d-flex flex-column gap-3">
|
|
<x-form.input
|
|
name="form.name"
|
|
wire:model="form.name"
|
|
:disabled="$mode == 'update'"
|
|
:label="__('domains/academic/field.study_program.name')"
|
|
/>
|
|
|
|
<x-form.input
|
|
name="form.code"
|
|
wire:model="form.code"
|
|
:disabled="$mode == 'update'"
|
|
:label="__('domains/academic/field.study_program.code')"
|
|
/>
|
|
|
|
<x-form.input name="form.level" wire:model="form.level" label="Level" />
|
|
|
|
<x-form.select
|
|
name="form.status"
|
|
wire:model="form.status"
|
|
:label="__('domains/academic/field.study_program.status')"
|
|
:options="App\Domains\System\Enums\LifecycleStatus::options()"
|
|
/>
|
|
|
|
<x-form.select
|
|
name="form.faculty_id"
|
|
wire:model="form.faculty_id"
|
|
:disabled="$mode == 'update'"
|
|
:label="__('domains/academic/field.faculty.name')"
|
|
:options="$this->faculties->pluck('name', 'id')"
|
|
placeholder="Select Faculty"
|
|
/>
|
|
|
|
<x-form.input
|
|
type="number"
|
|
name="form.external_id"
|
|
:disabled="$mode == 'update'"
|
|
wire:model="form.external_id"
|
|
label="External ID"
|
|
/>
|
|
</div>
|
|
|
|
<x-slot:footer>
|
|
<x-button type="button" theme="secondary" :label="__('ui/button.cancel')" data-bs-dismiss="modal" />
|
|
<x-button type="submit" theme="primary" :label="__('ui/button.save')" />
|
|
</x-slot:footer>
|
|
</x-modal>
|
|
|