Added ObservationEntry Vue component

This commit is contained in:
neviyn 2018-11-30 12:25:15 +00:00
parent 3ebaf66a33
commit f3815f0770

View File

@ -0,0 +1,48 @@
<template>
<b-col cols="6">
<b-row>
<b-col cols="3">
<p>{{ description }}</p>
<h4 v-bind:class="{ scorewarn: scenariofundamental.rating < 3 }">{{ scenariofundamental.rating }}</h4>
</b-col>
<b-col cols="9">
<b-form-textarea
:value="scenariofundamental.strengths"
placeholder="-"
:rows="1"
:max-rows="2"
no-resize
class="strength"
readonly
></b-form-textarea>
<b-form-textarea
:value="scenariofundamental.improvements"
placeholder="-"
:rows="1"
:max-rows="2"
no-resize
class="afi"
readonly
></b-form-textarea>
</b-col>
</b-row>
</b-col>
</template>
<script>
export default {
props: ["scenariofundamental", "description"]
};
</script>
<style scoped>
.strength {
background-color: honeydew;
}
.afi {
background-color: mistyrose;
}
.scorewarn {
color: red;
}
</style>