Последняя версия с сервера прошлого разработчика
This commit is contained in:
31
nova/resources/views/auth/layout.blade.php
Executable file
31
nova/resources/views/auth/layout.blade.php
Executable file
@@ -0,0 +1,31 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" class="h-full font-sans antialiased">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
|
||||
<title>{{ \Laravel\Nova\Nova::name() }}</title>
|
||||
|
||||
<!-- Fonts -->
|
||||
<link href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,800,800i,900,900i" rel="stylesheet">
|
||||
|
||||
<!-- Styles -->
|
||||
<link rel="stylesheet" href="{{ mix('app.css', 'vendor/nova') }}">
|
||||
|
||||
<!-- Custom Meta Data -->
|
||||
@include('nova::partials.meta')
|
||||
|
||||
<!-- Theme Styles -->
|
||||
@foreach(\Laravel\Nova\Nova::themeStyles() as $publicPath)
|
||||
<link rel="stylesheet" href="{{ $publicPath }}">
|
||||
@endforeach
|
||||
</head>
|
||||
<body class="bg-40 text-black h-full">
|
||||
<div class="h-full">
|
||||
<div class="px-view py-view mx-auto">
|
||||
@yield('content')
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
58
nova/resources/views/auth/login.blade.php
Executable file
58
nova/resources/views/auth/login.blade.php
Executable file
@@ -0,0 +1,58 @@
|
||||
@extends('nova::auth.layout')
|
||||
|
||||
@section('content')
|
||||
|
||||
@include('nova::auth.partials.header')
|
||||
|
||||
<form
|
||||
class="bg-white shadow rounded-lg p-8 max-w-login mx-auto"
|
||||
method="POST"
|
||||
action="{{ route('nova.login') }}"
|
||||
>
|
||||
{{ csrf_field() }}
|
||||
|
||||
@component('nova::auth.partials.heading')
|
||||
{{ __('Welcome Back!') }}
|
||||
@endcomponent
|
||||
|
||||
@if ($errors->any())
|
||||
<p class="text-center font-semibold text-danger my-3">
|
||||
@if ($errors->has('email'))
|
||||
{{ $errors->first('email') }}
|
||||
@else
|
||||
{{ $errors->first('password') }}
|
||||
@endif
|
||||
</p>
|
||||
@endif
|
||||
|
||||
<div class="mb-6 {{ $errors->has('email') ? ' has-error' : '' }}">
|
||||
<label class="block font-bold mb-2" for="email">{{ __('Email Address') }}</label>
|
||||
<input class="form-control form-input form-input-bordered w-full" id="email" type="email" name="email" value="{{ old('email') }}" required autofocus>
|
||||
</div>
|
||||
|
||||
<div class="mb-6 {{ $errors->has('password') ? ' has-error' : '' }}">
|
||||
<label class="block font-bold mb-2" for="password">{{ __('Password') }}</label>
|
||||
<input class="form-control form-input form-input-bordered w-full" id="password" type="password" name="password" required>
|
||||
</div>
|
||||
|
||||
<div class="flex mb-6">
|
||||
<label class="flex items-center block text-xl font-bold">
|
||||
<input class="" type="checkbox" name="remember" {{ old('remember') ? 'checked' : '' }}>
|
||||
<span class="text-base ml-2">{{ __('Remember Me') }}</span>
|
||||
</label>
|
||||
|
||||
|
||||
@if (\Laravel\Nova\Nova::resetsPasswords())
|
||||
<div class="ml-auto">
|
||||
<a class="text-primary dim font-bold no-underline" href="{{ route('nova.password.request') }}">
|
||||
{{ __('Forgot Your Password?') }}
|
||||
</a>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<button class="w-full btn btn-default btn-primary hover:bg-primary-dark" type="submit">
|
||||
{{ __('Login') }}
|
||||
</button>
|
||||
</form>
|
||||
@endsection
|
||||
9
nova/resources/views/auth/partials/errors.blade.php
Executable file
9
nova/resources/views/auth/partials/errors.blade.php
Executable file
@@ -0,0 +1,9 @@
|
||||
@if ($errors->any())
|
||||
<p class="text-center font-semibold text-danger my-3">
|
||||
@if ($errors->has('email'))
|
||||
{{ $errors->first('email') }}
|
||||
@else
|
||||
{{ $errors->first('password') }}
|
||||
@endif
|
||||
</p>
|
||||
@endif
|
||||
3
nova/resources/views/auth/partials/header.blade.php
Executable file
3
nova/resources/views/auth/partials/header.blade.php
Executable file
@@ -0,0 +1,3 @@
|
||||
<div class="mx-auto py-8 max-w-sm text-center text-90">
|
||||
@include('nova::auth.partials.logo')
|
||||
</div>
|
||||
4
nova/resources/views/auth/partials/heading.blade.php
Executable file
4
nova/resources/views/auth/partials/heading.blade.php
Executable file
@@ -0,0 +1,4 @@
|
||||
<h2 class="text-2xl text-center font-normal mb-6 text-90">{{ $slot }}</h2>
|
||||
<svg class="block mx-auto mb-6" xmlns="http://www.w3.org/2000/svg" width="100" height="2" viewBox="0 0 100 2">
|
||||
<path fill="#D8E3EC" d="M0 0h100v2H0z"/>
|
||||
</svg>
|
||||
1
nova/resources/views/auth/partials/logo.blade.php
Executable file
1
nova/resources/views/auth/partials/logo.blade.php
Executable file
@@ -0,0 +1 @@
|
||||
@include('nova::partials.logo', ['width' => '200', 'height' => '39'])
|
||||
35
nova/resources/views/auth/passwords/email.blade.php
Executable file
35
nova/resources/views/auth/passwords/email.blade.php
Executable file
@@ -0,0 +1,35 @@
|
||||
@extends('nova::auth.layout')
|
||||
|
||||
@section('content')
|
||||
|
||||
@include('nova::auth.partials.header')
|
||||
|
||||
<form
|
||||
class="bg-white shadow rounded-lg p-8 max-w-login mx-auto"
|
||||
method="POST"
|
||||
action="{{ route('nova.password.email') }}"
|
||||
>
|
||||
{{ csrf_field() }}
|
||||
|
||||
@component('nova::auth.partials.heading')
|
||||
{{ __('Forgot your password?') }}
|
||||
@endcomponent
|
||||
|
||||
@if (session('status'))
|
||||
<div class="text-success text-center font-semibold my-3">
|
||||
{{ session('status') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@include('nova::auth.partials.errors')
|
||||
|
||||
<div class="mb-6 {{ $errors->has('email') ? ' has-error' : '' }}">
|
||||
<label class="block font-bold mb-2" for="email">{{ __('Email Address') }}</label>
|
||||
<input class="form-control form-input form-input-bordered w-full" id="email" type="email" name="email" value="{{ old('email') }}" required>
|
||||
</div>
|
||||
|
||||
<button class="w-full btn btn-default btn-primary hover:bg-primary-dark" type="submit">
|
||||
{{ __('Send Password Reset Link') }}
|
||||
</button>
|
||||
</form>
|
||||
@endsection
|
||||
41
nova/resources/views/auth/passwords/reset.blade.php
Executable file
41
nova/resources/views/auth/passwords/reset.blade.php
Executable file
@@ -0,0 +1,41 @@
|
||||
@extends('nova::auth.layout')
|
||||
|
||||
@section('content')
|
||||
|
||||
@include('nova::auth.partials.header')
|
||||
|
||||
<form
|
||||
class="bg-white shadow rounded-lg p-8 max-w-login mx-auto"
|
||||
method="POST"
|
||||
action="{{ route('nova.password.request') }}"
|
||||
>
|
||||
{{ csrf_field() }}
|
||||
|
||||
@component('nova::auth.partials.heading')
|
||||
{{ __('Reset Password') }}
|
||||
@endcomponent
|
||||
|
||||
@include('nova::auth.partials.errors')
|
||||
|
||||
<input type="hidden" name="token" value="{{ $token }}">
|
||||
|
||||
<div class="mb-6 {{ $errors->has('email') ? ' has-error' : '' }}">
|
||||
<label class="block font-bold mb-2" for="email">{{ __('Email Address') }}</label>
|
||||
<input class="form-control form-input form-input-bordered w-full" id="email" type="email" name="email" value="{{ $email ?? old('email') }}" required autofocus>
|
||||
</div>
|
||||
|
||||
<div class="mb-6 {{ $errors->has('password') ? ' has-error' : '' }}">
|
||||
<label class="block font-bold mb-2" for="password">{{ __('Password') }}</label>
|
||||
<input class="form-control form-input form-input-bordered w-full" id="password" type="password" name="password" required>
|
||||
</div>
|
||||
|
||||
<div class="mb-6 {{ $errors->has('password_confirmation') ? ' has-error' : '' }}">
|
||||
<label class="block font-bold mb-2" for="password-confirm">{{ __('Confirm Password') }}</label>
|
||||
<input class="form-control form-input form-input-bordered w-full" id="password-confirm" type="password" name="password_confirmation" required>
|
||||
</div>
|
||||
|
||||
<button class="w-full btn btn-default btn-primary hover:bg-primary-dark" type="submit">
|
||||
{{ __('Reset Password') }}
|
||||
</button>
|
||||
</form>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user