forked from miguel456/rbrecruiter
Add administration localization options
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
@extends('adminlte::page')
|
||||
|
||||
@section('title', 'Raspberry Network | Developer Options')
|
||||
@section('title', config('app.name') . ' | ' . __('messages.devoptions'))
|
||||
|
||||
@section('content_header')
|
||||
|
||||
<h4>Administration / Developer Tools</h4>
|
||||
<h4>{{__('messages.adm')}} / {{__('messages.devtools')}}</h4>
|
||||
|
||||
@stop
|
||||
|
||||
@@ -14,27 +14,27 @@
|
||||
|
||||
@section('content')
|
||||
|
||||
<x-modal id="confirmForceEventDispatch" modal-label="confirmForceEventDispatch" modal-title="Choose an application" include-close-button="true">
|
||||
<x-modal id="confirmForceEventDispatch" modal-label="confirmForceEventDispatch" modal-title="{{__('messages.choose_app')}}" include-close-button="true">
|
||||
|
||||
<p>Please choose an application to force re-evaluation</p>
|
||||
<p>{{__('messages.forceeval')}}</p>
|
||||
<form method="POST" id="forceEval" action="{{route('devToolsForceVoteCount')}}">
|
||||
@csrf
|
||||
<select name="application" class="custom-select">
|
||||
@if(!$applications->isEmpty())
|
||||
@foreach($applications as $application)
|
||||
|
||||
<option value="{{$application->id}}">Application ID {{$application->id}} ({{$application->user->name}})</option>
|
||||
<option value="{{$application->id}}">{{__('messages.appid')}} {{$application->id}} ({{$application->user->name}})</option>
|
||||
|
||||
@endforeach
|
||||
@else
|
||||
<option value="null" disabled>There are no valid applications</option>
|
||||
<option value="null" disabled>{{__('messages.no_valid_app')}}</option>
|
||||
@endif
|
||||
</select>
|
||||
|
||||
</form>
|
||||
|
||||
<x-slot name="modalFooter">
|
||||
<button type="button" class="btn btn-danger" onclick="document.getElementById('forceEval').submit()">Dispatch event now</button>
|
||||
<button type="button" class="btn btn-danger" onclick="document.getElementById('forceEval').submit()">{{__('messages.dispatch_event')}}</button>
|
||||
</x-slot>
|
||||
|
||||
</x-modal>
|
||||
@@ -44,8 +44,8 @@
|
||||
|
||||
<div class="alert alert-warning">
|
||||
|
||||
<i class="fa fa-exclamation-triangle"></i> <b>Warning</b>
|
||||
<p>Do not use these options if you don't know what you're doing, even if you have access to this page.</p>
|
||||
<i class="fa fa-exclamation-triangle"></i> <b>{{__('messages.warn')}}</b>
|
||||
<p>{{__('messages.devtools_warn')}}</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -60,11 +60,11 @@
|
||||
<x-slot name="cardHeader">
|
||||
|
||||
</x-slot>
|
||||
<button type="button" class="btn btn-danger" onclick="$('#confirmForceEventDispatch').modal('show')">Override Vote Evaluation</button>
|
||||
<button type="button" class="btn btn-warning ml-3">Artisan: Evaluate Votes Now</button>
|
||||
<button type="button" class="btn btn-danger" onclick="$('#confirmForceEventDispatch').modal('show')">{{__('messages.override_votes')}}</button>
|
||||
<button type="button" class="btn btn-warning ml-3">{{__('messages.artisan_evaluate')}}</button>
|
||||
|
||||
<x-slot name="cardFooter">
|
||||
<p class="text-muted"> This panel may be also used to completely override the vote system in stalemate scenarios.</p>
|
||||
<p class="text-muted"> .</p>
|
||||
</x-slot>
|
||||
</x-card>
|
||||
|
||||
|
@@ -4,7 +4,7 @@
|
||||
|
||||
@section('content_header')
|
||||
|
||||
<h4>Administration / Forms / Editor</h4>
|
||||
<h4>{{__('messages.adm')}} / {{__('messages.forms')}} / {{__('messages.edt')}}</h4>
|
||||
|
||||
@stop
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
|
||||
<div class="card-header">
|
||||
|
||||
<h4>Editing {{ $title }}...</h4>
|
||||
<h4>{{__('messages.edt_action')}} {{ $title }}...</h4>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -61,10 +61,10 @@
|
||||
|
||||
<select class="custom-select" id="{{ $fieldName }}-type" name="{{ $fieldName }}[]">
|
||||
|
||||
<option value="nil" disabled>Choose a type</option>
|
||||
<option value="textbox" {{ ($field['type'] == 'textbox' ? 'selected' : '') }}>Textbox</option>
|
||||
<option value="textarea" {{ ($field['type'] == 'textarea' ? 'selected' : '') }}>Multi line answer</option>
|
||||
<option value="checkbox" {{ ($field['type'] == 'checkbox' ? 'selected' : '') }}>Checkbox</option>
|
||||
<option value="nil" disabled>{{__('messages.field_type')}}</option>
|
||||
<option value="textbox" {{ ($field['type'] == 'textbox' ? 'selected' : '') }}>{{__('messages.txtbox')}}</option>
|
||||
<option value="textarea" {{ ($field['type'] == 'textarea' ? 'selected' : '') }}>{{__('messages.multiline')}}</option>
|
||||
<option value="checkbox" {{ ($field['type'] == 'checkbox' ? 'selected' : '') }}>{{__('messages.checkbox')}}</option>
|
||||
|
||||
</select>
|
||||
|
||||
@@ -82,8 +82,8 @@
|
||||
|
||||
<div class="card-footer text-center">
|
||||
|
||||
<button type="button" class="btn btn-warning ml-2" onclick="$('#editForm').submit()"><i class="fas fa-save"></i> Save & Quit</button>
|
||||
<button type="button" class="btn btn-primary ml-2" id="add"><i class="fas fa-plus"></i> New field</button>
|
||||
<button type="button" class="btn btn-warning ml-2" onclick="$('#editForm').submit()"><i class="fas fa-save"></i> {{__('messages.save_exit')}}</button>
|
||||
<button type="button" class="btn btn-primary ml-2" id="add"><i class="fas fa-plus"></i> {{__('messages.new_field')}}</button>
|
||||
|
||||
</div>
|
||||
|
||||
|
@@ -4,7 +4,7 @@
|
||||
|
||||
@section('content_header')
|
||||
|
||||
<h4>Administration / Positions / Edit</h4>
|
||||
<h4>{{__('messages.adm')}} / {{__('messages.positions')}} / {{__('messages.edit')}}</h4>
|
||||
|
||||
@stop
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
<div class="col center">
|
||||
|
||||
<h3>Vacancy Editor</h3>
|
||||
<h3>{{__('messages.vacancy_edit')}}</h3>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
|
||||
<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>
|
||||
<p class="text-muted"><i class="fas fa-question-circle"></i> {{__('messages.form_consistency')}}</p>
|
||||
|
||||
<form method="POST" id="editPositionForm" action="{{ route('updatePosition', ['position' => $vacancy->id]) }}">
|
||||
|
||||
@@ -61,14 +61,14 @@
|
||||
<div class="col">
|
||||
|
||||
|
||||
<label for="vacancyName">Vacancy Name</label>
|
||||
<label for="vacancyName">{{__('messages.vacancy.name')}}</label>
|
||||
<input type="text" value="{{ $vacancy->vacancyName }}" class="form-control" disabled />
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col">
|
||||
|
||||
<label for="vacancyDescription">Vacancy description</label>
|
||||
<label for="vacancyDescription">{{__('messages.vacancy.description')}}</label>
|
||||
<input type="vacancyDescription" class="form-control" name="vacancyDescription" value="{{ $vacancy->vacancyDescription }}" />
|
||||
|
||||
|
||||
@@ -81,9 +81,9 @@
|
||||
<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>
|
||||
<label for="vacanyDetails">{{__('messages.vacancy.details')}}</label>
|
||||
<textarea name="vacancyFullDescription" class="form-control" placeholder="{{ (is_null($vacancy->vacancyFullDescription)) ? __('messages.vacancy.no_details') : '' }}" rows="20">{{ $vacancy->getAttributes()['vacancyFullDescription'] }}</textarea>
|
||||
<span class="text-muted"><i class="fab fa-markdown"></i> {{__('messages.vacancy.markdown')}}</span>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -93,14 +93,14 @@
|
||||
|
||||
<div class="col">
|
||||
|
||||
<label for "permissionGroupName">Permission Group</label>
|
||||
<label for="permissionGroupName">{{__('messages.vacancy.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>
|
||||
<label for="discordRoleID">{{__('messages.vacancy.discord_roleid')}}</label>
|
||||
<input type="text" class="form-control" value="{{ $vacancy->discordRoleID }}" id="discordRoleID" disabled />
|
||||
|
||||
|
||||
@@ -111,10 +111,10 @@
|
||||
|
||||
<div class="col">
|
||||
|
||||
<label for "currentForm">Current Form (uneditable)</label>
|
||||
<label for="currentForm">{{__('messages.vacancy.current_form')}}</label>
|
||||
<input type="text" class="form-control" value="{{ $vacancy->forms->formName }}" id="currentForm" disabled />
|
||||
|
||||
<label for "remainingSlots">Remaining slots</label>
|
||||
<label for="remainingSlots">{{__('messages.vacancy.remaining_slots')}}</label>
|
||||
<input type="text" class="form-control" value="{{ $vacancy->vacancyCount }}" id="remainingSlots" name="vacancyCount" />
|
||||
|
||||
|
||||
@@ -128,15 +128,15 @@
|
||||
|
||||
<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> Cancel</button>
|
||||
<button type="button" class="btn btn-warning" onclick="$('#editPositionForm').submit()"><i class="fas fa-edit"></i> {{__('messages.vacancy.save')}}</button>
|
||||
<button type="button" class="btn btn-danger" onclick="window.location.href='{{ route('showPositions') }}'"><i class="fas fa-times"></i> {{__('messages.vacancy.cancel')}}</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 Position</button>
|
||||
<button type="submit" class="ml-4 btn btn-danger"><i class="fas fa-ban"></i> {{__('messages.vacancy.close_vacancy')}}</button>
|
||||
</form>
|
||||
|
||||
@endif
|
||||
|
@@ -1,10 +1,10 @@
|
||||
@extends('adminlte::page')
|
||||
|
||||
@section('title', 'Raspberry Network | Application Form Management Tool')
|
||||
@section('title', config('app.name') . '| ' . __('messages.form_builder.builder_name'))
|
||||
|
||||
@section('content_header')
|
||||
|
||||
<h4>Administration / Form Builder</h4>
|
||||
<h4>{{__('messages.adm')}} / {{__('messages.form_builder.builder')}}</h4>
|
||||
|
||||
@stop
|
||||
|
||||
@@ -45,9 +45,9 @@
|
||||
@csrf
|
||||
|
||||
<fieldset id="buildyourform">
|
||||
<legend class="text-center">Form Builder</legend>
|
||||
<legend class="text-center">{{__('messages.form_builder.builder')}}</legend>
|
||||
|
||||
<input type="text" name="formName" class="form-control mb-5" placeholder="Name your form..." required>
|
||||
<input type="text" name="formName" class="form-control mb-5" placeholder="{{__('messages.form_builder.name_form')}}" required>
|
||||
|
||||
</fieldset>
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
|
||||
<div class="card-footer text-center">
|
||||
|
||||
<button onclick="save()" type="button" class="btn btn-success">Save Form</button>
|
||||
<button onclick="save()" type="button" class="btn btn-success">{{__('messages.form_builder.save_form')}}</button>
|
||||
<input type="button" value="New Field" class="add btn btn-info ml-3" id="add" />
|
||||
|
||||
|
||||
|
@@ -1,10 +1,10 @@
|
||||
@extends('adminlte::page')
|
||||
|
||||
@section('title', 'Raspberry Network | Application Form Preview')
|
||||
@section('title', config('app.name') . ' | ' . __('messages.form_preview.title'))
|
||||
|
||||
@section('content_header')
|
||||
|
||||
<h4>Administration / Form Builder / Preview</h4>
|
||||
<h4>{{__('messages.adm')}} / {{__('messages.form_builder.builder')}} / {{__('messages.form_preview.preview')}}</h4>
|
||||
|
||||
@stop
|
||||
|
||||
@@ -33,10 +33,10 @@
|
||||
<div class="col">
|
||||
<div class="alert alert-success">
|
||||
|
||||
<h5><i class="fas fa-eye"></i> This is how your form looks like to applicants</h3>
|
||||
<h5><i class="fas fa-eye"></i> {{__('messages.form_preview.looks')}}</h5>
|
||||
|
||||
<p>
|
||||
You may edit it and add more fields later.
|
||||
{{__('messages.form_preview.f_info')}}
|
||||
</p>
|
||||
|
||||
</div>
|
||||
@@ -52,7 +52,7 @@
|
||||
|
||||
<div class="card-header">
|
||||
|
||||
<h3>{{ $title }}'s form</h2>
|
||||
<h3>{{ $title }} - {{__('messages.form')}}</h2>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -66,8 +66,8 @@
|
||||
|
||||
<div class="card-footer text-center">
|
||||
|
||||
<button type="button" class="btn btn-success ml-2" onclick="window.location.href='{{ route('showForms') }}'"><i class="fas fa-chevron-left"></i> Go back</button>
|
||||
<button type="button" class="btn btn-warning ml-2" onclick="window.location.href='{{ route('editForm', ['form' => $formID]) }}'"><i class="far fa-edit"></i> Edit</button>
|
||||
<button type="button" class="btn btn-success ml-2" onclick="window.location.href='{{ route('showForms') }}'"><i class="fas fa-chevron-left"></i> {{__('messages.back')}}</button>
|
||||
<button type="button" class="btn btn-warning ml-2" onclick="window.location.href='{{ route('editForm', ['form' => $formID]) }}'"><i class="far fa-edit"></i> {{__('messages.edit')}}</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
@@ -1,10 +1,10 @@
|
||||
@extends('adminlte::page')
|
||||
|
||||
@section('title', 'Raspberry Network | Application Form Management Tool')
|
||||
@section('title', config('app.name') . ' | ' . __('messages.forms_p.available_forms'))
|
||||
|
||||
@section('content_header')
|
||||
|
||||
<h4>Administration / Forms</h4>
|
||||
<h4>{{__('messages.adm')}} / {{__('messages.forms')}}</h4>
|
||||
|
||||
@stop
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
<div class="card bg-gray-dark">
|
||||
|
||||
<div class="card-header bg-indigo">
|
||||
<div class="card-title"><h4 class="text-bold">Available Forms</h4></div>
|
||||
<div class="card-title"><h4 class="text-bold">{{__('messages.forms_p.available_forms')}}</h4></div>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
@@ -36,10 +36,10 @@
|
||||
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>Form Title</th>
|
||||
<th>Created On</th>
|
||||
<th>Updated On</th>
|
||||
<th>Actions</th>
|
||||
<th>{{__('messages.forms_p.form_title')}}</th>
|
||||
<th>{{__('messages.reusable.created_at')}}</th>
|
||||
<th>{{__('messages.reusable.updated_at')}}</th>
|
||||
<th>{{__('messages.reusable.actions')}}</th>
|
||||
</tr>
|
||||
|
||||
</thead>
|
||||
@@ -59,9 +59,9 @@
|
||||
@method('DELETE')
|
||||
@csrf
|
||||
|
||||
<button type="submit" class="btn btn-sm btn-danger mr-2"><i class="fa fa-trash"></i> Delete</button>
|
||||
<button type="submit" class="btn btn-sm btn-danger mr-2"><i class="fa fa-trash"></i> {{__('messages.reusable.delete')}}</button>
|
||||
</form>
|
||||
<button type="button" class="btn btn-sm btn-success" onclick="window.location.href='{{ route('previewForm', ['form' => $form->id]) }}'"><i class="fa fa-eye"></i> Preview</button>
|
||||
<button type="button" class="btn btn-sm btn-success" onclick="window.location.href='{{ route('previewForm', ['form' => $form->id]) }}'"><i class="fa fa-eye"></i> {{__('messages.form_preview.preview')}}</button>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -75,7 +75,7 @@
|
||||
|
||||
<div class="alert alert-warning">
|
||||
|
||||
Nothing to see here! Please add some forms first.
|
||||
{{__('messages.forms_p.empty_noforms')}}
|
||||
|
||||
</div>
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
|
||||
<div class="card-footer">
|
||||
|
||||
<button type="button" class="btn btn-outline-primary" onclick="window.location.href='{{route('showFormBuilder')}}'">NEW FORM</button>
|
||||
<button type="button" class="btn btn-outline-primary" onclick="window.location.href='{{route('showFormBuilder')}}'">{{__('messages.forms_p.new_form')}}</button>
|
||||
|
||||
</div>
|
||||
|
||||
|
@@ -1,10 +1,10 @@
|
||||
@extends('adminlte::page')
|
||||
|
||||
@section('title', 'Raspberry Network | Registered Players')
|
||||
@section('title', config('app.name') . ' | ' . __('messages.players.reg_players'))
|
||||
|
||||
@section('content_header')
|
||||
|
||||
<h4>Administration / Registered Players</h4>
|
||||
<h4>{{__('messages.adm')}} / {{__('messages.players.reg_players')}}</h4>
|
||||
|
||||
@stop
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
<div class="inner">
|
||||
<h3>{{$users->count()}}</h3>
|
||||
|
||||
<p>Registered Players</p>
|
||||
<p>{{__('messages.players.reg_players')}}</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="fa fa-users"></i>
|
||||
@@ -37,7 +37,7 @@
|
||||
<div class="inner">
|
||||
<h3>{{$bannedUserCount}}</h3>
|
||||
|
||||
<p>Total Banned Players</p>
|
||||
<p>{{__('messages.players.total_banned')}}</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="fa fa-ban"></i>
|
||||
@@ -55,7 +55,7 @@ I
|
||||
<div class="card">
|
||||
|
||||
<div class="card-header">
|
||||
<div class="card-title"><h4><i class="fas fa-search"></i>Search Players</h4></div>
|
||||
<div class="card-title"><h4><i class="fas fa-search"></i>{{__('messages.players.search')}}</h4></div>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
@@ -63,7 +63,7 @@ I
|
||||
<form name="search" method="POST" action="{{route('searchRegisteredPLayerList')}}">
|
||||
@csrf
|
||||
<div class="input-group">
|
||||
<input type="text" name="searchTerm" class="form-control" placeholder="Full/partial email search">
|
||||
<input type="text" name="searchTerm" class="form-control" placeholder="{{__('messages.players.f_p_search')}}">
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default" type="submit">
|
||||
<i class="fa fa-search"></i>
|
||||
@@ -87,7 +87,7 @@ I
|
||||
<div class="col">
|
||||
|
||||
<div class="alert alert-warning">
|
||||
<p>Please note: This list only includes players registered in the team management portal. In a future release, all network players will be shown here.</p>
|
||||
<p>{{__('messages.players.p_disclaimer')}}</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -103,7 +103,7 @@ I
|
||||
|
||||
<div class="card-header bg-indigo">
|
||||
|
||||
<div class="card-title"><h4 class="text-bold">Player Listing</h4></div>
|
||||
<div class="card-title"><h4 class="text-bold">{{__('messages.players.listing')}}</h4></div>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -114,12 +114,12 @@ I
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>IGN</th>
|
||||
<th>{{__('messages.players.ign')}}</th>
|
||||
<th>UUID</th>
|
||||
<th>Email</th>
|
||||
<th>Status</th>
|
||||
<th>Registration Date</th>
|
||||
<th>Actions</th>
|
||||
<th>{{__('messages.contactlabel_email')}}</th>
|
||||
<th>{{__('messages.reusable.status')}}</th>
|
||||
<th>{{__('messages.players.reg_date')}}</th>
|
||||
<th>{{__('messages.reusable.actions')}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@@ -134,9 +134,9 @@ I
|
||||
<td>{{ $user->email }}</td>
|
||||
<td>
|
||||
@if ($user->isBanned())
|
||||
<span class="badge badge-danger"><i class="fa fa-ban"></i> Banned</span>
|
||||
<span class="badge badge-danger"><i class="fa fa-ban"></i> {{__('messages.players.banned')}}</span>
|
||||
@else
|
||||
<span class="badge badge-success">Active</span>
|
||||
<span class="badge badge-success">{{__('messages.players.active')}}</span>
|
||||
@endif
|
||||
</td>
|
||||
<td>{{$user->created_at}}</td>
|
||||
@@ -153,10 +153,9 @@ I
|
||||
@else
|
||||
<div class="alert alert-secondary">
|
||||
|
||||
<i class="fas fa-question"></i><span> There are no registered players!</span>
|
||||
<i class="fas fa-question"></i><span> {{__('messages.players.no_reg')}}</span>
|
||||
<p>
|
||||
Registered players are those without a staff role in the team management application.
|
||||
There may be other users registered in the platform, but they won't be displayed here.
|
||||
{{__('messages.players.no_reg_exp')}}
|
||||
</p>
|
||||
|
||||
</div>
|
||||
@@ -165,7 +164,7 @@ I
|
||||
|
||||
<div class="card-footer">
|
||||
|
||||
<button type="button" class="btn btn-outline-primary" onclick="window.location.href='{{route("staffMemberList")}}'">See Staff Members</button>
|
||||
<button type="button" class="btn btn-outline-primary" onclick="window.location.href='{{route("staffMemberList")}}'">{{__('messages.players.see_staff')}}</button>
|
||||
|
||||
</div>
|
||||
|
||||
|
@@ -1,13 +1,13 @@
|
||||
@extends('adminlte::page')
|
||||
|
||||
@section('title', 'Raspberry Network | Open Positions')
|
||||
@section('title', config('app.name') . ' | ' . __('messages.open_positions'))
|
||||
|
||||
@section('content_header')
|
||||
|
||||
@if (Auth::user()->hasAnyRole('admin', 'hiringManager'))
|
||||
<h4>Administration / Open Positions</h4>
|
||||
<h4>{{__('messages.adm')}} / {{__('messages.open_positions')}}</h4>
|
||||
@else
|
||||
<h4>Application Access Denied</h4>
|
||||
<h4>{{__('messages.reusable.no_access')}}</h4>
|
||||
@endif
|
||||
|
||||
@stop
|
||||
@@ -29,7 +29,7 @@
|
||||
@if($errors->any())
|
||||
|
||||
@foreach ($errors->all() as $error)
|
||||
<script>toastr.error('{{$error}}', 'Validation error!')</script>
|
||||
<script>toastr.error('{{$error}}', '{{__('messages.reusable.validation_err')}}')</script>
|
||||
@endforeach
|
||||
|
||||
@endif
|
||||
@@ -43,7 +43,7 @@
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="modalFormLabel">New Vacancy</h5>
|
||||
<h5 class="modal-title" id="modalFormLabel">{{__('messages.new_vacancy')}}</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
@@ -54,35 +54,35 @@
|
||||
|
||||
<form id="savePositionForm" action="{{route('savePosition')}}" method="POST">
|
||||
@csrf
|
||||
<label for="vacancyName">Vacancy name (e.g. Helper)</label>
|
||||
<label for="vacancyName">{{__('messages.vacancy.name')}}</label>
|
||||
<input type="text" id="vacancyName" name="vacancyName" class="form-control">
|
||||
|
||||
<label for="vacancyDescription">Vacancy Description</label>
|
||||
<label for="vacancyDescription">{{__('messages.vacancy.description')}}</label>
|
||||
<input type="text" id="vacancyDescription" name="vacancyDescription" class="form-control">
|
||||
|
||||
<label for="vacancyFullDescription">Vacancy Details</label>
|
||||
<textarea name="vacancyFullDescription" class="form-control" rel="txtTooltip" title="Add things like admission requirements, rank resposibilities and roles, and anything else you feel is necessary" data-toggle="tooltip" data-placement="bottom"></textarea>
|
||||
<span class="right text-muted"><i class="fab fa-markdown"></i> Markdown supported</span>
|
||||
<label for="vacancyFullDescription">{{__('messages.vacancy.description')}}</label>
|
||||
<textarea name="vacancyFullDescription" class="form-control" rel="txtTooltip" title="{{__('messages.vacancy.description_tooltip')}}" data-toggle="tooltip" data-placement="bottom"></textarea>
|
||||
<span class="right text-muted"><i class="fab fa-markdown"></i> {{__('messages.vacancy.markdown')}}</span>
|
||||
<div class="row mt-3">
|
||||
|
||||
<div class="col">
|
||||
<label for="pgroup">Permission Group Name</label>
|
||||
<input rel="txtTooltip" title="The permission group from your server/network's permissions manager. Compatible with Luckperms and PEX." data-toggle="tooltip" data-placement="bottom" type="text" id="pgroup" name="permissionGroup" class="form-control">
|
||||
<label for="pgroup">{{__('messages.vacancy.permission_group')}}</label>
|
||||
<input rel="txtTooltip" title="{{__('messages.vacancy.permission_group_tooltip')}}" data-toggle="tooltip" data-placement="bottom" type="text" id="pgroup" name="permissionGroup" class="form-control">
|
||||
</div>
|
||||
|
||||
<div class="col">
|
||||
<label for="discordrole">Discord Role ID (*)</label>
|
||||
<input rel="txtTooltip" title="Discord Desktop: Go to your Account Settings > Appearance -> Advanced and toggle Developer Mode. On your server's roles tab, right click any role to copy it's ID." data-toggle="tooltip" data-placement="bottom" type="text" id="discordrole" name="discordRole" class="form-control">
|
||||
<label for="discordrole">{{__('messages.vacancy.discord_roleid')}} (*)</label>
|
||||
<input rel="txtTooltip" title="{{__('messages.vacancy.discord_roleid_tooltip')}}" data-toggle="tooltip" data-placement="bottom" type="text" id="discordrole" name="discordRole" class="form-control">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group mt-4">
|
||||
|
||||
<label for="associatedForm">Application form</label>
|
||||
<label for="associatedForm">{{__('messages.positions_p.application_form')}}</label>
|
||||
<select class="custom-select" name="vacancyFormID" id="associatedForm">
|
||||
|
||||
<option disabled>Select a form...</option>
|
||||
<option disabled>{{__('messages.positions_p.select_form')}}</option>
|
||||
@foreach($forms as $form)
|
||||
|
||||
<option value="{{$form->id}}">{{$form->formName}}</option>
|
||||
@@ -91,8 +91,8 @@
|
||||
|
||||
</select>
|
||||
|
||||
<label for="vacancyCount">Free slots</label>
|
||||
<input rel="txtTooltip" title="How many submissions before the vacancy stops accepting new applicants?" data-toggle="tooltip" data-placement="bottom" type="text" id="vacancyCount" name="vacancyCount" class="form-control">
|
||||
<label for="vacancyCount">{{__('messages.vacancy.free_slots')}}</label>
|
||||
<input rel="txtTooltip" title="{{__('messages.vacancy.free_slots_tooltip')}}" data-toggle="tooltip" data-placement="bottom" type="text" id="vacancyCount" name="vacancyCount" class="form-control">
|
||||
|
||||
|
||||
</div>
|
||||
@@ -103,9 +103,7 @@
|
||||
<div class="alert alert-danger">
|
||||
|
||||
<p>
|
||||
You cannot create a vacancy without any forms with which people would apply.
|
||||
Please create a form first, then, create a vacancy.
|
||||
A single form is allowed to have multiple vacancies, so you can attach future vacancies to the same form if you'd like.
|
||||
{{__('messages.positions_p.no_form_error')}}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -115,10 +113,10 @@
|
||||
<div class="modal-footer">
|
||||
|
||||
@if(!$forms->isEmpty())
|
||||
<button type="button" class="btn btn-primary" onclick="document.getElementById('savePositionForm').submit()">Add Vacancy</button>
|
||||
<button type="button" class="btn btn-primary" onclick="document.getElementById('savePositionForm').submit()">{{__('messages.vacancy.add')}}</button>
|
||||
@endif
|
||||
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">{{__('messages.modal_close')}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -132,7 +130,7 @@
|
||||
|
||||
<div class="card-body">
|
||||
|
||||
<button type="button" class="btn btn-primary" onclick="$('#newVacancyForm').modal('show')">NEW POSITION</button>
|
||||
<button type="button" class="btn btn-primary" onclick="$('#newVacancyForm').modal('show')">{{__('messages.positions_p.new_pos')}}</button>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -149,7 +147,7 @@
|
||||
<div class="card bg-gray-dark">
|
||||
|
||||
<div class="card-header bg-indigo">
|
||||
<div class="card-title"><h4 class="text-bold">Open Vacancies</h4></div>
|
||||
<div class="card-title"><h4 class="text-bold">{{__('messages.open_positions')}}</h4></div>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
@@ -161,14 +159,14 @@
|
||||
<thead>
|
||||
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Description</th>
|
||||
<th>Discord Role ID</th>
|
||||
<th>Perm. Group Name</th>
|
||||
<th>Open Slots</th>
|
||||
<th>Status</th>
|
||||
<th>Created On</th>
|
||||
<th>Actions</th>
|
||||
<th>{{__('messages.contactlabel_name')}}</th>
|
||||
<th>{{__('messages.reusable.description')}}</th>
|
||||
<th>{{__('messages.vacancy.discord_roleid')}}</th>
|
||||
<th>{{__('messages.vacancy.permission_groupr')}}</th>
|
||||
<th>{{__('messages.vacancy.free_slots')}}</th>
|
||||
<th>{{__('messages.reusable.status')}}</th>
|
||||
<th>{{__('messages.reusable.created_at')}}</th>
|
||||
<th>{{__('messages.reusable.actions')}}</th>
|
||||
</tr>
|
||||
|
||||
</thead>
|
||||
@@ -184,9 +182,9 @@
|
||||
<td><span class="badge badge-success">{{$vacancy->permissionGroupName}}</span></td>
|
||||
<td>{{$vacancy->vacancyCount}}</td>
|
||||
@if($vacancy->vacancyStatus == 'OPEN')
|
||||
<td><span class="badge badge-success">OPEN</span></td>
|
||||
<td><span class="badge badge-success">{{__('messages.open')}}</span></td>
|
||||
@else
|
||||
<td><span class="badge badge-danger">CLOSED</span></td>
|
||||
<td><span class="badge badge-danger">{{__('messages.closed')}}</span></td>
|
||||
@endif
|
||||
<td>{{$vacancy->created_at}}</td>
|
||||
<td>
|
||||
@@ -223,7 +221,7 @@
|
||||
@else
|
||||
|
||||
<div class="alert alert-warning">
|
||||
<p>Nothing to see here! Open some vacancies first. This will get applicants pouring in! (hopefully)</p>
|
||||
<p>{{__('messages.positions_p.empty_pos_warning')}}</p>
|
||||
</div>
|
||||
|
||||
@endif
|
||||
@@ -231,7 +229,7 @@
|
||||
|
||||
<div class="card-footer">
|
||||
|
||||
<button type="button" class="btn btn-outline-primary" onclick="window.location.href='{{route('showForms')}}'">MANAGE APPLICATION FORMS</button>
|
||||
<button type="button" class="btn btn-outline-primary" onclick="window.location.href='{{route('showForms')}}'">{{__('messages.positions_p.manage_forms')}}</button>
|
||||
|
||||
</div>
|
||||
|
||||
|
@@ -1,13 +1,13 @@
|
||||
@extends('adminlte::page')
|
||||
|
||||
@section('title', 'Raspberry Network | Open Positions')
|
||||
@section('title', config('app.name') . ' | ' . __('messages.settings.settings'))
|
||||
|
||||
@section('content_header')
|
||||
|
||||
@if (Auth::user()->hasAnyRole('admin'))
|
||||
<h4>Administration / Settings</h4>
|
||||
<h4>{{__('messages.adm')}} / {{__('messages.settings.settings')}}</h4>
|
||||
@else
|
||||
<h4>Application Access Denied</h4>
|
||||
<h4>{{__('messages.reusable.no_access')}}</h4>
|
||||
@endif
|
||||
|
||||
@stop
|
||||
@@ -43,8 +43,8 @@
|
||||
<div class="card">
|
||||
|
||||
<div class="card-header">
|
||||
<h3>Notification Settings</h3>
|
||||
<p>Change which notifications are sent here.</p>
|
||||
<h3>{{__('messages.settings.settings_header')}}</h3>
|
||||
<p>{{__('messages.settings.settings_p')}}</p>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
@@ -63,8 +63,8 @@
|
||||
</div>
|
||||
|
||||
<div class="card-footer">
|
||||
<button type="button" class="btn btn-success" onclick="$('#settings').submit()"><i class="fa fa-save"></i> Save changes</button>
|
||||
<button type="button" class="btn btn-warning" onclick="window.location.href='{{route('dashboard')}}'"><i class="fa fa-arrow-circle-o-left"></i> Back to Dashboard</button>
|
||||
<button type="button" class="btn btn-success" onclick="$('#settings').submit()"><i class="fa fa-save"></i> {{__('messages.vacancy.save')}}</button>
|
||||
<button type="button" class="btn btn-warning" onclick="window.location.href='{{route('dashboard')}}'"><i class="fa fa-arrow-circle-o-left"></i> {{__('messages.settings.back_btn')}}</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
@@ -1,10 +1,10 @@
|
||||
@extends('adminlte::page')
|
||||
|
||||
@section('title', 'Raspberry Network | Staff Members')
|
||||
@section('title', config('app.name') . ' | ' . __('messages.staff.members'))
|
||||
|
||||
@section('content_header')
|
||||
|
||||
<h4>Administration / Staff Members</h4>
|
||||
<h4>{{__('messages.adm')}} / {{__('messages.staff.members')}}</h4>
|
||||
|
||||
@stop
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<div class="inner">
|
||||
<h3>{{$users->count()}}</h3>
|
||||
|
||||
<p>Active Staff Members</p>
|
||||
<p>{{__('messages.staff.active_sm')}}</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="fa fa-user-tie"></i>
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
<div class="card-header bg-indigo">
|
||||
|
||||
<div class="card-title"><h4 class="text-bold">Member Listing</h4></div>
|
||||
<div class="card-title"><h4 class="text-bold">{{__('messages.staff.m_listing')}}</h4></div>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -46,13 +46,13 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>Full Name</th>
|
||||
<th>{{__('messages.staff.f_name')}}</th>
|
||||
<th>UUID</th>
|
||||
<th>Rank</th>
|
||||
<th>Email</th>
|
||||
<th>Status</th>
|
||||
<th>Join Date</th>
|
||||
<th>Actions</th>
|
||||
<th>{{__('messages.staff.rank')}}</th>
|
||||
<th>{{__('messages.contactlabel_email')}}</th>
|
||||
<th>{{__('messages.reusable.status')}}</th>
|
||||
<th>{{__('messages.reusable.join_date')}}</th>
|
||||
<th>{{__('messages.reusable.actions')}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
@endforeach
|
||||
</td>
|
||||
<td>{{ $user->email }}</td>
|
||||
<td><span class="badge badge-success">Active</span></td>
|
||||
<td><span class="badge badge-success">{{__('messages.players.active')}}</span></td>
|
||||
<td>{{$user->created_at}}</td>
|
||||
<td>
|
||||
<button type="button" class="btn btn-sm btn-success mr-2" onclick="window.location.href='{{route('showSingleProfile', ['user' => $user->id])}}'"><i class="fa fa-eye"></i></button>
|
||||
@@ -87,7 +87,7 @@
|
||||
|
||||
<div class="card-footer">
|
||||
|
||||
<button type="button" class="btn btn-outline-primary" onclick="window.location.href='{{route("registeredPlayerList")}}'">See Registered Players (Applicant Pool)</button>
|
||||
<button type="button" class="btn btn-outline-primary" onclick="window.location.href='{{route("registeredPlayerList")}}'">{{__('messages.players.reg_players_staff')}}</button>
|
||||
|
||||
</div>
|
||||
|
||||
|
Reference in New Issue
Block a user