|
|
|
|
@ -92,37 +92,35 @@
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<details :class="{running:running}">
|
|
|
|
|
<summary><h2>Timer</h2></summary>
|
|
|
|
|
<em>
|
|
|
|
|
{{formatTime(totalSeconds)}}
|
|
|
|
|
</em>
|
|
|
|
|
<button :disabled="running" @click="start">Start Timer</button>
|
|
|
|
|
<button :disabled="!running" @click="stop">Stop Timer</button>
|
|
|
|
|
<button :disabled="running || totalSeconds === 0" @click="reset">Reset</button>
|
|
|
|
|
<form @submit="submit">
|
|
|
|
|
<label>Description</label>
|
|
|
|
|
<input v-model="description" type="text"/>
|
|
|
|
|
<h2>Timer</h2>
|
|
|
|
|
<em>
|
|
|
|
|
{{formatTime(totalSeconds)}}
|
|
|
|
|
</em>
|
|
|
|
|
<button :disabled="running" @click="start">Start Timer</button>
|
|
|
|
|
<button :disabled="!running" @click="stop">Stop Timer</button>
|
|
|
|
|
<button :disabled="running || totalSeconds === 0" @click="reset">Reset</button>
|
|
|
|
|
<form @submit="submit">
|
|
|
|
|
<label>Description</label>
|
|
|
|
|
<input v-model="description" type="text"/>
|
|
|
|
|
|
|
|
|
|
<label>Seconds</label>
|
|
|
|
|
<input @change="updateSavedPreviousSeconds" v-model="totalSeconds" type="number"/>
|
|
|
|
|
<label>Seconds</label>
|
|
|
|
|
<input @change="updateSavedPreviousSeconds" v-model="totalSeconds" type="number"/>
|
|
|
|
|
|
|
|
|
|
<label>Comments</label>
|
|
|
|
|
<textarea v-model="comments"/>
|
|
|
|
|
<label>Comments</label>
|
|
|
|
|
<textarea v-model="comments"/>
|
|
|
|
|
|
|
|
|
|
<label>Practice Category</label>
|
|
|
|
|
<select v-model="practice_category_id">
|
|
|
|
|
<option v-for="category in categories" v-bind:value="category.id">
|
|
|
|
|
{{category.id}}.
|
|
|
|
|
{{category.instrument}}
|
|
|
|
|
:
|
|
|
|
|
{{category.category}}
|
|
|
|
|
</option>
|
|
|
|
|
</select>
|
|
|
|
|
<label>Practice Category</label>
|
|
|
|
|
<select v-model="practice_category_id">
|
|
|
|
|
<option v-for="category in categories" v-bind:value="category.id">
|
|
|
|
|
{{category.id}}.
|
|
|
|
|
{{category.instrument}}
|
|
|
|
|
:
|
|
|
|
|
{{category.category}}
|
|
|
|
|
</option>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<input type="Submit"/>
|
|
|
|
|
</form>
|
|
|
|
|
</details>
|
|
|
|
|
<input type="Submit"/>
|
|
|
|
|
</form>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
|