feat: added strings to Teams feature
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
@extends('adminlte::page')
|
||||
|
||||
@section('title', config('app.name') . ' | ' . __('messages.teams.m_teams_page'))
|
||||
@section('title', config('app.name') . ' | ' . __('Teams'))
|
||||
|
||||
@section('content_header')
|
||||
<h1>{{config('app.name')}} / {{__('messages.teams.m_teams_page')}}</h1>
|
||||
<h1>{{config('app.name')}} / {{__('Teams')}}</h1>
|
||||
@stop
|
||||
|
||||
@section('js')
|
||||
@@ -23,18 +23,18 @@
|
||||
@csrf
|
||||
<div class="form-group">
|
||||
<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)
|
||||
<option value="{{ $user->id }}" {{ ($user->id == Auth::user()->id) ? 'disabled' : '' }}>{{ $user->name }}</option>
|
||||
@endforeach
|
||||
</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>
|
||||
|
||||
</form>
|
||||
|
||||
<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-modal>
|
||||
@@ -42,7 +42,7 @@
|
||||
|
||||
<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())
|
||||
<table class="table table-borderless">
|
||||
@@ -50,10 +50,10 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>Name</th>
|
||||
<th>Roles</th>
|
||||
<th>Status</th>
|
||||
<th>Actions</th>
|
||||
<th>{{ __('Name') }}</th>
|
||||
<th>{{ __('Roles') }}</th>
|
||||
<th>{{ __('Status') }}</th>
|
||||
<th>{{ __('Actions') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@@ -73,13 +73,13 @@
|
||||
</td>
|
||||
<td>
|
||||
@if ($teammate->isOwnerOfTeam($team))
|
||||
<span class="badge badge-success">Team Owner</span>
|
||||
<span class="badge badge-success">{{__('Team Owner')}}</span>
|
||||
@else
|
||||
<span class="badge badge-primary">Team Member</span>
|
||||
<span class="badge badge-primary">{{__('Team Member')}}</span>
|
||||
@endif
|
||||
</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>
|
||||
</tr>
|
||||
|
||||
@@ -92,8 +92,8 @@
|
||||
|
||||
<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>
|
||||
<p>Start inviting some people and grow your team.</p>
|
||||
<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>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -119,7 +119,7 @@
|
||||
<div class="card">
|
||||
|
||||
<div class="card-header">
|
||||
<h4 class="card-title">Edit Team</h4>
|
||||
<h4 class="card-title">{{ __('Edit Team') }}</h4>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
@@ -131,21 +131,21 @@
|
||||
|
||||
<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>
|
||||
|
||||
<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>
|
||||
<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">
|
||||
|
||||
<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 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>
|
||||
|
||||
<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>
|
||||
@@ -155,9 +155,9 @@
|
||||
</div>
|
||||
|
||||
<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-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-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-danger ml-2" onclick="location.href='{{ route('teams.index') }}'"><i class="far fa-trash-alt"></i> {{ __('Cancel') }}</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -170,12 +170,12 @@
|
||||
<div class="card">
|
||||
|
||||
<div class="card-header">
|
||||
<div class="card-title"><h4>Team Vacancies</h4></div>
|
||||
<div class="card-title"><h4>{{ __('Team Vacancies') }}</h4></div>
|
||||
</div>
|
||||
|
||||
<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]) }}">
|
||||
|
||||
@@ -199,7 +199,7 @@
|
||||
|
||||
<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>
|
||||
|
||||
|
Reference in New Issue
Block a user