77 {% if options .uploadConfig .saveOriginal %}
88 {{ form_widget(form [options .uploadConfig .saveOriginal ])}}
99 {% endif %}
10-
10+
1111 <div class =" field-error clearfix hidden" >
1212 <div id =" {{form [name ].vars.id }}_widget_error" class =" alert alert-danger span6" >
1313 </div >
2323 {% if form [name ].vars.value %}
2424 <img src =" /{{ options .uploadConfig .webDir ~ ' /' ~ form [name ].vars.value }}?{{ ' now' | date (' U' ) }}" id =" {{ form [name ].vars.id }}_preview" style =" {{ options .uploadConfig .saveOriginal ? ' cursor:hand; cursor: pointer' : ' ' }}" />
2525 {% else %}
26- <img src =" //placehold.io /{{ options .cropConfig .minWidth }}/ {{ options .cropConfig .minHeight }}" id =" {{ form [name ].vars.id }}_preview" />
26+ <img src =" holder.js /{{ options .cropConfig .minWidth }}x {{ options .cropConfig .minHeight }}" id =" {{ form [name ].vars.id }}_preview" />
2727 {% endif %}
2828 {% else %}
2929 {% if form [name ].vars.value %}
3030 <img src =" /{{ (options .uploadConfig .webDir ~ ' /' ~ form [name ].vars.value )| thumb(options .fieldImage .maxWidth , options .fieldImage .maxHeight ) }}?{{ ' now' | date (' U' ) }}" id =" {{ form [name ].vars.id }}_preview" style =" {{ options .uploadConfig .saveOriginal ? ' cursor:hand; cursor: pointer' : ' ' }}" />
3131 {% else %}
32- <img src =" //placehold.io /{{ options .fieldImage .maxWidth }}/ {{ options .fieldImage .maxHeight }}" id =" {{ form [name ].vars.id }}_preview" />
32+ <img src =" holder.js /{{ options .fieldImage .maxWidth }}x {{ options .fieldImage .maxHeight }}" id =" {{ form [name ].vars.id }}_preview" />
3333 {% endif %}
3434 {% endif %}
35-
35+
3636 </div >
3737 </div >
3838 {% endspaceless %}
5050 });
5151 }
5252 {% endif % }
53- $ (' #image_preview_{{ form[name].vars.id }}.select-image-button .image_edit_button' ).click (function (event ){
53+ $ (' #image_preview_{{ form[name].vars.id }}.select-image-button .image_edit_button' ).click (function (event ){
5454 var options = $ .parseJSON (' {{ options | json_encode() | raw }}' );
5555 {% if options .uploadConfig .saveOriginal % }
5656 options[' originalImageFieldId' ] = ' {{ form[options.uploadConfig.saveOriginal].vars.id }}' ;
7777 {# trans_default_domain 'ComurImageBundle' #}
7878
7979 {% spaceless %}
80-
80+
8181 <div class =" field-error clearfix hidden" >
8282 <div id =" {{form [name ].vars.id }}_widget_error" class =" alert alert-danger span6" >
8383 </div >
106106 $ (document ).ready (function (){
107107 rebindGalleryRemove ();
108108 galleries[' {{form[name].vars.id}}' ] = true ;
109- $ (' #image_add_button_{{form[name].vars.id}}' ).click (function (event ){
109+ $ (' #image_add_button_{{form[name].vars.id}}' ).click (function (event ){
110110 initializeImageManager (' {{ form[name].vars.id }}' , $ .parseJSON (' {{ options | json_encode() | raw }}' ));
111111 $ (' #image_upload_modal' ).modal (' show' );
112112 });
120120 });
121121
122122 </script >
123- {% endblock %}
123+ {% endblock %}
0 commit comments