Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 4 additions & 44 deletions resources/views/employees/fields.blade.php
Original file line number Diff line number Diff line change
@@ -1,54 +1,14 @@
<!-- Nama Field -->
<div class="form-group col-sm-6">
{!! Html::label('Nama:', 'name') !!}
{!! Html::text('name', old('name', $employee->name ?? ''))->class('form-control')->attribute('required')->attribute('maxlength', 50) !!}
</div>

@push('page_scripts')
<script type="text/javascript">
$('#name').focus()
</script>
@endpush

<!-- Identity Number Field -->
<div class="form-group col-sm-6">
{!! Html::label('NIP:', 'identity_number') !!}
{!! Html::text('identity_number', old('identity_number', $employee->identity_number ?? ''))->class('form-control')->attribute('maxlength', 20) !!}
</div>

<!-- Email Field -->
<div class="form-group col-sm-6">
{!! Html::label('Email:', 'email') !!}
{!! Html::email('email', old('email', $employee->email ?? ''))->class('form-control')->attribute('maxlength', 255) !!}
</div>

<!-- Description Field -->
<div class="form-group col-sm-6">
{!! Html::label('Deskripsi:', 'description') !!}
{!! Html::text('description', old('description', $employee->description ?? ''))->class('form-control')->attribute('maxlength', 255) !!}
</div>

<!-- Phone Field -->
<div class="form-group col-sm-6">
{!! Html::label('Telepon:', 'phone') !!}
{!! Html::text('phone', old('phone', $employee->phone ?? ''))->class('form-control')->attribute('maxlength', 20) !!}
</div>

<!-- Position Id Field -->
<div class="form-group col-sm-6">
{!! Html::label('Jabatan:', 'position_id') !!}
{!! Html::select('position_id', $positions)->class('form-control select2') !!}
</div>

<!-- Department Id Field -->
<div class="form-group col-sm-6">
{!! Html::label('Departemen:', 'department_id') !!}
{!! Html::select('department_id', $departments, old('department_id', $employee->department_id ?? ''))->class(
'form-control select2',
) !!}
<!-- Nama Field -->
<div class="form-group">
{!! Html::label('Nama:', 'name') !!}
{!! Html::text('name', old('name', $employee->name ?? ''))->class('form-control')->attribute('required')->attribute('maxlength', 50) !!}
</div>


<!-- Identity Number Field -->
<div class="form-group">
{!! Html::label('NIP:', 'identity_number') !!}
Expand Down
Loading