| 1 |
<table class="form-table"> |
| 2 |
|
| 3 |
<tr class="wpuf-schedule-entries"> |
| 4 |
<th><?php esc_html_e( 'Schedule form', 'weforms' ); ?></th> |
| 5 |
<td> |
| 6 |
<label class="weforms-switch"> |
| 7 |
<input type="checkbox" v-model="settings.schedule_form" :true-value="'true'" :false-value="'false'"> |
| 8 |
<span class="switch-slider round"></span> |
| 9 |
<?php esc_html_e( 'Schedule form for a period', 'weforms' ); ?> |
| 10 |
</label> |
| 11 |
|
| 12 |
<p class="description"> |
| 13 |
<?php esc_html_e( 'Schedule for a time period the form is active.', 'weforms' ) ?> |
| 14 |
</p> |
| 15 |
</td> |
| 16 |
</tr> |
| 17 |
|
| 18 |
<tr class="wpuf-schedule-period" v-show="settings.schedule_form == 'true'"> |
| 19 |
<th>— <?php esc_html_e( 'Schedule Period', 'weforms' ); ?></th> |
| 20 |
<td> |
| 21 |
|
| 22 |
<?php esc_html_e( 'From', 'weforms' ); ?> |
| 23 |
<datepicker v-model="settings.schedule_start"></datepicker> |
| 24 |
|
| 25 |
<?php esc_html_e( 'To', 'weforms' ); ?> |
| 26 |
<datepicker v-model="settings.schedule_end"></datepicker> |
| 27 |
</td> |
| 28 |
</tr> |
| 29 |
|
| 30 |
<tr class="wpuf-schedule-pending" v-show="settings.schedule_form == 'true'"> |
| 31 |
<th>— <?php esc_html_e( 'Form Pending Message', 'weforms' ); ?></th> |
| 32 |
<td> |
| 33 |
<textarea rows="3" cols="40" v-model="settings.sc_pending_message"></textarea> |
| 34 |
</td> |
| 35 |
</tr> |
| 36 |
|
| 37 |
<tr class="wpuf-schedule-expired" v-show="settings.schedule_form == 'true'"> |
| 38 |
<th>— <?php esc_html_e( 'Form Expired Message', 'weforms' ); ?></th> |
| 39 |
<td> |
| 40 |
<textarea rows="3" cols="40" v-model="settings.sc_expired_message"></textarea> |
| 41 |
</td> |
| 42 |
</tr> |
| 43 |
|
| 44 |
<tr class="wpuf-require-login"> |
| 45 |
<th><?php esc_html_e( 'Require Login', 'weforms' ); ?></th> |
| 46 |
<td> |
| 47 |
<label class="weforms-switch"> |
| 48 |
<input type="checkbox" v-model="settings.require_login" :true-value="'true'" :false-value="'false'"> |
| 49 |
<span class="switch-slider round"></span> |
| 50 |
<?php esc_html_e( 'Require user to be logged in', 'weforms' ); ?> |
| 51 |
</label> |
| 52 |
</td> |
| 53 |
</tr> |
| 54 |
|
| 55 |
<tr class="wpuf-limit-message" v-show="settings.require_login == 'true'"> |
| 56 |
<th>— <?php esc_html_e( 'Require Login Message', 'weforms' ); ?></th> |
| 57 |
<td> |
| 58 |
<textarea rows="3" cols="40" v-model="settings.req_login_message"></textarea> |
| 59 |
</td> |
| 60 |
</tr> |
| 61 |
|
| 62 |
<tr class="wpuf-limit-entries"> |
| 63 |
<th><?php esc_html_e( 'Limit Entries', 'weforms' ); ?></th> |
| 64 |
<td> |
| 65 |
<label class="weforms-switch"> |
| 66 |
<input type="checkbox" v-model="settings.limit_entries" :true-value="'true'" :false-value="'false'"> |
| 67 |
<span class="switch-slider round"></span> |
| 68 |
<?php esc_html_e( 'Enable form entry limit', 'weforms' ); ?> |
| 69 |
</label> |
| 70 |
|
| 71 |
<p class="description"> |
| 72 |
<?php esc_html_e( 'Limit the number of entries allowed for this form', 'weforms' ) ?> |
| 73 |
</p> |
| 74 |
</td> |
| 75 |
</tr> |
| 76 |
|
| 77 |
<tr class="wpuf-number-entries" v-show="settings.limit_entries == 'true'"> |
| 78 |
<th>— <?php esc_html_e( 'Number of Entries', 'weforms' ); ?></th> |
| 79 |
<td> |
| 80 |
<input type="number" value="" v-model="settings.limit_number"> |
| 81 |
</td> |
| 82 |
</tr> |
| 83 |
|
| 84 |
<tr class="wpuf-limit-message" v-show="settings.limit_entries == 'true'"> |
| 85 |
<th>— <?php esc_html_e( 'Limit Reached Message', 'weforms' ); ?></th> |
| 86 |
<td> |
| 87 |
<textarea rows="3" cols="40" v-model="settings.limit_message"></textarea> |
| 88 |
</td> |
| 89 |
</tr> |
| 90 |
|
| 91 |
|
| 92 |
</table> |
| 93 |
|