| 1 |
<div class="wpuf-contact-form-entries"> |
| 2 |
<div> |
| 3 |
<h1 class="wp-heading-inline"> |
| 4 |
<?php _e( 'Entries', 'weforms' ); ?> |
| 5 |
<span class="dashicons dashicons-arrow-right-alt2" style="margin-top: 5px;"></span> |
| 6 |
|
| 7 |
<span style="color: #999;" class="form-name"> |
| 8 |
{{ form_title }} |
| 9 |
</span> |
| 10 |
|
| 11 |
<select v-if="Object.keys(forms).length" v-model="selected" @change="status='publish'"> |
| 12 |
<option :value="form.id" v-for="form in forms">{{ form.name }}</option> |
| 13 |
</select> |
| 14 |
</h1> |
| 15 |
</div> |
| 16 |
|
| 17 |
<div> |
| 18 |
<ul class="subsubsub"> |
| 19 |
<li class="all"> |
| 20 |
<a href="#" :class="{ current: status =='publish' }" @click.prevent="status='publish'"> |
| 21 |
All |
| 22 |
<span class="count"> |
| 23 |
({{total}}) |
| 24 |
</span> |
| 25 |
</a> | |
| 26 |
</li> |
| 27 |
<li class="trash"> |
| 28 |
<a href="#" :class="{ current: status =='trash' }" @click.prevent="status='trash'"> |
| 29 |
Trash |
| 30 |
<span class="count"> |
| 31 |
({{totalTrash}}) |
| 32 |
</span> |
| 33 |
</a> |
| 34 |
</li> |
| 35 |
</ul> |
| 36 |
</div> |
| 37 |
<div> |
| 38 |
<template v-if="selected"> |
| 39 |
|
| 40 |
<wpuf-table |
| 41 |
action="weforms_form_entries" |
| 42 |
:status="status" |
| 43 |
:id="selected" |
| 44 |
v-on:ajaxsuccess=" |
| 45 |
form_title = $event.form_title; |
| 46 |
$route.params.id = selected; |
| 47 |
total = $event.meta.total; |
| 48 |
totalTrash = $event.meta.totalTrash |
| 49 |
" |
| 50 |
> |
| 51 |
</wpuf-table> |
| 52 |
</template> |
| 53 |
</div> |
| 54 |
|
| 55 |
</div> |
| 56 |
|