Mercurial > gemma
view client/src/components/systemconfiguration/MorphologyClassbreaks.vue @ 3644:9e91b416d5bb
client: cross profile: display arrow in diagram
consciously diceded to not draw it in the svg so it will not be exported to pdf since there it does not make sense without the map
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Wed, 12 Jun 2019 17:10:49 +0200 |
parents | 30a9fdac70f0 |
children | a688a478e35f |
line wrap: on
line source
<template> <div class="d-flex flex-column pb-4 border-bottom"> <h5 class="py-2 px-3 mb-2 m-0"> <translate>Bottleneck Morphology Classbreaks</translate> </h5> <div class="px-3"> <h6 class="font-weight-bold"><translate>Sounding Result</translate></h6> <div class="d-flex flex-wrap"> <div class="input-group mb-3 mr-2 classbreak" v-for="(value, i) in config.morphology_classbreaks" :key="i" > <input v-model="config.morphology_classbreaks[i]" type="number" min="0" step="0.1" class="form-control form-control-sm" /> <div class="input-group-append"> <button class="btn btn-sm btn-outline-secondary" type="button" @click="config.morphology_classbreaks.splice(i, 1)" > <font-awesome-icon icon="times" /> </button> </div> </div> <button class="btn btn-sm btn-success mb-3" @click=" config.morphology_classbreaks.push( config.morphology_classbreaks.length ? config.morphology_classbreaks[ config.morphology_classbreaks.length - 1 ] : 1 ) " > <font-awesome-icon icon="plus" /> </button> </div> </div> <div class="px-3"> <h6 class="font-weight-bold"> <translate>Sounding Result Comparison</translate> </h6> <div class="d-flex flex-wrap"> <div class="input-group mb-3 mr-2 classbreak" v-for="(value, i) in config.morphology_classbreaks_compare" :key="i" > <input v-model="config.morphology_classbreaks_compare[i]" type="number" step="0.1" class="form-control form-control-sm" /> <div class="input-group-append"> <button class="btn btn-sm btn-outline-secondary" type="button" @click="config.morphology_classbreaks_compare.splice(i, 1)" > <font-awesome-icon icon="times" /> </button> </div> </div> <button class="btn btn-sm btn-success mb-3" @click=" config.morphology_classbreaks_compare.push( config.morphology_classbreaks_compare.length ? config.morphology_classbreaks_compare[ config.morphology_classbreaks_compare.length - 1 ] : 1 ) " > <font-awesome-icon icon="plus" /> </button> </div> </div> <div class="mt-4 px-3"> <a @click.prevent="submit" class="btn btn-info btn-sm text-white"> <translate>Send</translate> </a> </div> </div> </template> <style lang="sass" scoped> .classbreak width: 92px .btn-outline-secondary border-color: #ccc color: #ccc &:hover background: #eee color: #dc3545 </style> <script> /* This is Free Software under GNU Affero General Public License v >= 3.0 * without warranty, see README.md and license for details. * * SPDX-License-Identifier: AGPL-3.0-or-later * License-Filename: LICENSES/AGPL-3.0.txt * * Copyright (C) 2018 by via donau * – Österreichische Wasserstraßen-Gesellschaft mbH * Software engineering by Intevation GmbH * * Author(s): * Markus Kottländer <markus@intevation.de> */ import { mapState } from "vuex"; export default { computed: { ...mapState("application", ["config"]) }, methods: { submit() { this.$store.commit("application/config", this.config); } } }; </script>