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>
<div class="panel">
<div class="panel-heading" role="tab" :id="'heading-' + id">
<div class="panel-heading">
<h3 class="panel-title">
<a role="button" data-toggle="collapse" :data-parent="parent" :href="'#collapse-' + id"
aria-expanded="false" :aria-controls="'collapse-' + id">
{{ title }}
<a role="button" href="#" class="flex items-center justify-between" @click.prevent="expanded = !expanded">
<span>{{ title }}</span>
<i class="fa fa-chevron-right transform" :class="{ 'rotate-90': expanded }"></i>
</a>
</h3>
</div>
<div :id="'collapse-' + id" class="panel-collapse collapse" role="tabpanel" :aria-labelledby="'headine-' + id">
<div :class="{ 'hidden': !expanded }">
<div class="panel-body">
<slot></slot>
</div>
@@ -22,6 +22,7 @@
data () {
return {
id: null,
expanded: false,
}
},
props: {
@@ -8,7 +8,7 @@
<tbody>
<tr v-for="contingent in contingents" :key="contingent.id">
<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>
</tbody>
</table>
@@ -2,7 +2,7 @@
<panel title="Gebuchte Zusatzleistungen">
<ul class="list-group">
<li class="list-group-item" v-for="(assignment, serviceId) in serviceAssignments">
{{ services[serviceId].name }}: {{ assignment.join(', ')}}
{{ services[serviceId].name }}: {{ assignment.length }}
</li>
</ul>
</panel>
@@ -48,4 +48,4 @@
<style scoped>
</style>
</style>