|
@@ -18,6 +18,8 @@ This code manage the many-to-[one|many] association field popup
|
|
|
|
|
|
{% autoescape false %}
|
|
|
|
|
|
+{% set associationadmin = sassociationadmin %}
|
|
|
+
|
|
|
<!-- edit many association -->
|
|
|
|
|
|
<script type="text/javascript">
|
|
@@ -109,7 +111,7 @@ This code manage the many-to-[one|many] association field popup
|
|
|
width: 980,
|
|
|
modal: true,
|
|
|
resizable: false,
|
|
|
- title: '{{ sonata_admin.field_description.associationadmin.label }}',
|
|
|
+ title: '{{ associationadmin.label|trans({}, associationadmin.translationdomain) }}',
|
|
|
close: function(event, ui) {
|
|
|
// make sure we have a clean state
|
|
|
jQuery('a', field_dialog_{{ id }}).die('click');
|
|
@@ -156,7 +158,7 @@ This code manage the many-to-[one|many] association field popup
|
|
|
modal: true,
|
|
|
autoOpen: true,
|
|
|
resizable: false,
|
|
|
- title: '{{ sonata_admin.field_description.associationadmin.label }}',
|
|
|
+ title: '{{ associationadmin.label|trans({}, associationadmin.translationdomain) }}',
|
|
|
close: function(event, ui) {
|
|
|
Admin.log('[{{ id }}|field_dialog_form_add] dialog closed - removing `live` events');
|
|
|
// make sure we have a clean state
|
|
@@ -363,8 +365,8 @@ This code manage the many-to-[one|many] association field popup
|
|
|
type: 'GET',
|
|
|
url: '{{ url('sonata_admin_short_object_information', {
|
|
|
'objectId': 'OBJECT_ID',
|
|
|
- 'uniqid': sonata_admin.field_description.associationadmin.uniqid,
|
|
|
- 'code': sonata_admin.field_description.associationadmin.code
|
|
|
+ 'uniqid': associationadmin.uniqid,
|
|
|
+ 'code': associationadmin.code
|
|
|
})}}'.replace('OBJECT_ID', jQuery(this).val()),
|
|
|
success: function(html) {
|
|
|
jQuery('#field_widget_{{ id }}').html(html);
|