diff --git a/templates/admin/core_custom/custom-fields/element-data.html.twig b/templates/admin/core_custom/custom-fields/element-data.html.twig index 4e16dbf18027abb77358b409fdf3440482a01ecf..cbd76955cfb2a78745be77942ac0fb30b28a5ee3 100644 --- a/templates/admin/core_custom/custom-fields/element-data.html.twig +++ b/templates/admin/core_custom/custom-fields/element-data.html.twig @@ -2,7 +2,7 @@ <h4 style="margin-top: 25px;">Champs Personnalisés</h4> <div class="table-responsive no-padding"> - <table class="table"> + <table class="table"> <tbody> {% for key, value in element.data %} <tr class="sonata-ba-view-container"> @@ -14,6 +14,9 @@ {% set disabled = true %} {% set value = value|json_encode %} {% endif %} + {% if key matches '/^osm\:/' %} + {% set disabled = true %} + {% endif %} <input type="{{ type }}" class="form-control" {{ disabled ? 'disabled="disabled"' : '' }} name="{{ 'data[' ~ key ~ ']'}}" value="{{ value }}" /> </td> @@ -22,4 +25,4 @@ </tbody> </table> </div> -<h4>Champs Spéciaux</h4> \ No newline at end of file +<h4>Champs Spéciaux</h4>