reset page converted to vue form

This commit is contained in:
batuhanbas
2019-12-28 18:21:31 +03:00
parent e5c4c01d69
commit 160e8eff8f
5 changed files with 26 additions and 38 deletions

View File

@ -1,54 +1,39 @@
@extends('layouts.auth')
@section('title', trans('auth.reset_password'))
@section('message', trans('auth.reset_password'))
@section('content')
<form role="form" method="POST" action="{{ route('reset.store') }}">
{{ csrf_field() }}
{!! Form::open([
'route' => 'reset.store',
'id' => 'reset',
'@submit.prevent' => 'onSubmit',
'@keydown' => 'form.errors.clear($event.target.name)',
'files' => true,
'role' => 'form',
'class' => 'form-loading-button',
'novalidate' => true
]) !!}
<input type="hidden" name="token" value="{{ $token }}">
@stack('email_input_start')
<div class="form-group has-feedback{{ $errors->has('email') ? ' has-error' : '' }}">
<input name="email" type="email" class="form-control" required autofocus>
<span class="glyphicon glyphicon-envelope form-control-feedback"></span>
@if ($errors->has('email'))
<span class="help-block">
<strong>{{ $errors->first('email') }}</strong>
</span>
@endif
</div>
{{ Form::emailGroup('email', false, 'envelope', ['placeholder' => trans('general.email')], null, 'has-feedback', 'input-group-alternative') }}
@stack('email_input_end')
@stack('password_input_start')
<div class="form-group has-feedback{{ $errors->has('password') ? ' has-error' : '' }}">
<input name="password" type="password" class="form-control" required>
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
@if ($errors->has('password'))
<span class="help-block">
<strong>{{ $errors->first('password') }}</strong>
</span>
@endif
</div>
{{ Form::passwordGroup('password', false, 'unlock-alt', ['placeholder' => trans('auth.password.new')], 'has-feedback', 'input-group-alternative') }}
@stack('password_input_end')
@stack('password_confirmation_input_start')
<div class="form-group has-feedback{{ $errors->has('password_confirmation') ? ' has-error' : '' }}">
<input name="password_confirmation" type="password" class="form-control" placeholder="{{ trans('auth.password.new_confirm') }}" required>
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
@if ($errors->has('password_confirmation'))
<span class="help-block">
<strong>{{ $errors->first('password_confirmation') }}</strong>
</span>
@endif
</div>
{{ Form::passwordGroup('password_confirmation', false, 'unlock-alt', ['placeholder' => trans('auth.password.new_confirm')], 'has-feedback', 'input-group-alternative') }}
@stack('password_confirmation_input_end')
<div class="row">
<div class="col-sm-offset-8 col-sm-4">
<button type="submit" class="btn btn-success btn-block btn-flat">{{ trans('auth.reset') }}</button>
<div class="col-xs-12 col-sm-12">
{!! Form::button(
'<div class="aka-loader"></div> <span>' . trans('auth.reset') . '</span>',
[':disabled' => 'form.loading', 'type' => 'submit', 'class' => 'btn btn-success header-button-top float-right', 'data-loading-text' => trans('general.loading')]) !!}
</div>
</div>
</form>
{!! Form::close() !!}
@endsection