|
|
|
@ -23,40 +23,42 @@
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<h2>Show Category</h2>
|
|
|
|
<details>
|
|
|
|
<select @change="change">
|
|
|
|
<summary><h2>Show Category</h2></summary>
|
|
|
|
<option v-for="category in categories" v-bind:value="category.id">
|
|
|
|
<select @change="change">
|
|
|
|
{{category.instrument}}
|
|
|
|
<option v-for="category in categories" v-bind:value="category.id">
|
|
|
|
:
|
|
|
|
{{category.instrument}}
|
|
|
|
{{category.category}}
|
|
|
|
:
|
|
|
|
</option>
|
|
|
|
{{category.category}}
|
|
|
|
</select>
|
|
|
|
</option>
|
|
|
|
<table>
|
|
|
|
</select>
|
|
|
|
<thead>
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<thead>
|
|
|
|
<th>id</th>
|
|
|
|
<tr>
|
|
|
|
<th>description</th>
|
|
|
|
<th>id</th>
|
|
|
|
<th>seconds</th>
|
|
|
|
<th>description</th>
|
|
|
|
<th>comments</th>
|
|
|
|
<th>seconds</th>
|
|
|
|
<th>created at</th>
|
|
|
|
<th>comments</th>
|
|
|
|
<th>category id</th>
|
|
|
|
<th>created at</th>
|
|
|
|
<th>category</th>
|
|
|
|
<th>category id</th>
|
|
|
|
<th>instrument</th>
|
|
|
|
<th>category</th>
|
|
|
|
</tr>
|
|
|
|
<th>instrument</th>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
<tr v-for="session in categorySessions">
|
|
|
|
|
|
|
|
<td>{{session.id}}</td>
|
|
|
|
|
|
|
|
<td>{{session.description}}</td>
|
|
|
|
|
|
|
|
<td>{{session.seconds}}</td>
|
|
|
|
|
|
|
|
<td>{{session.comments}}</td>
|
|
|
|
|
|
|
|
<td>{{session.created_at}}</td>
|
|
|
|
|
|
|
|
<td>{{session.category_id}}</td>
|
|
|
|
|
|
|
|
<td>{{session.category}}</td>
|
|
|
|
|
|
|
|
<td>{{session.instrument}}</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</thead>
|
|
|
|
</table>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
<tr v-for="session in categorySessions">
|
|
|
|
|
|
|
|
<td>{{session.id}}</td>
|
|
|
|
|
|
|
|
<td>{{session.description}}</td>
|
|
|
|
|
|
|
|
<td>{{session.seconds}}</td>
|
|
|
|
|
|
|
|
<td>{{session.comments}}</td>
|
|
|
|
|
|
|
|
<td>{{session.created_at}}</td>
|
|
|
|
|
|
|
|
<td>{{session.category_id}}</td>
|
|
|
|
|
|
|
|
<td>{{session.category}}</td>
|
|
|
|
|
|
|
|
<td>{{session.instrument}}</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</details>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
<style scoped>
|
|
|
|
|