@extends('layouts.master') @section('title') Mise à jour d'une Imputation @stop @section('content')
@if ($errors) @foreach ($errors->all() as $error)
{!! $error !!}
@endforeach @endif

Mise à jour d'une Imputation

{!! Form::model($imputation, ['imputation' => 'form' , 'url' => '/mandatements/imputations/'. $imputation->id, 'method' => 'PUT', 'class' => 'form-horizontal']) !!} {!! Form::hidden('mode_frame',(isset($mandat)?true:false),['id'=>'mode_frame']); !!}
{!! Form::label('cpt_imp', 'Compte Imputation') !!} {!! Form::select( 'cpt_imp',$comptes, null, ['class' => 'selectpicker','data-width' => "100%"] ) !!}
{!! Form::label('designation', 'Désignation') !!} {!! Form::textarea('designation', $imputation->designation, ['placeholder' => "désignation", 'rows' => '2', 'class' => 'form-control']) !!}
{!! Form::label('idmandat', 'Numéro de mandat') !!} {!! Form::text('idmandat', $imputation->idmandat, ['placeholder' => "Numéro de mandat", 'class' => 'form-control',(isset($mandat)?'readonly':'')]) !!}
{!! Form::label('type_imp', 'Type') !!} {!! Form::select( 'type_imp', ['CLR'=>'CLR','CPF' => 'CPF','ASE' => 'ASE','AVI' => 'AVI','CSR' => 'CSR'], $imputation->type_imp, ['class' => 'selectpicker','data-width' => "100%"] ) !!}
{!! Form::label('montant', 'Montant') !!} {!! Form::text('montant', $imputation->montant, ['placeholder' => "Montant", 'class' => 'form-control']) !!}
{!! Form::label('obs', 'Observations') !!} {!! Form::textarea('obs', null, ['placeholder' => 'Observations', 'class' => 'form-control', 'rows'=>'2']) !!}

{!! Form::submit('Enregistrer les modifications', ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!}
@stop