2021-12-20 17:21:09 +01:00
< div class = " form-group " >
< label for = " name " > {{ __ ( 'Nom' ) }} *</ label >
< input type = " text " id = " title " name = " title " class = " form-control " placeholder = " { { __('Nom') }} * " value = " { { old('title', $gamme->title ?? '') }} " required >
@ include ( 'back.modules.input-error' , [ 'inputName' => 'title' ])
</ div >
2021-12-21 17:30:39 +01:00
< div class = " form-group mb-3 " >
2021-12-20 17:21:09 +01:00
< label for = " name " > {{ __ ( 'Texte' ) }} </ label >
< input type = " text " id = " text " name = " text " class = " form-control " placeholder = " { { __('Texte') }} * " value = " { { old('text', $gamme->text ?? '') }} " required >
@ include ( 'back.modules.input-error' , [ 'inputName' => 'text' ])
</ div >
< div class = " form-group " >
< label for = " picture " > {{ __ ( 'Vignette' ) }} < small class = " text-muted " >- JPEG / PNG , 1 Mo max . Dimensions {{ Config :: get ( 'bo.gamme_image_maxwidth' ) }} px par {{ Config :: get ( 'bo.gamme_image_maxheight' ) }} px </ small ></ label >< br />
2021-12-21 17:30:39 +01:00
< input type = " file " id = " picture " name = " picture " accept = " image/png, image/jpeg " >
2022-01-23 15:03:05 +01:00
@ if ( ! empty ( $gamme -> picture ))
2021-12-20 17:21:09 +01:00
< br />
< br />
2021-12-24 15:58:59 +01:00
< img src = " { { $gamme -> picture } } " alt = " { { $gamme -> alt_text_picture } } " style = " max-height: 100px; " >
2021-12-20 17:21:09 +01:00
@ endif
@ include ( 'back.modules.input-error' , [ 'inputName' => 'picture' ])
</ div >
2021-12-21 17:30:39 +01:00
< div class = " form-group mb-3 " >
2021-12-20 17:21:09 +01:00
< label for = " name " > {{ __ ( 'Text alternatif de la vignette' ) }} *</ label >
< input type = " text " id = " alt_text_picture " name = " alt_text_picture " class = " form-control " placeholder = " { { __('Texte alternatif de la vignette') }} * " value = " { { old('alt_text_picture', $gamme->alt_text_picture ?? '') }} " required >
@ include ( 'back.modules.input-error' , [ 'inputName' => 'alt_text_picture' ])
</ div >
< div class = " form-group " >
< label for = " banner " > {{ __ ( 'Bannière' ) }} < small class = " text-muted " >- JPEG / PNG , 2 Mo max . Dimensions {{ Config :: get ( 'bo.gamme_banner_maxwidth' ) }} px par {{ Config :: get ( 'bo.gamme_banner_maxheight' ) }} px </ small ></ label >< br />
2021-12-21 17:30:39 +01:00
< input type = " file " id = " banner " name = " banner " accept = " image/png, image/jpeg " >
2022-01-23 15:03:05 +01:00
@ if ( ! empty ( $gamme -> banner ))
2021-12-20 17:21:09 +01:00
< br />
< br />
2021-12-24 15:58:59 +01:00
< img src = " { { $gamme -> banner } } " alt = " { { $gamme -> alt_text_banner } } " style = " max-height: 100px; " >
2021-12-20 17:21:09 +01:00
@ endif
@ include ( 'back.modules.input-error' , [ 'inputName' => 'banner' ])
</ div >
2021-12-21 17:30:39 +01:00
< div class = " form-group mb-3 " >
2021-12-20 17:21:09 +01:00
< label for = " name " > {{ __ ( 'Text alternatif de la bannière' ) }} *</ label >
< input type = " text " id = " alt_text_banner " name = " alt_text_banner " class = " form-control " placeholder = " { { __('Texte alternatif de la bannière') }} * " value = " { { old('alt_text_banner', $gamme->alt_text_banner ?? '') }} " required >
@ include ( 'back.modules.input-error' , [ 'inputName' => 'alt_text_banner' ])
</ div >
2021-12-21 17:30:39 +01:00
< div class = " form-row mb-3 " >
2021-12-20 17:21:09 +01:00
< div class = " form-group col " >
2021-12-21 17:30:39 +01:00
< label for = " parent_gamme_id " > {{ __ ( 'Gamme parente' ) }} </ label >
< select class = " custom-select " id = " parent_gamme_id " name = " parent_gamme_id " >
2021-12-20 17:21:09 +01:00
< option value = " 0 " > Pas de parent </ option >
2021-12-21 17:30:39 +01:00
@ foreach ( $parentGammes as $parentGamme )
< option value = " { { $parentGamme -> id } } " @ if ( $parentGamme -> id === $gamme -> parent_gamme_id ) selected @ endif > {{ $parentGamme -> title }} </ option >
2021-12-20 17:21:09 +01:00
@ endforeach
</ select >
</ div >
< div class = " form-group col " ></ div >
< div class = " form-group col " ></ div >
< div class = " form-group col " ></ div >
2021-12-21 17:30:39 +01:00
@ include ( 'back.modules.input-error' , [ 'inputName' => 'parent_gamme_id' ])
2021-12-20 17:21:09 +01:00
</ div >
< div class = " form-group " >
2021-12-21 17:30:39 +01:00
< label for = " color " class = " form-label " > Couleur de la gamme </ label >
< input type = " color " class = " form-control form-control-color " name = " color " id = " color " value = " { { old('color', $gamme->color ?? '') }} " @ if ( $gamme -> parent_gamme_id != null ) disabled @ endif title = " Choisissez la couleur " >
@ include ( 'back.modules.input-error' , [ 'inputName' => 'color' ])
2021-12-20 17:21:09 +01:00
</ div >