{!! html()->label( "Date de saisie",'date_saisie') !!}
{!! html()->text('date_saisie', null)->placeholder('')->attributes([($mode=="show"?'disabled':''),'class' => 'form-control','style' => 'text-align:center']) !!}
{!! html()->label('Projet','projet') !!} {!! html()->select('projet',App\Models\MyApp::getZBase("PROJETS_VIE"),null)->placeholder('Non défini') ->attributes([($mode=="show"?'disabled':''),'class' => 'form-control','id' => 'select_projet']) !!}
{!! html()->label( 'Délais','delais') !!} {!! html()->select('delais',App\Models\MyApp::PROJET_DELAIS,null) ->placeholder('A définir') ->attributes(['id' => 'delais',($mode=="show")?'disabled':'','class' => 'form-control']) !!}
{!! html()->label( 'Périodicité','periodicite') !!} {!! html()->select('periodicite',App\Models\MyApp::PROJET_PERIODICITE,null) ->placeholder('A définir') ->attributes(['id' => 'periodicite',($mode=="show")?'disabled':'','class' => 'form-control']) !!}
{!! html()->label( "Type d'Aide",'type_aide') !!} {!! html()->select('type_aide',App\Models\MyApp::PROJET_TYPE_AIDE,null) ->placeholder('A définir') ->attributes(['id' => 'type_aide',($mode=="show")?'disabled':'','class' => 'form-control']) !!}
{!! html()->label( 'Observations','observations') !!} {!! html()->textarea('observations', null) ->placeholder('') ->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control', 'rows'=>'2']) !!}
@if($mode=="show") @if($user->hasRole("ADMINISTRATEUR") || $user->can("AEQ_MAJ")) @if($mode_frame) Modifier @else Modifier @endif @endif @if($mode_frame) Supprimer @else {{ html()->form('DELETE', url('/allocataires_projets/'. $allocataire_projet->id))->open() }} {{ html()->form()->close() }} @endif @else {!! html()->button('Enregistrer')->value('Enregistrer')->type('submit')->attributes(['class' => 'btn btn-primary']) !!} @endif @if(!$mode_frame) Retour @endif