mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-28 23:19:42 -08:00
77 lines
3 KiB
PHP
Executable file
77 lines
3 KiB
PHP
Executable file
@extends('layouts/default')
|
|
|
|
{{-- Page title --}}
|
|
@section('title')
|
|
Change your Email
|
|
@stop
|
|
|
|
{{-- Account page content --}}
|
|
@section('content')
|
|
<div class="row header">
|
|
|
|
<div class="col-md-12">
|
|
<h3>{{ trans('general.changeemail') }}</h3>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row form-wrapper">
|
|
@if (config('app.lock_passwords') && ($user->id))
|
|
<p class="help-block">{{ trans('admin/users/table.lock_passwords') }}</p>
|
|
@endif
|
|
|
|
|
|
<form method="post" action="" class="form-horizontal" autocomplete="off">
|
|
<!-- CSRF Token -->
|
|
<input type="hidden" name="_token" value="{{ csrf_token() }}" />
|
|
|
|
<!-- Form type -->
|
|
<input type="hidden" name="formType" value="change-email" />
|
|
|
|
<!-- New Email -->
|
|
<div class="form-group {{ $errors->has('email') ? ' has-error' : '' }}">
|
|
<label for="email" class="col-md-2 control-label">New Email
|
|
<i class='fa fa-asterisk'></i>
|
|
</label>
|
|
<div class="col-md-5">
|
|
<input class="form-control" type="email" name="email" id="email" value="{{ Input::old('email', $user->email) }}" {{ ((config('app.lock_passwords') && ($user->id)) ? ' disabled' : '') }}>
|
|
{!! $errors->first('email', '<span class="alert-msg"><i class="fa fa-times"></i> :message</span>') !!}
|
|
</div>
|
|
</div>
|
|
<!-- Confirm New Email -->
|
|
<div class="form-group {{ $errors->has('email_confirm') ? ' has-error' : '' }}">
|
|
<label for="email_confirm" class="col-md-2 control-label">Confirm New Email
|
|
<i class='fa fa-asterisk'></i>
|
|
</label>
|
|
<div class="col-md-5">
|
|
<input class="form-control" type="email" name="email_confirm" id="email_confirm" {{ ((config('app.lock_passwords') && ($user->id)) ? ' disabled' : '') }}>
|
|
{!! $errors->first('email_confirm', '<span class="alert-msg"><i class="fa fa-times"></i> :message</span>') !!}
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Current Password -->
|
|
<div class="form-group {{ $errors->has('current_password') ? ' has-error' : '' }}">
|
|
<label for="current_password" class="col-md-2 control-label">Current Password
|
|
<i class='fa fa-asterisk'></i>
|
|
</label>
|
|
<div class="col-md-5">
|
|
<input class="form-control" type="password" name="current_password" id="current_password" {{ ((config('app.lock_passwords') && ($user->id)) ? ' disabled' : '') }}>
|
|
{!! $errors->first('current_password', '<span class="alert-msg"><i class="fa fa-times"></i> :message</span>') !!}
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<hr>
|
|
<!-- Form actions -->
|
|
<div class="form-group">
|
|
<label class="col-md-2 control-label"></label>
|
|
<div class="col-md-7">
|
|
<a class="btn btn-link" href="{{ route('view-assets') }}">{{ trans('button.cancel') }}</a>
|
|
<button type="submit" class="btn btn-success" {{ ((config('app.lock_passwords') && ($user->id)) ? ' disabled' : '') }}><i class="fa fa-check icon-white"></i> {{ trans('general.save') }}</button>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
</form>
|
|
@stop
|