mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
PHRAS-2885 Add missing warning when try to edit record from different db
This commit is contained in:
@@ -411,12 +411,31 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
{% if multipleDataboxes == 1 %}
|
||||||
|
$(function() {
|
||||||
|
$('#EDITWINDOW').hide();
|
||||||
|
$( "#dialog-edit-many-sbas:ui-dialog" ).dialog( "destroy" );
|
||||||
|
$( "#dialog-edit-many-sbas" ).dialog({
|
||||||
|
modal: true,
|
||||||
|
resizable:false,
|
||||||
|
buttons: {
|
||||||
|
Ok: function() {
|
||||||
|
$( this ).dialog( "close" );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$('#dialog-edit-many-sbas').on('dialogclose', function(event) {
|
||||||
|
location.reload();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
{% else %}
|
||||||
{% set notActionableMsg = '' %}
|
{% set notActionableMsg = '' %}
|
||||||
{% if not_actionable > 1 %}
|
{% if not_actionable > 1 %}
|
||||||
{% set notActionableMsg = 'prod::editing: %not_actionable% documents ne peuvent etre edites car vos droits sont induffisants' | trans({'%not_actionable%' : not_actionable}) %}
|
{% set notActionableMsg = 'prod::editing: %not_actionable% documents ne peuvent etre edites car vos droits sont induffisants' | trans({'%not_actionable%' : not_actionable}) %}
|
||||||
{% elseif not_actionable == 1 %}
|
{% elseif not_actionable == 1 %}
|
||||||
{% set notActionableMsg = 'prod::editing: 1 document ne peut etre edite car vos droits sont induffisants' | trans | e('js')%}
|
{% set notActionableMsg = 'prod::editing: 1 document ne peut etre edite car vos droits sont induffisants' | trans | e('js')%}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
var recordEditorConfig = {
|
var recordEditorConfig = {
|
||||||
hasMultipleDatabases: {% if multipleDataboxes or recordsRequest|length == 0 %}true{% else %}false{% endif %},
|
hasMultipleDatabases: {% if multipleDataboxes or recordsRequest|length == 0 %}true{% else %}false{% endif %},
|
||||||
databoxId: {{ databox.get_sbas_id }},
|
databoxId: {{ databox.get_sbas_id }},
|
||||||
@@ -477,5 +496,6 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
Reference in New Issue
Block a user