@extends('base') @section('title') Envoi d'un e-mail @stop @section('back_links')

Retour à la page précédente

@stop @section('content') @if (Session::has('success_message')) @include('subviews.flashMessages') @else
{{ Form::open(array('url' => "", 'class' => 'obfuscated-form', 'data-action-url' => URL::route('personal_email_submit', array('contact_type' => $contact_type, 'member_id' => $member ? $member->id : ($section ? $section->id : 0))))) }} @if ($contact_type == PersonalEmailController::$CONTACT_TYPE_PARENTS)

Envoyer un e-mail aux parents de {{{ $member->first_name }}} {{{ $member->last_name }}}

@elseif ($contact_type == PersonalEmailController::$CONTACT_TYPE_PERSONAL)

Envoyer un e-mail à {{{ $member->first_name }}} {{{ $member->last_name }}} ({{{ $member->leader_name }}})

@elseif ($contact_type == PersonalEmailController::$CONTACT_TYPE_ARCHIVED_LEADER)

Envoyer un e-mail à {{{ $member->first_name }}} {{{ $member->last_name }}} ({{{ $member->leader_name }}} en {{{ $member->year }}})

@elseif ($contact_type == PersonalEmailController::$CONTACT_TYPE_SECTION)

Envoyer un e-mail aux animateurs {{{ $section->de_la_section }}}

@elseif ($contact_type == PersonalEmailController::$CONTACT_TYPE_WEBMASTER)

Envoyer un e-mail au webmaster

@endif
@include('subviews.flashMessages')
{{ Form::label('subject', "Sujet", array('class' => 'control-label col-md-3')) }}
{{ Form::text('subject', null, array('class' => 'form-control')) }}
{{ Form::label('body', "Message", array('class' => 'control-label col-md-3')) }}
{{ Form::textarea('body', null, array('class' => 'form-control', 'rows' => 10)) }}
{{ Form::label('sender_name', "Votre nom", array('class' => 'control-label col-md-3')) }}
{{ Form::text('sender_name', null, array('class' => 'form-control')) }}
{{ Form::label('sender_email', "Votre adresse e-mail", array('class' => 'control-label col-md-3')) }}
{{ Form::text('sender_email', null, array('class' => 'form-control')) }}

Votre adresse e-mail sera révélée au destinataire.

{{ Form::submit('Activez le javascript pour soumettre', array('class' => "btn btn-primary", 'data-text' => 'Envoyer', 'disabled')) }}
{{ Form::close() }}
@endif @stop