<div class="wrap wp-clanwars-mapeditor">
    <h2><?php echo $page_title; ?></h2>

    <form name="map-editor" id="map-editor" method="post" action="<?php echo esc_attr($_SERVER['REQUEST_URI']); ?>" enctype="multipart/form-data">

        <input type="hidden" name="action" value="<?php echo esc_attr($page_action); ?>" />
        <input type="hidden" name="game_id" value="<?php echo esc_attr($game_id); ?>" />
        <input type="hidden" name="id" value="<?php echo esc_attr($id); ?>" />

        <?php wp_nonce_field($page_action); ?>

        <table class="form-table">

        <tr class="form-field form-required">
            <th scope="row" valign="top"><label for="title"><span class="alignleft"><?php _e('Title', WP_CLANWARS_TEXTDOMAIN); ?></span><span class="alignright"><abbr title="<?php _e('required', WP_CLANWARS_TEXTDOMAIN); ?>" class="required">*</abbr></span><br class="clear" /></label></th>
            <td>
                <input name="title" id="title" type="text" class="regular-text" value="<?php echo esc_attr($title); ?>" maxlength="200" autocomplete="off" aria-required="true" />
            </td>
        </tr>

        <tr>
            <th scope="row" valign="top"><label for="screenshot_file"><?php _e('Screenshot', WP_CLANWARS_TEXTDOMAIN); ?></label></th>
            <td>
                <input type="file" name="screenshot_file" id="screenshot_file" />

                <?php if(!empty($attach)) : ?>
                <div class="screenshot"><?php echo $attach; ?></div>
                <div>
                <label for="delete-image"><input type="checkbox" name="delete_image" id="delete-image" /> <?php _e('Delete Screenshot', WP_CLANWARS_TEXTDOMAIN); ?></label>
                </div>
                <?php endif; ?>
            </td>
        </tr>

        </table>

        <p class="submit"><input type="submit" class="button button-primary" name="submit" value="<?php echo $page_submit; ?>" /></p>

    </form>

</div>