mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-19 20:14:09 -08:00
83 lines
4.1 KiB
PHP
Executable file
83 lines
4.1 KiB
PHP
Executable file
@extends('layouts/basic')
|
|
|
|
|
|
{{-- Page content --}}
|
|
@section('content')
|
|
|
|
<form role="form" action="{{ url('/login') }}" method="POST" autocomplete="false">
|
|
<input type="hidden" name="_token" value="{{ csrf_token() }}" />
|
|
|
|
<!-- this is a hack to prevent Chrome from trying to autocomplete fields -->
|
|
<input type="text" name="prevent_autofill" id="prevent_autofill" value="" style="display:none;" />
|
|
<input type="password" name="password_fake" id="password_fake" value="" style="display:none;" />
|
|
|
|
<div class="container">
|
|
<div class="row">
|
|
|
|
<div class="col-md-4 col-md-offset-4">
|
|
|
|
<div class="box login-box">
|
|
<div class="box-header">
|
|
<h3 class="box-title"> {{ trans('auth/general.login_prompt') }}</h3>
|
|
</div>
|
|
|
|
|
|
<div class="login-box-body">
|
|
<div class="row">
|
|
|
|
@if ($snipeSettings->login_note)
|
|
<div class="col-md-12">
|
|
<div class="alert alert-info">
|
|
{!! Parsedown::instance()->text(e($snipeSettings->login_note)) !!}
|
|
</div>
|
|
</div>
|
|
@endif
|
|
|
|
<!-- Notifications -->
|
|
@include('notifications')
|
|
|
|
<div class="col-md-12">
|
|
<!-- CSRF Token -->
|
|
|
|
|
|
<fieldset>
|
|
<div class="form-group{{ $errors->has('username') ? ' has-error' : '' }}">
|
|
<input class="form-control" placeholder="{{ trans('admin/users/table.username') }}" name="username" type="text" autocomplete="off" autofocus>
|
|
{!! $errors->first('username', '<span class="alert-msg"><i class="fa fa-times"></i> :message</span>') !!}
|
|
</div>
|
|
<div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}">
|
|
<input class="form-control" placeholder="{{ trans('admin/users/table.password') }}" name="password" type="password" autocomplete="off">
|
|
{!! $errors->first('password', '<span class="alert-msg"><i class="fa fa-times"></i> :message</span>') !!}
|
|
</div>
|
|
<div class="checkbox">
|
|
<label>
|
|
<input name="remember" type="checkbox" value="1">{{ trans('auth/general.remember_me') }}
|
|
</label>
|
|
</div>
|
|
</fieldset>
|
|
</div> <!-- end col-md-12 -->
|
|
|
|
</div> <!-- end row -->
|
|
</div>
|
|
<div class="box-footer">
|
|
<button class="btn btn-lg btn-primary btn-block">{{ trans('auth/general.login') }}</button>
|
|
</div>
|
|
<div class="col-md-12 col-sm-12 col-xs-12 text-right" style="padding-top: 10px;">
|
|
@if ($snipeSettings->custom_forgot_pass_url)
|
|
<a href="{{ $snipeSettings->custom_forgot_pass_url }}" rel="noopener">{{ trans('auth/general.forgot_password') }}</a>
|
|
@else
|
|
<a href="{{ route('password.request') }}">{{ trans('auth/general.forgot_password') }}</a>
|
|
@endif
|
|
|
|
|
|
</div>
|
|
</div> <!-- end login box -->
|
|
|
|
</div> <!-- col-md-4 -->
|
|
|
|
</div> <!-- end row -->
|
|
</div> <!-- end container -->
|
|
</form>
|
|
|
|
@stop
|