Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GoGoCarto
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pixel Humain
GoGoCarto
Commits
09b0ea4c
Unverified
Commit
09b0ea4c
authored
4 years ago
by
Adrien Pavie
Committed by
Sebastian Castro
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Make OSM fields not editable
parent
f3ecfd34
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/admin/core_custom/custom-fields/element-data.html.twig
+5
-2
5 additions, 2 deletions
...es/admin/core_custom/custom-fields/element-data.html.twig
with
5 additions
and
2 deletions
templates/admin/core_custom/custom-fields/element-data.html.twig
+
5
−
2
View file @
09b0ea4c
...
...
@@ -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>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment