@section('css') @parent @stop @section('js') @parent {!! Html::script("js/form.js") !!} @stop {!! Form::open(array('action' => 'FormulaireController@send', 'id' => 'form-' . $formulaire->id, 'onsubmit' => 'return check()')) !!} {!! Form::hidden("formulaire_id", $formulaire->id) !!} @foreach($formulaire->champs as $champs) @if($champs->type != 2)
class }} @endif @if( strstr(generateFieldClass($champs->id), 'email')) champemail @endif"> @if($champs->label)
{!! Form::label("champs_" . $champs->id, $champs->nom) !!} @if($champs->requis == 1) * @endif
@endif
@if($champs->type == 0) @if( strstr(generateFieldClass($champs->id), "email")) {!! Form::email("champs_" . $champs->id, null, array('class' => generateFieldClass($champs->id), 'placeholder' => $champs->placeholder ? $champs->nom : "")) !!} @else {!! Form::text("champs_" . $champs->id, null, array('class' => generateFieldClass($champs->id), 'placeholder' => $champs->placeholder ? $champs->nom : "")) !!} @endif @endif @if($champs->type == 1) {!! Form::textarea("champs_" . $champs->id, null, array('class' => generateFieldClass($champs->id), 'placeholder' => $champs->placeholder ? $champs->nom : "")) !!} @endif @if($champs->type == 3) {!! Form::select("champs_" . $champs->id, generateChampsSelect($champs->liste_selection), null, array('class' => generateFieldClass($champs->id))) !!} @endif @if($champs->type == 4) @foreach(generateChampsSelect($champs->liste_selection) as $selection) {!! Form::radio("champs_" . $champs->id, $selection, false, array('class' => generateFieldClass($champs->id))) !!} {!! Form::label("champs_" . $champs->id, $selection) !!} @endforeach @endif
@endif @if($champs->type == 2)
class }} @endif"> {!! Form::checkbox("champs_" . $champs->id, 1, false, array('id' => "champs_" . $champs->id, 'class' => 'optin_check '.generateFieldClass($champs->id))) !!} {!! Form::label("champs_" . $champs->id, $champs->nom, array('class' => 'accept ')) !!} @if($champs->requis == 1) * @endif
@endif @endforeach {!! Recaptcha::render() !!}
{!! Form::submit(trans('coral.Soumettre'), array("role" => "button", "class" => "btn btn-primary")) !!}
{!! Form::close() !!}