ver3
This commit is contained in:
@@ -35,6 +35,21 @@
|
||||
<span>{{ event.comment }}</span>
|
||||
</dd>
|
||||
</dl>
|
||||
<!-- Dodajemy sekcję dla rejestracji -->
|
||||
<h3>Rejestracje</h3>
|
||||
<ul>
|
||||
<li v-for="registration in event.registrations" :key="registration.id">
|
||||
{{ registration.playerName }}
|
||||
<!-- lub inne pola, które chcesz pokazać -->
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<router-link :to="{ name: 'RegistrationCreateForEvent', params: { eventId: event.id } }" custom v-slot="{ navigate }">
|
||||
<button @click="navigate" class="btn btn-primary">
|
||||
<font-awesome-icon icon="plus"></font-awesome-icon> <span>Dodaj Rejestrację</span>
|
||||
</button>
|
||||
</router-link>
|
||||
|
||||
<button type="submit" @click.prevent="previousState()" class="btn btn-info" data-cy="entityDetailsBackButton">
|
||||
<font-awesome-icon icon="arrow-left"></font-awesome-icon> <span>Back</span>
|
||||
</button>
|
||||
|
||||
@@ -84,11 +84,12 @@
|
||||
<div class="form-group">
|
||||
<label class="form-control-label" for="registration-event">Event</label>
|
||||
<select class="form-control" id="registration-event" data-cy="event" name="event" v-model="registration.event">
|
||||
<option :value="null"></option>
|
||||
<option :value="null">Please select an event</option>
|
||||
<option
|
||||
:value="registration.event && eventOption.id === registration.event.id ? registration.event : eventOption"
|
||||
:value="eventOption.id === eventId ? eventOption : registration.event"
|
||||
v-for="eventOption in events"
|
||||
:key="eventOption.id"
|
||||
:selected="eventOption.id === eventId"
|
||||
>
|
||||
{{ eventOption.name }}
|
||||
</option>
|
||||
|
||||
Reference in New Issue
Block a user