snipe-it/resources/views/auth/login.blade.php

94 lines
5 KiB
PHP
Raw Normal View History

2016-03-25 01:18:05 -07:00
@extends('layouts/basic')
{{-- Page content --}}
@section('content')
<form role="form" action="{{ url('/login') }}" method="POST" autocomplete="false">
2016-10-31 13:25:50 -07:00
<input type="hidden" name="_token" value="{{ csrf_token() }}" />
<!-- this is a hack to prevent Chrome from trying to autocomplete fields -->
2020-03-27 15:35:29 -07:00
<input type="text" name="prevent_autofill" id="prevent_autofill" value="" style="display:none;" aria-hidden="true">
<input type="password" name="password_fake" id="password_fake" value="" style="display:none;" aria-hidden="true">
2016-10-29 06:45:24 -07:00
<div class="container">
<div class="row">
<div class="col-md-4 col-md-offset-4">
<div class="box login-box">
<div class="box-header with-border">
2020-03-27 15:35:29 -07:00
<h1 class="box-title"> {{ trans('auth/general.login_prompt') }}</h1>
2016-10-29 06:45:24 -07:00
</div>
<div class="login-box-body">
<div class="row">
2017-07-07 19:54:10 -07:00
@if ($snipeSettings->login_note)
<div class="col-md-12">
<div class="alert alert-info">
{!! Parsedown::instance()->text(e($snipeSettings->login_note)) !!}
</div>
</div>
@endif
2016-10-29 06:45:24 -07:00
<!-- Notifications -->
@include('notifications')
<div class="col-md-12">
<!-- CSRF Token -->
2016-10-31 13:25:50 -07:00
2016-10-29 06:45:24 -07:00
<fieldset>
2020-04-01 04:29:35 -07:00
2016-10-29 06:45:24 -07:00
<div class="form-group{{ $errors->has('username') ? ' has-error' : '' }}">
<label for="username"><i class="fa fa-user" aria-hidden="true"></i> {{ trans('admin/users/table.username') }}</label>
2020-03-27 15:35:29 -07:00
<input class="form-control" placeholder="{{ trans('admin/users/table.username') }}" name="username" type="text" id="username" autocomplete="off" autofocus>
2020-04-01 03:21:15 -07:00
{!! $errors->first('username', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!}
2016-10-29 06:45:24 -07:00
</div>
<div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}">
<label for="password"><i class="fa fa-key" aria-hidden="true"></i> {{ trans('admin/users/table.password') }}</label>
2020-03-27 15:35:29 -07:00
<input class="form-control" placeholder="{{ trans('admin/users/table.password') }}" name="password" type="password" id="password" autocomplete="off">
2020-04-01 03:21:15 -07:00
{!! $errors->first('password', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!}
2016-10-29 06:45:24 -07:00
</div>
<div class="checkbox">
<label style="margin-left: -20px;">
<input name="remember" type="checkbox" value="1" class="minimal"> {{ trans('auth/general.remember_me') }}
2016-10-29 06:45:24 -07:00
</label>
</div>
</fieldset>
</div> <!-- end col-md-12 -->
</div> <!-- end row -->
2020-05-05 07:06:19 -07:00
@if ($snipeSettings->saml_enabled)
<div class="row ">
<div class="col-md-12 text-right">
<a href="{{ route('saml.login') }}">{{ trans('auth/general.saml_login') }}</a>
</div>
</div>
@endif
2016-10-29 06:45:24 -07:00
</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
2016-10-29 06:45:24 -07:00
</div>
</div> <!-- end login box -->
</div> <!-- col-md-4 -->
</div> <!-- end row -->
</div> <!-- end container -->
</form>
2016-03-25 01:18:05 -07:00
@stop