Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Géocontrib Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
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
externe Matthieu
Géocontrib Frontend
Commits
353a3909
Commit
353a3909
authored
2 years ago
by
Timothee P
Browse files
Options
Downloads
Patches
Plain Diff
add ids for tests & simplify code
parent
49e35f31
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/FeatureType/FeatureTypeCustomForm.vue
+8
-2
8 additions, 2 deletions
src/components/FeatureType/FeatureTypeCustomForm.vue
src/components/FeatureType/SymbologySelector.vue
+16
-8
16 additions, 8 deletions
src/components/FeatureType/SymbologySelector.vue
with
24 additions
and
10 deletions
src/components/FeatureType/FeatureTypeCustomForm.vue
+
8
−
2
View file @
353a3909
<
template
>
<div
class=
"ui teal segment pers-field"
>
<div
:id=
"`custom_form-$
{form.position.value}`"
class="ui teal segment pers-field"
>
<h4>
Champ personnalisé
<button
...
...
@@ -95,7 +98,10 @@
</ul>
</div>
<div
class=
"required field"
>
<div
id=
"field_type"
class=
"required field"
>
<label
:for=
"form.field_type.id_for_label"
>
{{
form
.
field_type
.
label
}}
</label>
...
...
This diff is collapsed.
Click to expand it.
src/components/FeatureType/SymbologySelector.vue
+
16
−
8
View file @
353a3909
<
template
>
<div>
<div
class=
"three fields"
>
<h4
:class=
"['field',
{'row-title' :
title == 'Symbologie par dé
fault
:'
}]">
<h4
:class=
"['field',
{'row-title' :
isDe
fault}]">
{{
title
}}
</h4>
<div
class=
"required inline field"
>
...
...
@@ -14,7 +14,8 @@
:name=
"form.color.html_name"
>
</div>
<div
v-if=
"geomType === 'polygon' || title !== 'Symbologie par défault :'"
>
<div
v-if=
"geomType === 'polygon' || !isDefault"
>
<label>
Opacité
<span>
(%)
</span></label>
<div
class=
"range-container"
>
<input
...
...
@@ -31,9 +32,11 @@
</div>
</div>
</div>
<div
v-if=
"isIconPickerModalOpen"
ref=
"iconsPickerModal"
:
class=
"
['
ui dimmer modal transition
',
{
active
: isIconPickerModalOpen }]
"
class=
"ui dimmer modal transition active"
>
<div
class=
"header"
>
Sélectionnez le symbole pour ce type de signalement :
...
...
@@ -46,8 +49,7 @@
@click="selectIcon(icon)"
>
<i
:class=
"`fa-$
{icon}`"
class="icon alt fas"
:class=
"`icon alt fas fa-$
{icon}`"
aria-hidden="true"
/>
</div>
...
...
@@ -84,8 +86,8 @@ export default {
default
:
'
circle
'
},
initOpacity
:
{
type
:
String
,
default
:
'
1
'
type
:
[
String
,
Number
],
default
:
'
0.5
'
},
geomType
:
{
type
:
String
,
...
...
@@ -113,12 +115,18 @@ export default {
};
},
computed
:
{
isDefault
()
{
return
this
.
title
===
'
Symbologie par défault :
'
;
}
},
watch
:
{
form
:
{
deep
:
true
,
handler
(
newValue
)
{
this
.
$emit
(
'
set
'
,
{
name
:
this
.
title
===
'
Symbologie par dé
fault
:
'
?
null
:
this
.
title
,
name
:
this
.
isDe
fault
?
null
:
this
.
title
,
value
:
newValue
});
}
...
...
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