| 1 |
<?php if ( !defined( 'ABSPATH' ) ) die( 'No direct access allowed' ); ?> |
| 2 |
|
| 3 |
<table class="edit" data-url="<?php echo admin_url( 'admin-ajax.php' ) ?>"> |
| 4 |
<p><?php echo esc_html( $module->get_name() ); ?></p> |
| 5 |
|
| 6 |
<?php $module->render_config(); ?> |
| 7 |
|
| 8 |
<tr> |
| 9 |
<th width="70"></th> |
| 10 |
<td> |
| 11 |
<div class="table-actions"> |
| 12 |
<input class="button-primary" type="submit" name="save" value="<?php _e( 'Save', 'redirection' ); ?>"/> |
| 13 |
<input class="button-secondary" type="submit" name="cancel" value="<?php _e( 'Cancel', 'redirection' ); ?>"/> |
| 14 |
|
| 15 |
<input type="hidden" name="action" value="red_module_save"/> |
| 16 |
<input type="hidden" name="id" value="<?php echo esc_attr( $module->get_id() ); ?>"/> |
| 17 |
|
| 18 |
<?php wp_nonce_field( 'red_module_save_'.$module->get_id() ) ?> |
| 19 |
</div> |
| 20 |
|
| 21 |
<div class="error-container">An error</div> |
| 22 |
|
| 23 |
<div class="table-loading"> |
| 24 |
<div class="spinner"></div> |
| 25 |
</div> |
| 26 |
</td> |
| 27 |
</tr> |
| 28 |
</table> |
| 29 |
</div> |
| 30 |
|