This commit also removes support for French and Spanish, and adds support for Brazillian Portuguese. Additionally, the accidental leave protection on the form builder has also been fixed.
161 lines
4.2 KiB
PHP
Executable File
161 lines
4.2 KiB
PHP
Executable File
@extends('adminlte::page')
|
|
|
|
@section('title', config('app.name') . ' | ' . __('Edit vacancies'))
|
|
|
|
@section('content_header')
|
|
|
|
<h4>{{__('Administration')}} / {{__('Vacancies')}} / {{__('Edit')}}</h4>
|
|
|
|
@stop
|
|
|
|
@section('js')
|
|
|
|
<x-global-errors>
|
|
|
|
</x-global-errors>
|
|
|
|
@stop
|
|
|
|
|
|
@section('content')
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col center">
|
|
|
|
<h3>{{__('Vacancy Editor')}}</h3>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col">
|
|
|
|
|
|
<div class="card">
|
|
|
|
|
|
<div class="card-header">
|
|
|
|
<h3 class="card-title"><i class="fas fa-clipboard"></i> {{ $vacancy->vacancyName }}</h3>
|
|
|
|
</div>
|
|
|
|
|
|
<div class="card-body">
|
|
|
|
<p class="text-muted"><i class="fas fa-question-circle"></i> {{__('For consistency purposes, grayed out fields can\'t be edited.')}}</p>
|
|
|
|
<form method="POST" id="editPositionForm" action="{{ route('updatePosition', ['vacancy' => $vacancy->id]) }}">
|
|
|
|
@csrf
|
|
@method('PATCH')
|
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
|
|
<label for="vacancyName">{{__('Vacancy name')}}</label>
|
|
<input type="text" value="{{ $vacancy->vacancyName }}" class="form-control" disabled />
|
|
|
|
</div>
|
|
|
|
<div class="col">
|
|
|
|
<label for="vacancyDescription">{{__('Vacancy description')}}</label>
|
|
<input type="vacancyDescription" class="form-control" name="vacancyDescription" value="{{ $vacancy->vacancyDescription }}" />
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
<!-- skipping the accessor for obvious reasons -->
|
|
<label for="vacanyDetails">{{__('Vacancy details')}}</label>
|
|
<textarea name="vacancyFullDescription" class="form-control" placeholder="{{ (is_null($vacancy->vacancyFullDescription)) ? __('No details yet... Add some!') : '' }}" rows="20">{{ $vacancy->getAttributes()['vacancyFullDescription'] }}</textarea>
|
|
<span class="text-muted"><i class="fab fa-markdown"></i> {{__('Markdown supported')}}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
<!-- DEPRECATED! -->
|
|
<label for="permissionGroupName">{{__('Permission group')}}</label>
|
|
<input type="text" class="form-control" value="{{ $vacancy->permissionGroupName }}" id="permissionGroupName" disabled />
|
|
|
|
</div>
|
|
|
|
<div class="col">
|
|
|
|
<label for="discordRoleID">{{__('Discord role ID')}}</label>
|
|
<input type="text" class="form-control" value="{{ $vacancy->discordRoleID }}" id="discordRoleID" disabled />
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
<label for="currentForm">{{__('Current from (uneditable)')}}</label>
|
|
<input type="text" class="form-control" value="{{ $vacancy->forms->formName }}" id="currentForm" disabled />
|
|
|
|
<label for="remainingSlots">{{__('Remaining slots')}}</label>
|
|
<input type="text" class="form-control" value="{{ $vacancy->vacancyCount }}" id="remainingSlots" name="vacancyCount" />
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="card-footer">
|
|
|
|
<button type="button" class="btn btn-warning" onclick="$('#editPositionForm').submit()"><i class="fas fa-edit"></i> {{__('Save changes')}}</button>
|
|
<button type="button" class="btn btn-danger" onclick="window.location.href='{{ route('showPositions') }}'"><i class="fas fa-times"></i> {{__('Go back')}}</button>
|
|
|
|
@if($vacancy->vacancyStatus == 'OPEN')
|
|
|
|
<form method="POST" action="{{ route('updatePositionAvailability', ['vacancy' => $vacancy->id, 'status' => 'close']) }}" style="display: inline">
|
|
@method('PATCH')
|
|
@csrf
|
|
<button type="submit" class="ml-4 btn btn-danger"><i class="fas fa-ban"></i> {{__('Close vacancy')}}</button>
|
|
</form>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
@stop
|
|
|
|
@section('footer')
|
|
@include('breadcrumbs.dashboard.footer')
|
|
@stop
|