Skip to content
Snippets Groups Projects
Commit 08846553 authored by Timothee P's avatar Timothee P :sunflower:
Browse files

add feature_type link in feature_details

parent 0b44192f
No related branches found
No related tags found
2 merge requests!424version 3.1.0,!304REDMINE_ISSUE-11860
......@@ -63,6 +63,37 @@
<div class="seven wide column">
<table class="ui very basic table">
<tbody>
<tr v-if="feature_type">
<td>
<b> Type de signalement </b>
</td>
<td>
<router-link
:to="{
name: 'details-type-signalement',
params: { feature_type_slug: feature_type.slug },
}"
class="feature-type-title"
>
<img
v-if="feature_type.geom_type === 'point'"
class="list-image-type"
src="@/assets/img/marker.png"
>
<img
v-if="feature_type.geom_type === 'linestring'"
class="list-image-type"
src="@/assets/img/line.png"
>
<img
v-if="feature_type.geom_type === 'polygon'"
class="list-image-type"
src="@/assets/img/polygon.png"
>
{{ feature_type.title }}
</router-link>
</td>
</tr>
<div
v-for="(field, index) in feature.feature_data"
:key="'field' + index"
......@@ -445,6 +476,9 @@ export default {
'linked_features',
'statusChoices'
]),
...mapGetters('feature_type', [
'feature_type',
]),
DJANGO_BASE_URL() {
return this.$store.state.configuration.VUE_APP_DJANGO_BASE;
},
......@@ -790,4 +824,15 @@ export default {
.prewrap {
white-space: pre-wrap;
}
.feature-type-title {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
line-height: 1.5em;
}
.list-image-type {
margin-right: 5px;
height: 25px;
vertical-align: bottom;
}
</style>
\ No newline at end of file
......@@ -1263,7 +1263,7 @@ export default {
margin-right: 5px;
height: 25px;
vertical-align: bottom;
}
}
.feature-type-container {
display: flex;
justify-content: space-between;
......
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