Skip to content

Commit

Permalink
feat:c2corg#3936 display route public_information_transportation info
Browse files Browse the repository at this point in the history
  • Loading branch information
Nayor committed May 15, 2024
1 parent 2521e32 commit cf5fcfa
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/components/cards/RouteCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<span class="card-icon">
<!-- Englobing span is mandatory for tooltip ?? -->
<marker-gps-trace v-if="document.geometry.has_geom_detail" />
<marker-soft-mobility v-if="$documentUtils.hasSoftMobility(document)" />
</span>

<span
Expand Down
9 changes: 5 additions & 4 deletions src/js/constants/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,12 @@
"previous_injuries": ["no", "previous_injuries_2"],
"product_types": ["farm_sale", "restaurant", "grocery", "bar", "sport_shop"],
"public_transportation_ratings": [
"good service",
"seasonal service",
"poor service",
"no service",
"unknown service",
"nearby service",
"no service"
"poor service",
"seasonal service",
"good service"
],
"public_transportation_types": ["train", "bus", "service_on_demand", "boat"],
"qualification": ["federal_supervisor", "federal_trainer", "professional_diploma"],
Expand Down
1 change: 1 addition & 0 deletions src/js/constants/documentsProperties.json
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,7 @@
{ "id": "mtb_length_trail", "properties": { "url": "mbtrack", "activities": ["mountain_biking"] } },
{ "id": "mtb_up_rating", "properties": { "url": "mbur", "activities": ["mountain_biking"] } },
{ "id": "orientations", "properties": { "url": "fac" } },
{ "id": "public_transportation_rating" },
{ "id": "quality", "properties": { "url": "qa" } },
{
"id": "risk_rating",
Expand Down
3 changes: 2 additions & 1 deletion src/js/constants/fieldsProperties.json
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,8 @@
"default": false
},
"public_transportation_rating": {
"values": "public_transportation_ratings"
"values": "public_transportation_ratings",
"default": "unknown service"
},
"public_transportation_types": {
"values": "public_transportation_types",
Expand Down
1 change: 1 addition & 0 deletions src/translations/fixed_strings_common_js.vue
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@
<span v-translate translate-context="public_transportation_ratings">seasonal service</span>
<span v-translate translate-context="public_transportation_ratings">poor service</span>
<span v-translate translate-context="public_transportation_ratings">nearby service</span>
<span v-translate translate-context="public_transportation_ratings">unknown service</span>
<span v-translate translate-context="public_transportation_ratings">no service</span>
<!-- public_transportation_types -->
<span v-translate translate-context="public_transportation_types">train</span>
Expand Down
1 change: 1 addition & 0 deletions src/views/document/RouteView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
<field-view :document="document" :field="fields.climbing_outdoor_type" />
<field-view :document="document" :field="fields.configuration" />
<field-view :document="document" :field="fields.slackline_type" />
<field-view :document="document" :field="fields.public_transportation_rating" />
</div>

<div class="column is-4">
Expand Down

0 comments on commit cf5fcfa

Please sign in to comment.