Team page skeleton

This commit is contained in:
Miguel Nogueira 2020-09-10 23:09:23 +01:00
parent 982854d5c6
commit 7c0c244e21
4 changed files with 40 additions and 0 deletions

View File

@ -299,6 +299,12 @@ return [
'url' => '/hr/players', 'url' => '/hr/players',
'can' => 'admin.userlist' 'can' => 'admin.userlist'
], ],
[
'text' => 'm_teams',
'icon' => 'fas fa-user-friends',
'url' => 'teams',
'can' => 'teams.view'
],
[ [
'text' => 'sm_hiring_man', 'text' => 'sm_hiring_man',
'icon' => 'far fa-calendar-plus', 'icon' => 'far fa-calendar-plus',

View File

@ -12,6 +12,20 @@ class TeamSeeder extends Seeder
*/ */
public function run() public function run()
{ {
Permission::create([
'name' => 'teams.user.view.own'
]);
Permission::create([
'name' => 'teams.admin.view.all'
]);
// Has access to the teams feature
Permission::create([
'name' => 'teams.view'
]);
Permission::create([ Permission::create([
'name' => 'teams.admin.create', 'name' => 'teams.admin.create',
]); ]);

View File

@ -605,6 +605,13 @@ return [
'max_chars' => 'max characters', // Context: A number is added before max characters 'max_chars' => 'max characters', // Context: A number is added before max characters
'post' => 'Post', // Context: Post as in post comment 'post' => 'Post', // Context: Post as in post comment
],
'teams' => [
'm_teams_page' => 'Teams'
] ]
// ==================== END OF MAIN I18N FILE ====================== // ==================== END OF MAIN I18N FILE ======================

View File

@ -0,0 +1,13 @@
@extends('adminlte::page')
@section('title', config('app.name') . ' | ' . __('messages.teams.m_teams_page'))
@section('content_header')
<h1>{{config('app.name')}} / {{__('messages.teams.m_teams_page')}}</h1>
@stop
@section('content')
@stop