Skip to content
Snippets Groups Projects
Unverified Commit 09b0ea4c authored by Adrien Pavie's avatar Adrien Pavie Committed by Sebastian Castro
Browse files

Make OSM fields not editable

parent f3ecfd34
No related branches found
No related tags found
No related merge requests found
......@@ -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>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment