<?php
/**
 *
 * Outputs the whole inline entry edit html.
 *
 *
 * @package    EPS 301 Redirects
 * @author     WebFactory Ltd
 *
 */


?>
<tr id="eps-redirect-edit">
    <td colspan="5">
        <form id="eps-redirect-save" method="post" action="">
            <table class="eps-table">
                <tr class="id-<?php echo ($redirect_id) ? $redirect_id : 'new'; ?>">
                    <?php include(EPS_REDIRECT_PATH . 'templates/template.redirect-entry-edit.php'); ?>
                    <td class="redirect-actions">
                        <?php if ($redirect_id) { ?>
                        <a class="button eps-redirect-cancel">Close</a>
                        <?php 
                      } ?>
                        <?php wp_nonce_field('eps_redirect_nonce', 'eps_redirect_nonce_submit');   ?>
                        <input type="submit" name="eps_redirect_submit" class="button button-primary eps-redirect-edit" value="Save">
                    </td>
                </tr>
            </table>
        </form>
    </td>
</tr> 
