Adjust myep booking edit form

This commit is contained in:
Björn Fromme
2020-10-22 13:00:11 +02:00
parent c2e00b3a82
commit 4592dd7b99
3 changed files with 9 additions and 8 deletions
@@ -1,14 +1,14 @@
<template> <template>
<div class="panel"> <div class="panel">
<div class="panel-heading" role="tab" :id="'heading-' + id"> <div class="panel-heading">
<h3 class="panel-title"> <h3 class="panel-title">
<a role="button" data-toggle="collapse" :data-parent="parent" :href="'#collapse-' + id" <a role="button" href="#" class="flex items-center justify-between" @click.prevent="expanded = !expanded">
aria-expanded="false" :aria-controls="'collapse-' + id"> <span>{{ title }}</span>
{{ title }} <i class="fa fa-chevron-right transform" :class="{ 'rotate-90': expanded }"></i>
</a> </a>
</h3> </h3>
</div> </div>
<div :id="'collapse-' + id" class="panel-collapse collapse" role="tabpanel" :aria-labelledby="'headine-' + id"> <div :class="{ 'hidden': !expanded }">
<div class="panel-body"> <div class="panel-body">
<slot></slot> <slot></slot>
</div> </div>
@@ -22,6 +22,7 @@
data () { data () {
return { return {
id: null, id: null,
expanded: false,
} }
}, },
props: { props: {
@@ -8,7 +8,7 @@
<tbody> <tbody>
<tr v-for="contingent in contingents" :key="contingent.id"> <tr v-for="contingent in contingents" :key="contingent.id">
<th>{{ contingent.name }}</th> <th>{{ contingent.name }}</th>
<td><span class="label" :class="contingent.available > 0 ? 'label-success' : 'label-danger'">{{ contingent.available }}</span></td> <td><span class="label" :class="contingent.available > 0 ? 'label-success' : 'label-danger'">{{ contingent.available >= 0 ? contingent.available : 0 }}</span></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
@@ -2,7 +2,7 @@
<panel title="Gebuchte Zusatzleistungen"> <panel title="Gebuchte Zusatzleistungen">
<ul class="list-group"> <ul class="list-group">
<li class="list-group-item" v-for="(assignment, serviceId) in serviceAssignments"> <li class="list-group-item" v-for="(assignment, serviceId) in serviceAssignments">
{{ services[serviceId].name }}: {{ assignment.join(', ')}} {{ services[serviceId].name }}: {{ assignment.length }}
</li> </li>
</ul> </ul>
</panel> </panel>
@@ -48,4 +48,4 @@
<style scoped> <style scoped>
</style> </style>