tethys/resources/views/settings/layouts/app.blade.php

248 lines
13 KiB
PHP
Raw Normal View History

2018-08-29 15:18:15 +00:00
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="{{ app()->getLocale() }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>BACKEND TETHYS</title>
2018-08-29 15:18:15 +00:00
<link rel="shortcut icon" type="image/x-icon" href="{{ asset('favicon.ico') }}">
2019-04-16 17:01:57 +00:00
{{-- <link rel='stylesheet' href="{{ asset('css/pure-min.css') }}" />
2019-04-18 11:16:50 +00:00
<link rel='stylesheet' href="{{ asset('css/grids-responsive-min.css') }}" /> --}}
2018-08-29 15:18:15 +00:00
<!--<link rel="stylesheet" type="text/css" href="bower_components/font-awesome/css/font-awesome.min.css">-->
2019-04-18 11:16:50 +00:00
{{-- <link rel='stylesheet' href="{{ asset('css/font-awesome.css') }}" /> --}}
<link rel='stylesheet' href="{{ asset('css/app1.css') }}" />
2018-08-29 15:18:15 +00:00
2018-09-06 15:58:54 +00:00
<link rel="stylesheet" type="text/css" href="{{ asset('/backend/style.css') }}">
<link rel="stylesheet" type="text/css" href="{{ asset('/backend/pagination.css') }}">
2018-11-13 16:21:58 +00:00
<link rel="stylesheet" type="text/css" href="{{ asset('/backend/tabs.css') }}">
2019-04-18 11:16:50 +00:00
2018-10-10 16:28:51 +00:00
@yield('styles')
2018-08-29 15:18:15 +00:00
</head>
<body>
<div id="layout">
<a href="#menu" id="menuLink" class="menu-link">
<!-- Hamburger icon -->
<span></span>
</a>
<div id="menu">
2018-09-04 14:51:04 +00:00
<nav class="pure-menu sidebar-menu">
<h1 class="site-logo">Backend<strong>TETHYS</strong></h1>
{{-- <div class="menu-item-divided"></div> --}}
2018-08-29 15:18:15 +00:00
2018-09-04 14:51:04 +00:00
{{-- <h2 class="pure-menu-heading">Home</h2> --}}
<ul class=" pure-menu-list sidebar-menu">
<h2 class="pure-menu-heading">Home</h2>
2018-08-29 15:18:15 +00:00
2018-09-04 14:51:04 +00:00
{{-- <li class="pure-menu-item {{ Route::is('settings.dashboard') ? 'active' : '' }}">
<a href="{{ route('settings.dashboard') }}" class="pure-menu-link">Reports</a>
</li> --}}
<li class="pure-menu-item {{ Route::is('settings.dashboard') ? 'active' : '' }}">
<a class="pure-menu-link" href="{{ route('settings.dashboard') }}">
2019-04-18 11:16:50 +00:00
<i class="fa fa-tachometer-alt"></i>
<span>Manual</span>
2018-09-04 14:51:04 +00:00
</a>
2018-08-29 15:18:15 +00:00
</li>
2018-09-04 14:51:04 +00:00
@permission('settings')
<li class="treeview">
2019-04-18 11:16:50 +00:00
<h2 class="pure-menu-heading">Settings <span class="fas fa-angle-down"></h2>
<ul class="pure-menu-list treeview-menu {{ Route::is('settings.*') ? 'menu-open' : '' }} style="display: none; {{ Route::is('settings.*') ? 'display: block;' : '' }}">
2020-03-06 14:39:05 +00:00
{{-- <li class="pure-menu-item {{ Route::is('settings.document*') ? 'active' : '' }}">
2018-09-04 14:51:04 +00:00
<a class="pure-menu-link" href="{{ route('settings.document') }}"><i class="fa fa-database"></i> Datasets</a>
2020-03-06 14:39:05 +00:00
</li> --}}
2018-10-04 14:41:29 +00:00
{{-- <li class="pure-menu-item {{ Route::is('settings.collection*') ? 'active' : '' }}">
2018-09-04 14:51:04 +00:00
<a class="pure-menu-link" href="{{ route('settings.collection') }}"><i class="fa fa-archive"></i> Collections</a>
2018-10-04 14:41:29 +00:00
</li> --}}
2019-04-23 11:30:22 +00:00
<li class="pure-menu-item {{ Route::is('settings.collectionrole*') ? 'active' : '' }}">
2018-10-04 14:41:29 +00:00
<a class="pure-menu-link" href="{{ route('settings.collectionrole.index') }}"><i class="fa fa-archive"></i> Collection Roles</a>
2018-09-04 14:51:04 +00:00
</li>
<li class="pure-menu-item {{ Route::is('settings.license*') ? 'active' : '' }}">
2019-04-18 11:16:50 +00:00
<a href="{{ route('settings.license') }}" class="pure-menu-link"><i class="fab fa-creative-commons"></i> Licenses</a>
2018-09-04 14:51:04 +00:00
</li>
<li class="pure-menu-item {{ Route::is('settings.person*') ? 'active' : '' }}">
2019-04-18 11:16:50 +00:00
<a href="{{ route('settings.person') }}" class="pure-menu-link"><i class="fas fa-users"></i> Persons</a>
2018-09-04 14:51:04 +00:00
</li>
<li class="pure-menu-item {{ Route::is('settings.project*') ? 'active' : '' }}">
<a class="pure-menu-link" href="{{ route('settings.project') }}"><i class="fa fa-tasks"></i> Projects</a>
</li>
2019-01-22 17:24:18 +00:00
2019-04-23 11:30:22 +00:00
<li class="pure-menu-item {{ Route::is('settings.mimetype*') ? 'active' : '' }}">
2019-04-18 11:16:50 +00:00
<a class="pure-menu-link" href="{{ route('settings.mimetype.index') }}"><i class="fas fa-file-code"></i> Mimetypes</a>
2019-01-22 17:24:18 +00:00
</li>
2018-10-18 14:51:46 +00:00
@permission('page')
2019-04-23 11:30:22 +00:00
<li class="pure-menu-item {{ Route::is('settings.page*') ? 'active' : '' }}">
2018-10-18 14:51:46 +00:00
<a class="pure-menu-link" href="{{ route('settings.page.index') }}">
2019-04-18 11:16:50 +00:00
<i class="fas fa-file-signature"></i>
2018-10-18 14:51:46 +00:00
<span>{{ trans('labels.backend.pages.title') }}</span>
</a>
</li>
@endpermission
2018-09-04 14:51:04 +00:00
</ul>
2018-08-29 15:18:15 +00:00
</li>
2018-09-04 14:51:04 +00:00
@endpermission
@role(array('administrator', 'editor', 'reviewer', 'submitter'))
2018-10-18 14:51:46 +00:00
<li class="treeview">
2018-09-04 14:51:04 +00:00
<h2 class="pure-menu-heading">Publish</h2>
<ul class="pure-menu-list">
@permission('dataset-submit')
2018-10-18 14:51:46 +00:00
<li class="pure-menu-item {{ Route::is('publish.dataset.create') ? 'active' : '' }}">
2019-04-18 11:16:50 +00:00
<a class="pure-menu-link" href="{{ URL::route('publish.dataset.create') }}"><i class="fas fa-plus-square"></i> Create</a>
2018-10-18 14:51:46 +00:00
</li>
2019-04-10 08:54:15 +00:00
@endpermission
@permission('dataset-list')
2019-04-23 11:30:22 +00:00
<li class="pure-menu-item {{ Route::is('publish.workflow.submit*') ? 'active' : '' }}">
<a class="pure-menu-link" href="{{ URL::route('publish.workflow.submit.index') }}"><i class="fas fa-list"></i> All my datasets</a>
2019-04-08 16:31:40 +00:00
</li>
2019-04-10 08:54:15 +00:00
@endpermission
@permission('dataset-editor-list')
2019-04-23 11:30:22 +00:00
<li class="pure-menu-item {{ Route::is('publish.workflow.editor*') ? 'active' : '' }}">
2019-04-18 11:16:50 +00:00
<a class="pure-menu-link" href="{{ URL::route('publish.workflow.editor.index') }}"><i class="fas fa-list"></i> EDITOR PAGE: Released datasets</a>
2019-04-11 16:52:10 +00:00
</li>
<li class="pure-menu-item {{ Route::is('publish.workflow.doi*') ? 'active' : '' }}">
<a class="pure-menu-link" href="{{ URL::route('publish.workflow.doi.index') }}"><i class="fas fa-list"></i> DOI UPDATE LIST</a>
</li>
2019-04-11 16:52:10 +00:00
@endpermission
@permission('dataset-review-list')
2019-04-23 11:30:22 +00:00
<li class="pure-menu-item {{ Route::is('publish.workflow.review*') ? 'active' : '' }}">
2019-04-18 11:16:50 +00:00
<a class="pure-menu-link" href="{{ URL::route('publish.workflow.review.index') }}"><i class="fas fa-list"></i> REVIEW PAGE: Approved datasets</a>
2019-04-08 16:31:40 +00:00
</li>
2019-04-10 08:54:15 +00:00
@endpermission
2019-05-28 17:02:21 +00:00
{{-- @permission('dataset-publish-list')
2019-04-23 11:30:22 +00:00
<li class="pure-menu-item {{ Route::is('publish.workflow.publish*') ? 'active' : '' }}">
2019-04-18 11:16:50 +00:00
<a class="pure-menu-link" href="{{ URL::route('publish.workflow.publish.index') }}"><i class="fas fa-list"></i> Publish PAGE: Reviewed datasets</a>
2019-04-17 17:02:00 +00:00
</li>
2019-05-28 17:02:21 +00:00
@endpermission --}}
2018-09-04 14:51:04 +00:00
</ul>
2018-08-29 15:18:15 +00:00
</li>
@endrole
2018-09-04 14:51:04 +00:00
2018-10-18 14:51:46 +00:00
2018-09-06 15:58:54 +00:00
2018-09-04 14:51:04 +00:00
<li class="treeview">
2018-09-06 15:58:54 +00:00
<h2 class="pure-menu-heading">
<span>{{ trans('menus.backend.access.title') }}</span>
<i class="fa fa-angle-down"></i>
</h2>
{{-- <a href="#">
<i class="fa fa-users"></i>
<span>{{ trans('menus.backend.access.title') }}</span>
<i class="fa fa-angle-left pull-right"></i>
</a> --}}
<ul class="pure-menu-list treeview-menu {{ Route::is('access.*') ? 'menu-open' : '' }}" style="display: none; {{ Route::is('access.*') ? 'display: block;' : '' }}">
2018-09-04 14:51:04 +00:00
@if (Auth::guest())
2018-09-04 15:15:56 +00:00
<li class="pure-menu-item {{ Route::currentRouteName() == 'login' ? 'active' : '' }}">
<a class="pure-menu-link" href="{{ route('login') }}">LOGIN</a>
2018-09-04 14:51:04 +00:00
</li>
@else
<li class="pure-menu-item {{ Route::is('access.user.edit') ? 'active' : '' }}">
<a class="pure-menu-link" href="{{ route('access.user.edit',['id'=>Auth::user()->id]) }}"><i class="fa fa-user"></i> EDIT</a>
</li>
2018-09-04 14:51:04 +00:00
@permission('settings')
<li class="pure-menu-item {{ Route::is('access.user.index') ? 'active' : '' }}">
2018-09-04 14:51:04 +00:00
<a class="pure-menu-link" href="{{route('access.user.index') }}"><i class="fa fa-users"></i> User Management</a>
</li>
<li class="pure-menu-item {{ Route::is('access.role.*') ? 'active' : '' }}">
<a class="pure-menu-link" href="{{route('access.role.index') }}"><i class="fa fa-key"></i> Role Management</a>
</li>
2018-09-04 14:51:04 +00:00
@endpermission
2019-04-23 11:30:22 +00:00
{{-- <li class="pure-menu-item">
<a class="pure-menu-link" href="{{ route('logout') }}"><i class="fas fa-sign-out-alt"></i> Logout</a>
</li> --}}
2018-09-04 14:51:04 +00:00
@endif
</ul>
2018-08-29 15:18:15 +00:00
</li>
2018-09-04 14:51:04 +00:00
2018-08-29 15:18:15 +00:00
</ul>
</nav>
2018-09-04 14:51:04 +00:00
2018-08-29 15:18:15 +00:00
</div>
<div id="main">
<div class="header">
<div class="pure-g">
2018-09-13 12:03:17 +00:00
<div class="pure-u-1-2">
2019-04-23 11:30:22 +00:00
{{--
<h1>Dashboard</h1> --}}
<section class="user-info">
<i class="fas fa-home"></i>
2019-04-29 08:36:30 +00:00
<a class=" pure-menu-linkab-item" aria-haspopup="true" href="{{ route('frontend.home.index') }}">
TETHYS
2019-04-23 11:30:22 +00:00
</a>
</section>
2018-09-13 12:03:17 +00:00
</div>
2018-08-29 15:18:15 +00:00
<div class="pure-u-1-2 text-right">
<section class="user-info">
@if(Auth::user())
{{-- <i class="fa fa-user"></i>
<a href="#" rel="User">{{ Auth::user()->login }}</a> --}}
<a href="{{ route('access.user.edit',['id'=>Auth::user()->id]) }}"><i class="fa fa-user"></i> {{ Auth::user()->login }}</a>
2018-08-29 15:18:15 +00:00
<span class="divider"></span>
2019-04-23 11:30:22 +00:00
<i class="fas fa-sign-out-alt"></i><a href="{{ route('logout') }}">Logout</a>
{{-- <span class="divider"></span> --}}
@else
<i class="fa fa-user"></i>
<a href="{{ route('login') }}">LOGIN</a>
2018-08-29 15:18:15 +00:00
@endif
2019-04-23 11:30:22 +00:00
{{-- <i class="fa fa-cog"></i> <a href="#" rel="User">Settings</a> --}}
2018-08-29 15:18:15 +00:00
</section>
</div>
</div>
</div>
<div class="content">
2018-09-06 15:58:54 +00:00
<section class="content-header">
@yield('page-header')
{{-- <div class="breadcrumb">
<i class="fa fa-home"></i><a href="#" rel="Dashboard">Dashboard</a>
<i class="fa fa-angle-right"></i><a href="#" rel="Dashboard">Sales</a>
</div> --}}
{{-- @yield('breadcrumbs') --}}
<!-- Breadcrumbs would render from routes/breadcrumb.php -->
@if(Breadcrumbs::exists())
{!! Breadcrumbs::render() !!}
@endif
</section>
<section class="l-box">
@include('partials.flash')
@yield('content')
</section>
2018-08-29 15:18:15 +00:00
</div>
</div>
</div>
2018-09-04 14:51:04 +00:00
<!-- JavaScripts -->
@yield('before-scripts')
2018-08-29 15:18:15 +00:00
<script type="text/javascript" src="{{ asset('js/lib.js') }}"></script>
<script type="text/javascript">
$('div.alert').not('alert-important');//.delay(3000).slideUp(300);
2018-11-29 10:58:00 +00:00
// A $( document ).ready() block.
$(document).ready(function() {
$(document).on("keydown", function (e) {
if (e.which === 8 && !$(e.target).is("input:not([type=radio]):not([type=checkbox]), textarea, [contentEditable], [contentEditable=true]")) {
e.preventDefault();
}
});
2018-11-29 10:58:00 +00:00
});
2018-08-29 15:18:15 +00:00
</script>
2018-09-06 15:58:54 +00:00
<script type="text/javascript" src="{{ asset('backend/functions.js') }}"></script>
2018-09-04 14:51:04 +00:00
@yield('after-scripts')
2018-08-29 15:18:15 +00:00
</div>
</body>
</html>