@extends('base') @section('title') @if ($action == 'email') Changer mon adresse e-mail @elseif ($action == 'password') Changer mon mot de passe @elseif ($action == 'section') Changer ma section par défaut @else Mon compte d'utilisateur @endif @stop @section('head') @stop @section('content') @if (Session::has('success_message'))

{{ Session::get('success_message') }}

@endif
Vos données personnelles

{{{ $user->username }}}

{{{ $user->email }}}

******

{{{ $user->getDefaultSection()->name }}}

@if ($action)
@if ($action == 'email') Modification de l'adresse e-mail @elseif ($action == 'password') Modification du mot de passe @elseif ($action == 'section') Modification de la section par défaut @endif {{ Form::open(array('class' => 'form-horizontal')) }} @if ($action != 'section')
{{ Form::label('old_password', "Mot de passe actuel", array('class' => "col-md-2 control-label")) }}
{{ Form::password('old_password', array('class' => 'form-control')) }}
@if ($errors->first('old_password'))

{{ $errors->first('old_password') }}

@endif @endif @if ($action == 'email')
{{ Form::label('email', "Nouvelle adresse", array('class' => "col-md-2 control-label")) }}
{{ Form::text('email', '', array('class' => 'form-control')) }}
@if ($errors->first('email'))

{{ $errors->first('email') }}

@endif @elseif ($action == 'password')
{{ Form::label('password', "Mot de passe désiré", array('class' => "col-md-2 control-label")) }}
{{ Form::password('password', array('class' => 'form-control')) }}
@if ($errors->first('password'))

{{ $errors->first('password') }}

@endif @elseif ($action == 'section')
{{ Form::label('default_section', "Section par défaut", array('class' => "col-md-2 control-label")) }}
{{ Form::select('default_section', $sections, $user->default_section, array('class' => 'form-control')) }}
@endif
{{ Form::submit('Valider', array('class' => "btn btn-primary")) }}
{{ Form::close() }}
@endif @stop