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
8f70ba23
Unverified
Commit
8f70ba23
authored
4 years ago
by
Sebastian Castro
Browse files
Options
Downloads
Patches
Plain Diff
element-data: use readonly instead of disabled
parent
611d517d
No related branches found
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
+4
-4
4 additions, 4 deletions
...es/admin/core_custom/custom-fields/element-data.html.twig
with
4 additions
and
4 deletions
templates/admin/core_custom/custom-fields/element-data.html.twig
+
4
−
4
View file @
8f70ba23
...
@@ -9,15 +9,15 @@
...
@@ -9,15 +9,15 @@
<th>
{{
key
}}
</th>
<th>
{{
key
}}
</th>
<td>
<td>
{%
set
type
=
"text"
%}
{%
set
type
=
"text"
%}
{%
set
disabled
=
false
%}
{%
set
readonly
=
false
%}
{%
if
not
is_string
(
value
)
and
not
is_numeric
(
value
)
%}
{%
if
not
is_string
(
value
)
and
not
is_numeric
(
value
)
%}
{%
set
disabled
=
true
%}
{%
set
readonly
=
true
%}
{%
set
value
=
value
|
json_encode
%}
{%
set
value
=
value
|
json_encode
%}
{%
endif
%}
{%
endif
%}
{%
if
key
matches
'/^osm\:/'
%}
{%
if
key
matches
'/^osm\:/'
%}
{%
set
disabled
=
true
%}
{%
set
readonly
=
true
%}
{%
endif
%}
{%
endif
%}
<input
type=
"
{{
type
}}
"
class=
"form-control"
{{
disabled
?
'disabled="disabled
"'
:
''
}}
<input
type=
"
{{
type
}}
"
class=
"form-control"
{{
readonly
?
'readonly="readonly
"'
:
''
}}
name=
"
{{
'data['
~
key
~
']'
}}
"
value=
"
{{
value
}}
"
/>
name=
"
{{
'data['
~
key
~
']'
}}
"
value=
"
{{
value
}}
"
/>
</td>
</td>
</tr>
</tr>
...
...
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