23 lines
711 B
Vue
23 lines
711 B
Vue
<template>
|
|
<fieldset>
|
|
<div>
|
|
<label for=timestamp>Timestamp</label>
|
|
<input
|
|
name=timestamp
|
|
type=datetime-local
|
|
v-model=value.timestamp
|
|
v-show=editTimestamp
|
|
:disabled=disabled />
|
|
<span v-show="!editTimestamp">
|
|
now <a href="#" v-on:click.stop.prevent="editTimestamp = true"> (set a time)</a>
|
|
</span>
|
|
</div>
|
|
<div>
|
|
<label for=measurementValue>{{measure.name}}</label>
|
|
<input name=measurementValue required type=number step=any v-model.number=value.value :disabled=disabled />
|
|
</div>
|
|
</fieldset>
|
|
</template>
|
|
<script lang="ts" src="./simple-entry.ts"></script>
|
|
<style lang="scss" src="./simple-entry.scss"></style>
|