Add: Copy form
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
d7361b6713
commit
88e020ac4e
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M6 6V2c0-1.1.9-2 2-2h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-4v4a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V8c0-1.1.9-2 2-2h4zm2 0h4a2 2 0 0 1 2 2v4h4V2H8v4zM2 8v10h10V8H2z"/></svg>
|
After Width: | Height: | Size: 233 B |
|
@ -148,36 +148,41 @@
|
|||
|
||||
<table cellspacing="0" cellpadding="0" border="0" class="custom-table custom-table-sm">
|
||||
<thead>
|
||||
<th>Name</th>
|
||||
<th>Von</th>
|
||||
<th>Bis</th>
|
||||
<th>Anzahl TN</th>
|
||||
<th />
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Von</th>
|
||||
<th>Bis</th>
|
||||
<th>Anzahl TN</th>
|
||||
<th />
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tr v-for="(form, index) in data" :key="index">
|
||||
<td>
|
||||
<div v-text="form.name" />
|
||||
</td>
|
||||
<td>
|
||||
<div v-text="form.from_human" />
|
||||
</td>
|
||||
<td>
|
||||
<div v-text="form.to_human" />
|
||||
</td>
|
||||
<td>
|
||||
<div v-text="form.participants_count" />
|
||||
</td>
|
||||
<td>
|
||||
<div class="flex space-x-2">
|
||||
<ui-action-button tooltip="Bearbeiten" class="btn-warning" icon="pencil" @click.prevent="edit(form)" />
|
||||
<ui-action-button tooltip="Teilnehmende anzeigen" class="btn-info" icon="user" @click.prevent="showParticipants(form)" />
|
||||
<ui-action-button :href="form.links.frontend" target="_BLANK" tooltip="zur Anmeldeseite" class="btn-info" icon="eye" />
|
||||
<ui-action-button :href="form.links.export" target="_BLANK" tooltip="als Tabellendokument exportieren" class="btn-info" icon="document" />
|
||||
<ui-action-button tooltip="Löschen" class="btn-danger" icon="trash" @click.prevent="deleting = form" />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tbody>
|
||||
<tr v-for="(form, index) in data" :key="index">
|
||||
<td>
|
||||
<div v-text="form.name" />
|
||||
</td>
|
||||
<td>
|
||||
<div v-text="form.from_human" />
|
||||
</td>
|
||||
<td>
|
||||
<div v-text="form.to_human" />
|
||||
</td>
|
||||
<td>
|
||||
<div v-text="form.participants_count" />
|
||||
</td>
|
||||
<td>
|
||||
<div class="flex space-x-2">
|
||||
<ui-action-button tooltip="Bearbeiten" class="btn-warning" icon="pencil" @click.prevent="edit(form)" />
|
||||
<ui-action-button tooltip="Teilnehmende anzeigen" class="btn-info" icon="user" @click.prevent="showParticipants(form)" />
|
||||
<ui-action-button :href="form.links.frontend" target="_BLANK" tooltip="zur Anmeldeseite" class="btn-info" icon="eye" />
|
||||
<ui-action-button tooltip="Kopieren" class="btn-info" icon="copy" @click="onCopy(form)" />
|
||||
<ui-action-button :href="form.links.export" target="_BLANK" tooltip="als Tabellendokument exportieren" class="btn-info" icon="document" />
|
||||
<ui-action-button tooltip="Löschen" class="btn-danger" icon="trash" @click.prevent="deleting = form" />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="px-6">
|
||||
<ui-pagination class="mt-4" :value="meta" @reload="reloadPage" />
|
||||
|
@ -223,6 +228,11 @@ const allFields = computed(() => {
|
|||
return result;
|
||||
});
|
||||
|
||||
function onCopy(form) {
|
||||
single.value = {...meta.value.default, ...form};
|
||||
single.value.id = null;
|
||||
}
|
||||
|
||||
function setTemplate(template) {
|
||||
active.value = 0;
|
||||
single.value.config = template.config;
|
||||
|
|
Loading…
Reference in New Issue