<template>
  <fieldset>
    <div>
      <label for=timestamp>Timestamp</label>
      <input 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 required type=number v-model=value.value :disabled=disabled />
    </div>
  </fieldset>
</template>
<script lang="ts" src="./simple-entry.ts"></script>
<style lang="scss" src="./simple-entry.scss"></style>
