parsley/app/javascript/components/LogEdit.vue

52 lines
961 B
Vue
Raw Normal View History

2018-04-13 10:25:18 -05:00
<template>
<div>
<h1 class="title">Creating Log for {{ log.recipe.name }}</h1>
2018-04-13 23:32:34 -05:00
<div class="columns">
<div class="column">
<app-date-picker v-model="log.date" label="Date"></app-date-picker>
</div>
<div class="column">
<div class="field">
<label class="label is-small-mobile">Rating</label>
<div class="control">
<app-rating v-model="log.rating" :step="1"></app-rating>
</div>
</div>
</div>
</div>
<app-text-field label="Notes" v-model="log.notes" type="textarea"></app-text-field>
<slot></slot>
2018-04-13 10:25:18 -05:00
<recipe-edit :recipe="log.recipe" :for-logging="true"></recipe-edit>
</div>
</template>
<script>
import RecipeEdit from "./RecipeEdit";
export default {
props: {
log: {
required: true,
type: Object
}
},
components: {
RecipeEdit
}
}
</script>
<style lang="scss" scoped>
</style>