<?php
// file: admin/partials/cemetery-sexton-admin-display.php
/**
 * Provide a admin area view for the plugin
 *
 * This file is used to markup the admin-facing aspects of the plugin.
 *
 * @link       https://orbicular.media
 * @since      1.1.0
 *
 * @package    Cemetery_Sexton
 * @subpackage Cemetery_Sexton/admin/partials
 */
?>

<div class="wrap">
    <h2><?php esc_attr_e( 'Setup Search', 'WpAdminStyle' ); ?></h2>
    <p>This WordPress Plugin is implemented using pages and shortcodes.</p>

    <h3><?php esc_attr_e( 'Setup Display Pages', 'WpAdminStyle' ); ?></h3>
    <p>The following display pages must be created that include the corresponding shortcode.</p>
    <p><strong>The Shortcode must match the text below exactly.</strong> The page title and page slug suggested below do not have to match. </p>
    
    <table class="widefat">
	<thead>
	<tr>
		<th class="row-title"><?php esc_attr_e( 'Page Title (Suggested)', 'WpAdminStyle' ); ?></th>
		<th><?php esc_attr_e( 'Page Purpose', 'WpAdminStyle' ); ?></th>
		<th><?php esc_attr_e( 'Page Slug (Suggested)', 'WpAdminStyle' ); ?></th>
		<th><?php esc_attr_e( 'Shortcode on Page', 'WpAdminStyle' ); ?></th>
	</tr>
	</thead>
	<tbody>
	<tr class="alternate">
		<td class="row-title"><label for="tablecell"><?php esc_attr_e( 'Search Results', 'WpAdminStyle'); ?></label></td>
		<td><?php esc_attr_e( 'Display Search Results', 'WpAdminStyle' ); ?></td>
		<td><?php esc_attr_e( 'results', 'WpAdminStyle' ); ?></td>
		<td><?php esc_attr_e( '[cemetery-sexton-results]', 'WpAdminStyle' ); ?></td>
	</tr>
	<tr>
		<td class="row-title"><label for="tablecell"><?php esc_attr_e( 'Interment', 'WpAdminStyle'); ?></label></td>
		<td><?php esc_attr_e( 'Display individual interment', 'WpAdminStyle' ); ?></td>
		<td><?php esc_attr_e( 'interment', 'WpAdminStyle' ); ?></td>
		<td><?php esc_attr_e( '[cemetery-sexton-interment]', 'WpAdminStyle' ); ?></td>
	</tr>
	<tr class="alternate">
		<td class="row-title"><label for="tablecell"><?php esc_attr_e('Family Lot', 'WpAdminStyle'); ?></label></td>
		<td><?php esc_attr_e( 'Display family lot and memorial', 'WpAdminStyle' ); ?></td>
		<td><?php esc_attr_e( 'lot', 'WpAdminStyle' ); ?></td>
		<td><?php esc_attr_e( '[cemetery-sexton-lot]', 'WpAdminStyle' ); ?></td>
	</tr>
	</tbody>
	</table>
	<form method="post" action="options.php">
	<?php 
    	settings_fields($this->plugin_name);
    	do_settings_sections($this->plugin_name.'-'.$current);
    	submit_button('Save Page Selections', 'primary','submit', TRUE);
	?>
    </form>
	<h2><?php esc_attr_e( 'Display Search Form', 'WpAdminStyle' ); ?></h2>
	<p>There are two types of search forms. Either type can be displayed on any page using the one of the following shortcodes.</p>
	<p>Insert the shortcode <code>[cemetery-sexton-search]</code> to display the full search form with complete name and partial name option.</p>
	<p>Insert the shortcode <code>[cemetery-sexton-quick-search]</code> to display the quick search form with only last name. This is a partial name search.</p>
	<h2><?php esc_attr_e( 'Display Cemetery Map', 'WpAdminStyle' ); ?></h2>
    <p>Insert the shortcode <code>[cemetery-sexton-map]</code> to display the cemetery map on any page.</p>
	
</div>