File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed
src/bundle/Resources/views/themes/admin/section Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 1818 {{ form_start(form_section_create ) }}
1919 <div class =" card ibexa-card ibexa-card--light" >
2020 <div class =" card-body ibexa-card__body ibexa-form-block" >
21- {{ form_row(form_section_create .name , { row_attr : { class : ' ibexa-form-field' }, attr : {' autofocus' : ' autofocus' } }) }}
22- {{ form_row(form_section_create .identifier , { row_attr : { class : ' ibexa-form-field' } }) }}
21+ {{ form_row(form_section_create .name , {
22+ row_attr : { class : ' ibexa-form-field' },
23+ attr : {
24+ ' autofocus' : ' autofocus' ,
25+ ' data-autogenerate-identifier-target-selector' : ' #section_create_identifier'
26+ }
27+ }) }}
28+ {{ form_row(form_section_create .identifier , {
29+ row_attr : { class : ' ibexa-form-field' }
30+ }) }}
2331 </div >
2432 </div >
2533 {{ form_widget(form_section_create .create , {' attr' : {' hidden' : ' hidden' }}) }}
Original file line number Diff line number Diff line change 1919 <section >
2020 <div class =" card ibexa-card ibexa-card--light" >
2121 <div class =" card-body ibexa-card__body ibexa-form-block" >
22- {{ form_row(form_section_update .name , { row_attr : { class : ' ibexa-form-field' } }) }}
23- {{ form_row(form_section_update .identifier , { row_attr : { class : ' ibexa-form-field' } }) }}
22+ {{ form_row(form_section_update .name , {
23+ row_attr : { class : ' ibexa-form-field' },
24+ attr : { ' data-autogenerate-identifier-target-selector' : ' #' ~ form_section_update .identifier .vars .id }
25+ }) }}
26+ {{ form_row(form_section_update .identifier , {
27+ row_attr : { class : ' ibexa-form-field' }
28+ }) }}
2429 </div >
2530 </div >
2631 </section >
You can’t perform that action at this time.
0 commit comments