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

<!-- This file should primarily consist of HTML with a little bit of PHP. -->
<form action="<?=admin_url( 'admin-post.php' ) ?>" method="POST">
  <fieldset>
    <input type="hidden" name="action" value="cemetery-sexton-process-search"/>
    <input name="search[LastName]" placeholder="Last Name" type="text" class="inputbox" id="LastName" tabindex="1" size="20" maxlength="250" style="width:auto; margin:10px 0;" />
    <span style="font-weight: bold; font-size: 1.8em; line-height: 50px;"> , </span>
	<input name="search[FirstName]" placeholder="First Name" type="text" class="inputbox" id="FirstName" tabindex="2" size="20" maxlength="250" style="width:auto; margin:10px 5px 10px 0;" /> 
    <input name="search[MidName]" placeholder="Middle Name" type="text" class="inputbox" id="MidName" tabindex="3" size="20" maxlength="250" style="width:auto; margin:10px 0;" /><br>
    <input name="search[similar]" type="checkbox" id="similar" tabindex="4" value="yes" checked style="margin:10px;"/>
    <label for="similar">Partial Name Search</label><br>
    <div class="w-separator size_small"></div>
    <button type="submit" class="button" tabindex="5"><i class="fas fa-search"></i> Search</button>
  </fieldset>
</form>

