feat: added strings to Teams feature
This commit is contained in:
parent
703032a008
commit
44874fbdc5
@ -1,10 +1,10 @@
|
|||||||
@extends('adminlte::page')
|
@extends('adminlte::page')
|
||||||
|
|
||||||
@section('title', config('app.name') . ' | ' . __('messages.application_m.all_apps'))
|
@section('title', config('app.name') . ' | ' . __('All Applications'))
|
||||||
|
|
||||||
@section('content_header')
|
@section('content_header')
|
||||||
|
|
||||||
<h4>{{__('messages.application_m.title')}} / {{__('messages.application_m.all_apps')}}</h4>
|
<h4>{{__('Application Management')}} / {{__('All Applications')}}</h4>
|
||||||
|
|
||||||
@stop
|
@stop
|
||||||
|
|
||||||
@ -20,20 +20,20 @@
|
|||||||
|
|
||||||
@foreach($applications as $application)
|
@foreach($applications as $application)
|
||||||
|
|
||||||
<x-modal id="deletionConfirmationModal-{{ $application->id }}" modal-label="deletion-{{ $application->id }}" modal-title="{{__('messages.application_m.modal_confirm')}}" include-close-button="true">
|
<x-modal id="deletionConfirmationModal-{{ $application->id }}" modal-label="deletion-{{ $application->id }}" modal-title="{{__('Are you sure?')}}" include-close-button="true">
|
||||||
|
|
||||||
<h4><i class="fas fa-exclamation-triangle"></i> {{__('messages.application_m.really_delete')}}</h4>
|
<h4><i class="fas fa-exclamation-triangle"></i> {{__('Really delete this?')}}</h4>
|
||||||
<p>
|
<p>
|
||||||
{{__('messages.application_m.delete_action_warning', ['consequence' => '<b>' . __('messages.application_m.consequence_irreversible') .'</b>'])}}
|
{!! __('This action is :consequence.', ['consequence' => '<b>' . __('IRREVERSIBLE.') .'</b>']) !!}
|
||||||
</p>
|
</p>
|
||||||
<p>{{__('messages.application_m.delete_explainer')}}</p>
|
<p>{{__('Comments, appointments and any votes attached to this application WILL be deleted too. Please make sure this application really needs to be deleted.')}}</p>
|
||||||
|
|
||||||
<x-slot name="modalFooter">
|
<x-slot name="modalFooter">
|
||||||
|
|
||||||
<form method="POST" action="{{ route('deleteApplication', ['application' => $application->id]) }}">
|
<form method="POST" action="{{ route('deleteApplication', ['application' => $application->id]) }}">
|
||||||
@csrf
|
@csrf
|
||||||
@method('DELETE')
|
@method('DELETE')
|
||||||
<button type="submit" class="btn btn-danger"><i class="fas fa-check-double"></i> {{__('messages.reusable.confirm_plain')}}</button>
|
<button type="submit" class="btn btn-danger"><i class="fas fa-check-double"></i> {{__('Confirm')}}</button>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
@ -55,15 +55,15 @@
|
|||||||
|
|
||||||
<div class="col-3">
|
<div class="col-3">
|
||||||
|
|
||||||
<img src="/img/applications_all.svg" alt="Applications illustration" class="img-responsive" width="200px"/>
|
<img src="/img/applications_all.svg" alt="{{ __('Applications illustration') }}" class="img-responsive" width="200px"/>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col">
|
<div class="col">
|
||||||
|
|
||||||
<h3><i class="fas fa-info-circle"></i> {{__('messages.application_m.all_apps_header')}}</h3>
|
<h3><i class="fas fa-info-circle"></i> {{__("You're looking at all applications ever received")}}</h3>
|
||||||
<p>
|
<p>
|
||||||
{{__('messages.application_m.all_apps_exp')}}
|
{{__('Here, you have quick and easy access to all applications ever received by the system.')}}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -90,7 +90,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<h3>{{__('messages.application_m.all_apps')}}</h3>
|
<h3>{{__('All Applications')}}</h3>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -119,10 +119,10 @@
|
|||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th>#</th>
|
<th>#</th>
|
||||||
<th>{{__('messages.application_m.applicant')}}</th>
|
<th>{{__('Applicant')}}</th>
|
||||||
<th>{{__('messages.reusable.status')}}</th>
|
<th>{{__('Status')}}</th>
|
||||||
<th>{{__('messages.reusable.date')}}</th>
|
<th>{{__('Date')}}</th>
|
||||||
<th>{{__('messages.reusable.actions')}}</th>
|
<th>{{__('Actions')}}</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
</thead>
|
</thead>
|
||||||
@ -139,48 +139,48 @@
|
|||||||
|
|
||||||
@case('STAGE_SUBMITTED')
|
@case('STAGE_SUBMITTED')
|
||||||
|
|
||||||
<span class="badge badge-primary"><i class="far fa-clock"></i> {{__('messages.application_m.outstanding_subm')}}</span>
|
<span class="badge badge-primary"><i class="far fa-clock"></i> {{__('Outstanding (Submitted)')}}</span>
|
||||||
@break
|
@break
|
||||||
|
|
||||||
@case('STAGE_PEERAPPROVAL')
|
@case('STAGE_PEERAPPROVAL')
|
||||||
|
|
||||||
<span class="badge badge-warning"><i class="fas fa-vote-yea"></i> {{__('messages.application_m.p_review')}}</span>
|
<span class="badge badge-warning"><i class="fas fa-vote-yea"></i> {{__('Peer Review')}}</span>
|
||||||
@break
|
@break
|
||||||
|
|
||||||
@case('STAGE_INTERVIEW')
|
@case('STAGE_INTERVIEW')
|
||||||
|
|
||||||
<span class="badge badge-warning"><i class="fas fa-microphone-alt"></i> {{__('messages.application_m.interview_p')}}</span>
|
<span class="badge badge-warning"><i class="fas fa-microphone-alt"></i> {{__('Interview')}}</span>
|
||||||
|
|
||||||
@break
|
@break
|
||||||
|
|
||||||
@case('STAGE_INTERVIEW_SCHEDULED')
|
@case('STAGE_INTERVIEW_SCHEDULED')
|
||||||
|
|
||||||
<span class="badge badge-warning"><i class="far fa-clock"></i>{{__('messages.application_m.interview_s')}}</span>
|
<span class="badge badge-warning"><i class="far fa-clock"></i>{{__('Interview Scheduled')}}</span>
|
||||||
|
|
||||||
@break
|
@break
|
||||||
|
|
||||||
@case('APPROVED')
|
@case('APPROVED')
|
||||||
|
|
||||||
<span class="badge badge-success"><i class="fas fa-check"></i> {{__('messages.application_m.approved')}}</span>
|
<span class="badge badge-success"><i class="fas fa-check"></i> {{__('Approved')}}</span>
|
||||||
|
|
||||||
@break
|
@break
|
||||||
|
|
||||||
@case('DENIED')
|
@case('DENIED')
|
||||||
|
|
||||||
<span class="badge badge-danger"><i class="fas fa-times"></i> {{__('messages.application_m.denied')}}</span>
|
<span class="badge badge-danger"><i class="fas fa-times"></i> {{__('Denied')}}</span>
|
||||||
|
|
||||||
@break;
|
@break;
|
||||||
|
|
||||||
@default
|
@default
|
||||||
<span class="badge badge-secondary"><i class="fas fa-question-circle"></i> {{__('messages.application_m.denied')}}</span>
|
<span class="badge badge-secondary"><i class="fas fa-question-circle"></i> {{__('Denied')}}</span>
|
||||||
|
|
||||||
|
|
||||||
@endswitch
|
@endswitch
|
||||||
</td>
|
</td>
|
||||||
<td>{{ $application->created_at }}</td>
|
<td>{{ $application->created_at }}</td>
|
||||||
<td>
|
<td>
|
||||||
<button type="button" class="btn btn-success btn-sm" onclick="window.location.href='{{ route('showUserApp', ['application' => $application->id]) }}'"><i class="fas fa-eye"></i> {{__('messages.reusable.view')}}</button>
|
<button type="button" class="btn btn-success btn-sm" onclick="window.location.href='{{ route('showUserApp', ['application' => $application->id]) }}'"><i class="fas fa-eye"></i> {{__('View')}}</button>
|
||||||
<button type="button" class="btn btn-danger btn-sm ml-2" onclick="$('#deletionConfirmationModal-{{ $application->id }}').modal('show')"><i class="fa fa-trash"></i> {{__('messages.reusable.delete')}}</button>
|
<button type="button" class="btn btn-danger btn-sm ml-2" onclick="$('#deletionConfirmationModal-{{ $application->id }}').modal('show')"><i class="fa fa-trash"></i> {{__('Delete')}}</button>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
@ -194,9 +194,9 @@
|
|||||||
|
|
||||||
<div class="alert alert-warning">
|
<div class="alert alert-warning">
|
||||||
|
|
||||||
<h3><i class="fas fa-question-circle"></i> {{__('messages.application_m.no_apps')}}</h3>
|
<h3><i class="fas fa-question-circle"></i> {{__('There are no applications here')}}</h3>
|
||||||
<p>
|
<p>
|
||||||
{{__('messages.application_m.no_apps_exp')}}
|
{{__("We couldn't find any applications. Maybe no one has applied yet? Please try again later.")}}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
@extends('adminlte::page')
|
@extends('adminlte::page')
|
||||||
|
|
||||||
@section('title', config('app.name') . ' | ' . __('messages.teams.m_teams_page'))
|
@section('title', config('app.name') . ' | ' . __('Teams'))
|
||||||
|
|
||||||
@section('content_header')
|
@section('content_header')
|
||||||
<h1>{{config('app.name')}} / {{__('messages.teams.m_teams_page')}}</h1>
|
<h1>{{config('app.name')}} / {{__('Teams')}}</h1>
|
||||||
@stop
|
@stop
|
||||||
|
|
||||||
@section('js')
|
@section('js')
|
||||||
@ -23,18 +23,18 @@
|
|||||||
@csrf
|
@csrf
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<select class="custom-select" name="user">
|
<select class="custom-select" name="user">
|
||||||
<option disabled selected>Choose a user to invite</option>
|
<option disabled selected>{{ __('Choose a user to invite') }}</option>
|
||||||
@foreach ($users as $user)
|
@foreach ($users as $user)
|
||||||
<option value="{{ $user->id }}" {{ ($user->id == Auth::user()->id) ? 'disabled' : '' }}>{{ $user->name }}</option>
|
<option value="{{ $user->id }}" {{ ($user->id == Auth::user()->id) ? 'disabled' : '' }}>{{ $user->name }}</option>
|
||||||
@endforeach
|
@endforeach
|
||||||
</select>
|
</select>
|
||||||
<span class="text-sm text-muted"><i class="fas fa-info-circle"></i> This user will receive an email notification asking them to join your team.</span>
|
<span class="text-sm text-muted"><i class="fas fa-info-circle"></i> {{ __('This user will receive an email notification asking them to join your team.') }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<x-slot name="modalFooter">
|
<x-slot name="modalFooter">
|
||||||
<button type="button" class="btn btn-success" onclick="$('#inviteToTeam').submit()"><i class="fas fa-paper-plane"></i> Send invite</button>
|
<button type="button" class="btn btn-success" onclick="$('#inviteToTeam').submit()"><i class="fas fa-paper-plane"></i> {{ __('Send invite') }}</button>
|
||||||
</x-slot>
|
</x-slot>
|
||||||
|
|
||||||
</x-modal>
|
</x-modal>
|
||||||
@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
<x-modal id="userlist_modal" modal-label="UserListModalLabel" modal-title="Team Members and Invites" include-close-button="true">
|
<x-modal id="userlist_modal" modal-label="UserListModalLabel" modal-title="Team Members and Invites" include-close-button="true">
|
||||||
|
|
||||||
<p><i class="fas fa-info-circle"></i> Team members and pending invites will appear here.</p>
|
<p><i class="fas fa-info-circle"></i> {{ __('Team members and pending invites will appear here.') }}</p>
|
||||||
|
|
||||||
@if (!$team->users->isEmpty())
|
@if (!$team->users->isEmpty())
|
||||||
<table class="table table-borderless">
|
<table class="table table-borderless">
|
||||||
@ -50,10 +50,10 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>#</th>
|
<th>#</th>
|
||||||
<th>Name</th>
|
<th>{{ __('Name') }}</th>
|
||||||
<th>Roles</th>
|
<th>{{ __('Roles') }}</th>
|
||||||
<th>Status</th>
|
<th>{{ __('Status') }}</th>
|
||||||
<th>Actions</th>
|
<th>{{ __('Actions') }}</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
@ -73,13 +73,13 @@
|
|||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
@if ($teammate->isOwnerOfTeam($team))
|
@if ($teammate->isOwnerOfTeam($team))
|
||||||
<span class="badge badge-success">Team Owner</span>
|
<span class="badge badge-success">{{__('Team Owner')}}</span>
|
||||||
@else
|
@else
|
||||||
<span class="badge badge-primary">Team Member</span>
|
<span class="badge badge-primary">{{__('Team Member')}}</span>
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<button rel="buttonTxtTooltip" data-toggle="tooltip" data-placement="top" title="Kick User" type="button" class="btn btn-danger btn-sm"><i class="fas fa-bolt"></i></button>
|
<button rel="buttonTxtTooltip" data-toggle="tooltip" data-placement="top" title="{{ __('Kick User') }}" type="button" class="btn btn-danger btn-sm"><i class="fas fa-bolt"></i></button>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
@ -92,8 +92,8 @@
|
|||||||
|
|
||||||
<div class="alert alert-warning">
|
<div class="alert alert-warning">
|
||||||
|
|
||||||
<span><i class="fas fa-exclamation-triangle"></i> <b>There don't seem to be any teammates here!</b></span>
|
<span><i class="fas fa-exclamation-triangle"></i> <b>{{__("There don't seem to be any teammates here!")}}</b></span>
|
||||||
<p>Start inviting some people and grow your team.</p>
|
<p>{{ __('Start inviting some people and grow your team.') }}</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -119,7 +119,7 @@
|
|||||||
<div class="card">
|
<div class="card">
|
||||||
|
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<h4 class="card-title">Edit Team</h4>
|
<h4 class="card-title">{{ __('Edit Team') }}</h4>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
@ -131,21 +131,21 @@
|
|||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
||||||
<label for="teamName">Team name</label>
|
<label for="teamName">{{ __('Team name') }}</label>
|
||||||
<input type="text" class="form-control" id="teamName" value="{{ $team->name }}" disabled>
|
<input type="text" class="form-control" id="teamName" value="{{ $team->name }}" disabled>
|
||||||
|
|
||||||
<label for="teamDescription">Team description</label>
|
<label for="teamDescription">{{ __('Team description') }}</label>
|
||||||
<textarea class="form-control" rows="4" name="teamDescription" id="teamDescription">{{ $team->description }}</textarea>
|
<textarea class="form-control" rows="4" name="teamDescription" id="teamDescription">{{ $team->description }}</textarea>
|
||||||
<span class="text-left text-muted text-sm"><a href="https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet"><i class="fab fa-markdown"></i></a> Markdown supported</span>
|
<span class="text-left text-muted text-sm"><a href="https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet"><i class="fab fa-markdown"></i></a> {{ __('Markdown supported') }}</span>
|
||||||
|
|
||||||
<div class="controlbuttons mt-3">
|
<div class="controlbuttons mt-3">
|
||||||
|
|
||||||
<span rel="spanTxtTooltip" data-toggle="tooltip" title="This setting controls whether people can join the team freely." data-placement="top">
|
<span rel="spanTxtTooltip" data-toggle="tooltip" title="{{ __('This setting controls whether people can join the team freely.') }}" data-placement="top">
|
||||||
<input type="hidden" name="joinType" value="0"> <!-- unchecked checkbox hack (no js) -->
|
<input type="hidden" name="joinType" value="0"> <!-- unchecked checkbox hack (no js) -->
|
||||||
<input value="0" type="checkbox" {{ ($team->openJoin == 1) ? 'checked' : '' }} name="joinType" id="jointype" data-toggle="toggle" data-on="Public Team" data-off="Private" data-onstyle="success" data-offstyle="danger" data-width="100">
|
<input value="0" type="checkbox" {{ ($team->openJoin == 1) ? 'checked' : '' }} name="joinType" id="jointype" data-toggle="toggle" data-on="{{ __('Public Team') }}" data-off="{{__('Private')}}" data-onstyle="success" data-offstyle="danger" data-width="100">
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<button onclick="$('#addUserModal').modal('show')" type="button" id="inviteUser" name="inviteUser" class="btn btn-success" {{ ($team->openJoin) ? 'disabled' : '' }}><i class="fas fa-user-plus"></i> Invite user</button>
|
<button onclick="$('#addUserModal').modal('show')" type="button" id="inviteUser" name="inviteUser" class="btn btn-success" {{ ($team->openJoin) ? 'disabled' : '' }}><i class="fas fa-user-plus"></i> {{ __('Invite user') }}</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -155,9 +155,9 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card-footer">
|
<div class="card-footer">
|
||||||
<button type="button" class="btn btn-success ml-2" onclick="$('#editTeam').submit()"><i class="fas fa-save"></i> Save and Close</button>
|
<button type="button" class="btn btn-success ml-2" onclick="$('#editTeam').submit()"><i class="fas fa-save"></i> {{ __('Save and Close') }}</button>
|
||||||
<button type="button" class="btn btn-warning ml-2" onclick="$('#userlist_modal').modal('show')"><i class="fas fa-users"></i> Team Members</button>
|
<button type="button" class="btn btn-warning ml-2" onclick="$('#userlist_modal').modal('show')"><i class="fas fa-users"></i> {{ __('Team Members') }}</button>
|
||||||
<button type="button" class="btn btn-danger ml-2" onclick="location.href='{{ route('teams.index') }}'"><i class="far fa-trash-alt"></i> Cancel</button>
|
<button type="button" class="btn btn-danger ml-2" onclick="location.href='{{ route('teams.index') }}'"><i class="far fa-trash-alt"></i> {{ __('Cancel') }}</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -170,12 +170,12 @@
|
|||||||
<div class="card">
|
<div class="card">
|
||||||
|
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<div class="card-title"><h4>Team Vacancies</h4></div>
|
<div class="card-title"><h4>{{ __('Team Vacancies') }}</h4></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
|
|
||||||
<span class="text-muted"><i class="fas fa-info-circle"></i> The vacancies you select determine what applications your team members see. All applications under the vacancies you choose will be displayed.</span>
|
<span class="text-muted"><i class="fas fa-info-circle"></i> {{ __('The vacancies you select determine what applications your team members see. All applications under the vacancies you choose will be displayed.') }}</span>
|
||||||
|
|
||||||
<form method="POST" id="vacancyChangeForm" action="{{ route('assignVacancies', ['team' => $team->id]) }}">
|
<form method="POST" id="vacancyChangeForm" action="{{ route('assignVacancies', ['team' => $team->id]) }}">
|
||||||
|
|
||||||
@ -199,7 +199,7 @@
|
|||||||
|
|
||||||
<div class="card-footer">
|
<div class="card-footer">
|
||||||
|
|
||||||
<button onclick="$('#vacancyChangeForm').submit()" type="button" class="btn btn-success"><i class="far fa-save"></i> Update Assignments</button>
|
<button onclick="$('#vacancyChangeForm').submit()" type="button" class="btn btn-success"><i class="far fa-save"></i> {{ __('Update Assignments') }}</button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
@extends('adminlte::page')
|
@extends('adminlte::page')
|
||||||
|
|
||||||
@section('title', config('app.name') . ' | Team Files')
|
@section('title', config('app.name') . ' | ' . __('Team Files'))
|
||||||
|
|
||||||
@section('content_header')
|
@section('content_header')
|
||||||
<h1>{{config('app.name')}} / Teams / Files</h1>
|
<h1>{{config('app.name')}} {{ __('/ Teams / Files') }}</h1>
|
||||||
@stop
|
@stop
|
||||||
|
|
||||||
@section('js')
|
@section('js')
|
||||||
@ -20,10 +20,10 @@
|
|||||||
@csrf
|
@csrf
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
||||||
<label for="caption">Caption</label>
|
<label for="caption">{{ __('Caption') }}</label>
|
||||||
<input id="caption" type="text" class="form-control" name="caption" required>
|
<input id="caption" type="text" class="form-control" name="caption" required>
|
||||||
|
|
||||||
<label for="description">File description (optional)</label>
|
<label for="description">{{ __('File description (optional)') }}</label>
|
||||||
<textarea rows="5" name="description" id="description" class="form-control"></textarea>
|
<textarea rows="5" name="description" id="description" class="form-control"></textarea>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -32,14 +32,14 @@
|
|||||||
<label class="btn btn-primary" for="file-selector">
|
<label class="btn btn-primary" for="file-selector">
|
||||||
<input id="file-selector" name="file" type="file" style="display:none"
|
<input id="file-selector" name="file" type="file" style="display:none"
|
||||||
onchange="$('#upload-file-info').html(this.files[0].name)">
|
onchange="$('#upload-file-info').html(this.files[0].name)">
|
||||||
Choose File (max {{ini_get('post_max_size')}})
|
{{ __('Choose File (max. :maxFileSizeSettingValue)', ['maxFileSizeSettingValue' => ini_get('post_max_size')]) }}
|
||||||
</label>
|
</label>
|
||||||
<span class='label label-info' id="upload-file-info"></span>
|
<span class='label label-info' id="upload-file-info"></span>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<x-slot name="modalFooter">
|
<x-slot name="modalFooter">
|
||||||
<button onclick="$('#newFile').submit()" type="button" class="btn btn-warning" rel="buttonTxtTooltip" title="Upload chosen file" data-placement="top"><i class="fas fa-upload"></i></button>
|
<button onclick="$('#newFile').submit()" type="button" class="btn btn-warning" rel="buttonTxtTooltip" title="{{ __('Upload chosen file') }}" data-placement="top"><i class="fas fa-upload"></i></button>
|
||||||
</x-slot>
|
</x-slot>
|
||||||
</x-modal>
|
</x-modal>
|
||||||
@endif
|
@endif
|
||||||
@ -47,7 +47,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
<div class="col-3 offset-4">
|
<div class="col-3 offset-4">
|
||||||
<img src="/img/files.svg" width="230px" height="230px" alt="Team files illustration">
|
<img src="/img/files.svg" width="230px" height="230px" alt="{{ __('Team files illustration') }}">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -56,8 +56,8 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<div class="alert alert-warning">
|
<div class="alert alert-warning">
|
||||||
<p class="text-bold"><i class="fa fa-info-circle"></i> Warning</p>
|
<p class="text-bold"><i class="fa fa-info-circle"></i> {{ __('Warning') }}</p>
|
||||||
<p>Since many users may use the app at any given time, file uploads are disabled whilst demo mode is on.</p>
|
<p>{{ __('Since many users may use the app at any given time, file uploads are disabled whilst demo mode is on.') }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
@extends('adminlte::page')
|
@extends('adminlte::page')
|
||||||
|
|
||||||
@section('title', config('app.name') . ' | ' . __('messages.teams.m_teams_page'))
|
@section('title', config('app.name') . ' | ' . __('Teams'))
|
||||||
|
|
||||||
@section('content_header')
|
@section('content_header')
|
||||||
<h1>{{config('app.name')}} / {{__('messages.teams.m_teams_page')}}</h1>
|
<h1>{{config('app.name')}} / {{__('Teams')}}</h1>
|
||||||
@stop
|
@stop
|
||||||
|
|
||||||
@section('js')
|
@section('js')
|
||||||
@ -31,13 +31,13 @@
|
|||||||
<input type="text" id="teamName" class="form-control" required name="teamName">
|
<input type="text" id="teamName" class="form-control" required name="teamName">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p class="text-muted text-sm">This is the name team members will see.</p>
|
<p class="text-muted text-sm">{{ __('This is the name team members will see.') }}</p>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<x-slot name="modalFooter">
|
<x-slot name="modalFooter">
|
||||||
|
|
||||||
<button type="button" class="btn btn-success" onclick="$('#newTeamForm').submit()"><i class="fas fa-check"></i> Create</button>
|
<button type="button" class="btn btn-success" onclick="$('#newTeamForm').submit()"><i class="fas fa-check"></i> {{__('Create')}}</button>
|
||||||
|
|
||||||
</x-slot>
|
</x-slot>
|
||||||
|
|
||||||
@ -49,7 +49,7 @@
|
|||||||
|
|
||||||
<div class="col-md-4 offset-4 text-center">
|
<div class="col-md-4 offset-4 text-center">
|
||||||
|
|
||||||
<img src="/img/team.svg" height="230px" width="230px" alt="Team illustration">
|
<img src="/img/team.svg" height="230px" width="230px" alt="{{ __('Team illustration') }}">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -71,7 +71,7 @@
|
|||||||
|
|
||||||
<div class="col">
|
<div class="col">
|
||||||
|
|
||||||
<div class="card-title"><h4>{{ __('messages.teams.m_teams_page') }} <span class="badge badge-warning"><i class="fas fa-check-circle"></i> {{ (Auth::user()->currentTeam) ? Auth::user()->currentTeam->name : 'Select a team' }}</span></h4></div>
|
<div class="card-title"><h4>{{ __('Teams') }} <span class="badge badge-warning"><i class="fas fa-check-circle"></i> {{ (Auth::user()->currentTeam) ? Auth::user()->currentTeam->name : __('Select a team') }}</span></h4></div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -89,9 +89,9 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>#</th>
|
<th>#</th>
|
||||||
<th>Team Owner</th>
|
<th>{{ __('Team Owner') }}</th>
|
||||||
<th>Team Name</th>
|
<th>{{ __('Team Name') }}</th>
|
||||||
<th>Actions</th>
|
<th>{{__('Actions')}}</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
@ -104,8 +104,8 @@
|
|||||||
<td>{{ $team->owner_id }}</td>
|
<td>{{ $team->owner_id }}</td>
|
||||||
<td>{{ $team->name }}</td>
|
<td>{{ $team->name }}</td>
|
||||||
<td>
|
<td>
|
||||||
<button type="button" class="btn btn-success btn-sm ml-2" onclick="location.href='{{ route('teams.edit', ['team' => $team->id]) }}'"><i class="fas fa-cogs"></i> Settings</button>
|
<button type="button" class="btn btn-success btn-sm ml-2" onclick="location.href='{{ route('teams.edit', ['team' => $team->id]) }}'"><i class="fas fa-cogs"></i> {{ __('Settings') }}</button>
|
||||||
<button onclick="location.href='{{ route('switchTeam', ['team' => $team]) }}'" rel="buttonTxtTooltip" data-placement="top" data-toggle="tooltip" title="Select your active team (for dasboard context, etc)" type="button" class="btn btn-warning btn-sm ml-2"><i class="fas fa-random"></i> Switch To</button>
|
<button onclick="location.href='{{ route('switchTeam', ['team' => $team]) }}'" rel="buttonTxtTooltip" data-placement="top" data-toggle="tooltip" title="{{ __('Select your active team (for dasboard context, etc)') }}" type="button" class="btn btn-warning btn-sm ml-2"><i class="fas fa-random"></i> {{ __('Switch To') }}</button>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
@ -119,8 +119,8 @@
|
|||||||
@else
|
@else
|
||||||
|
|
||||||
<div class="alert alert-warning">
|
<div class="alert alert-warning">
|
||||||
<i class="fas fa-exclamation-triangle"></i> <b> There don't seem to be any teams here</b>
|
<i class="fas fa-exclamation-triangle"></i> {!! __("<b> There don't seem to be any teams here</b>") !!}
|
||||||
<p>Have you tried creating or joining a team? You may also click an invite link if you've been invited.</p>
|
<p>{{ __("Have you tried creating or joining a team? You may also click an invite link if you've been invited.") }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@endif
|
@endif
|
||||||
@ -130,8 +130,8 @@
|
|||||||
|
|
||||||
<div class="card-footer">
|
<div class="card-footer">
|
||||||
|
|
||||||
<button type="button" class="btn btn-success btn-sm ml-3" onclick="$('#newTeamModal').modal('show')"><i class="fas fa-plus-circle"></i> New team</button>
|
<button type="button" class="btn btn-success btn-sm ml-3" onclick="$('#newTeamModal').modal('show')"><i class="fas fa-plus-circle"></i> {{ __('New team') }}</button>
|
||||||
<button type="button" class="btn btn-warning btn-sm ml-3"><i class="fas fas fa-long-arrow-alt-right"></i> Team Dashboard</button>
|
<button type="button" class="btn btn-warning btn-sm ml-3"><i class="fas fas fa-long-arrow-alt-right"></i> {{ __('Team Dashboard') }}</button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user