flexisip-account-manager/flexiapi/resources/views/account/email.blade.php
Timothée Jaussoin fc96338bfb Redesign the UI
2023-06-09 08:24:49 +00:00

28 lines
No EOL
879 B
PHP

@extends('layouts.main')
@section('content')
<h2>Change my account email address</h2>
@if (!empty($account->email))
<p>Currently: {{ $account->email }}</p>
@else
<p>No email yet</p>
@endif
{!! Form::open(['route' => 'account.email.request_update']) !!}
<div class="form-group">
{!! Form::email('email', old('email'), ['class' => 'form-control', 'placeholder' => 'bob@example.net', 'required']) !!}
{!! Form::label('email', 'New email') !!}
</div>
<div class="form-group">
{!! Form::email('email_confirmation', old('email_confirm'), ['class' => 'form-control', 'placeholder' => 'bob@example.net', 'required']) !!}
{!! Form::label('email_confirmation', 'Email confirmation') !!}
</div>
{!! Form::hidden('email_current', $account->email) !!}
{!! Form::submit('Change', ['class' => 'btn btn-primary btn-centered']) !!}
{!! Form::close() !!}
@endsection