File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9191 ' leafletMapTileUrl' : ' {{ leaflet_map_tile_url }}' ,
9292 ' defaultMapLocation' : {{ maps_default_location| raw }},
9393 ' messages' : {
94+ ' close' : ' {{ ' close' |trans|trim|escape }}' ,
9495 ' login' : ' {{ ' login' |trans|trim|escape }}' ,
9596 ' sessionExpireTitle' : ' {{ ' session .expire .title ' |trans|trim|escape }}' ,
9697 ' sessionExpireContent' : ' {{ ' session .expire .content ' |trans|trim|escape }}' ,
Original file line number Diff line number Diff line change 1414
1515 <article class =" content content-document-edit" >
1616 {% if document and document .image %}
17- <blanchette -editor-container data-vuejs src-url =" {{ document | url({ ' noProcess' : true }) }}" filename =" {{ document .filename }}" >
17+ <blanchette -editor-container
18+ data-vuejs
19+ src-url =" {{ document | url({ ' noProcess' : true }) }}"
20+ filename =" {{ document .filename }}"
21+ width =" {{ document .imageWidth }}"
22+ height =" {{ document .imageHeight }}"
23+ >
1824 <div class =" hidden" >
1925 {{ form(file_form ) }}
2026 </div >
Original file line number Diff line number Diff line change 365365{%- block document_alignment_widget -%}
366366 {% include ' @RoadizRozier/widgets/documentAlignment.html.twig' with {
367367 widget_attributes : block (' widget_attributes' ),
368+ widget_class : ' rz-form-field__body' ,
368369 id : ' document-edit' ,
369370 form : form
370371 } %}
Original file line number Diff line number Diff line change 99{% set imageWidth = _self.getWidgetAttribute (widget_attributes , ' image-width' ) %}
1010{% set imageHeight = _self.getWidgetAttribute (widget_attributes , ' image-height' ) %}
1111
12- <document -alignment-widget class =" document-alignment-widget" input-base-name =" {{ form .vars .full_name }}" >
12+ <document -alignment-widget
13+ class =" document-alignment-widget {% if widget_class %}{{ widget_class }}{% endif %}"
14+ input-base-name =" {{ form .vars .full_name }}"
15+ >
1316 <div class =" document-alignment-widget__image-wrapper" >
1417 <div class =" document-alignment-widget__image-overlay" ></div >
1518 <div class =" document-alignment-widget__area" >
3033 />
3134 </div >
3235 <label class =" document-alignment-widget__override" >
33- <input type =" checkbox" class =" rz-boolean-checkbox " data-on-text =" I" data-off-text =" O" />
36+ <input type =" checkbox" class =" rz-switch " data-on-text =" I" data-off-text =" O" />
3437 <span >{{ ' document.imageAlignment.override' | trans }}</span >
3538 </label >
36- <button type =" button" class =" uk-button uk-button-small document-alignment-widget__reset" >
37- <i class =" uk-icon-rz-reset" ></i >
38- {{ ' document.imageAlignment.reset' | trans }}
39- </button >
39+
40+ {% import ' @RoadizRozier/macros/rz_button.html.twig' as rz_button %}
41+ {{ rz_button.root ({
42+ class : ' document-alignment-widget__reset' ,
43+ icon : ' rz-icon-ri--refresh-line' ,
44+ label : ' document.imageAlignment.reset' |trans,
45+ attributes : {
46+ type : ' button'
47+ }
48+ }) }}
4049</document -alignment-widget >
You can’t perform that action at this time.
0 commit comments