{!! html()->label( 'Nom Base','nom') !!} @if($user->HasRole("ADMINISTRATEUR")) {!! html()->text('nom', ($mode!='create')?null:$nom_base)->placeholder("Nom")->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control']) !!} @else {!! html()->text('nom', ($mode!='create')?null:$nom_base)->placeholder("Nom")->attributes(['readonly', 'class' => 'form-control']) !!} @endif
{!! html()->label( 'Code','code') !!} {!! html()->text('code', null)->placeholder("")->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control']) !!}
{!! html()->label( 'Libelle','libelle') !!} {!! html()->text('libelle', null)->placeholder("")->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control']) !!}
{!! html()->label( 'Libelle Court','libelle_court') !!} {!! html()->text('libelle_court', null)->placeholder("")->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control']) !!}
{!! html()->label( 'Ordre','ordre') !!} {!! html()->text('ordre', null)->placeholder("")->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control']) !!}
@if($mode=="show") @if($user->hasRole("ADMINISTRATEUR")||$user->can("BAS_MAJ")) @if($base->id) Modifier @else Modifier @endif @endif {{ html()->form('DELETE', url('/zbases/'. $base->id))->open() }} {{ html()->form()->close() }} @else {!! html()->button('Enregistrer')->value('Enregistrer')->type('submit')->attributes(['class' => 'btn btn-primary']) !!} @endif Retour