| 1 |
<?php |
| 2 |
/** |
| 3 |
* The template for Edit Location. |
| 4 |
* |
| 5 |
* This is the template that form edit |
| 6 |
* |
| 7 |
*/ |
| 8 |
|
| 9 |
if ( ! defined( 'ABSPATH' ) ) { |
| 10 |
exit; // Exit if accessed directly. |
| 11 |
} |
| 12 |
?> |
| 13 |
<!-- This file should primarily consist of HTML with a little bit of PHP. --> |
| 14 |
|
| 15 |
<div class="wrap wdk-wrap"> |
| 16 |
<h1 class="wp-heading-inline"><?php echo __('Location Management','wpdirectorykit'); ?></h1> |
| 17 |
<br /><br /> |
| 18 |
<div class="wdk-body"> |
| 19 |
<div class="postbox" style="display: block;"> |
| 20 |
<div class="postbox-header"><h3><?php echo __('Add/Edit Location','wpdirectorykit'); ?></h3> |
| 21 |
</div> |
| 22 |
<div class="inside"> |
| 23 |
|
| 24 |
<form method="post" action="<?php echo esc_url(wmvc_current_edit_url()); ?>" novalidate="novalidate"> |
| 25 |
<?php wp_nonce_field( 'wdk-svg-import', '_wpnonce'); ?> |
| 26 |
<?php |
| 27 |
$form->messages('class="alert alert-danger"', __('Locations imported', 'wpdirectorykit')); |
| 28 |
?> |
| 29 |
|
| 30 |
<table class="form-table" role="presentation"> |
| 31 |
<tbody> |
| 32 |
<tr> |
| 33 |
<th scope="row"><label for="related_svg_map"><?php echo __('Related SVG Map','wpdirectorykit'); ?></label></th> |
| 34 |
<td> |
| 35 |
<?php |
| 36 |
echo wmvc_select_option('related_svg_map', $maps_list, '', NULL, __('Not Selected','wpdirectorykit'), '0'); |
| 37 |
?> |
| 38 |
</td> |
| 39 |
</tr> |
| 40 |
<tr> |
| 41 |
<th scope="row"><label for="related_svg_map_location"><?php echo __('Related SVG Map Location','wpdirectorykit'); ?></label></th> |
| 42 |
<td> |
| 43 |
<?php |
| 44 |
echo wmvc_select_option('related_svg_map_location', $parents, wmvc_show_data('idlocation', $location, ''), NULL, __('Root','wpdirectorykit'), '0'); |
| 45 |
?> |
| 46 |
</td> |
| 47 |
</tr> |
| 48 |
</tbody> |
| 49 |
</table> |
| 50 |
<input type="submit" name="submit" id="submit" class="button button-primary" value="<?php echo esc_html__('Import Locations','wpdirectorykit'); ?>"> |
| 51 |
</form> |
| 52 |
</div> |
| 53 |
</div> |
| 54 |
</div> |
| 55 |
</div> |
| 56 |
|
| 57 |
<?php $this->view('general/footer', $data); ?> |