wip patchs appears with informations, but are not yet updated
This commit is contained in:
@@ -1,21 +1,24 @@
|
||||
<!--
|
||||
|
||||
{"hide_show":false,"calculations":false}
|
||||
{"calculations":false,"hide_show":false}
|
||||
|
||||
-->
|
||||
|
||||
<style>
|
||||
.patches_wrapper {
|
||||
margin: 20px 5px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<!-- https://developer.wordpress.org/reference/hooks/admin_post_action/ -->
|
||||
<form method="POST" action="<?php echo admin_url( 'admin-post.php' ); ?>">
|
||||
<input type="hidden" name="action" value="<?php echo $admin_post_patches; ?>">
|
||||
<?php wp_nonce_field($nonce['_action'], $nonce['_name']); ?>
|
||||
<div>
|
||||
<input type="checkbox" id="calculation_patch" name="calculation" checked />
|
||||
<label for="calculation_patch">calculation patch</label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="checkbox" id="hide_show_elements" name="hide_show" />
|
||||
<label for="hide_show_elements">hide/show elements</label>
|
||||
</div>
|
||||
<?php foreach($patches as $patch => $options) {?>
|
||||
<div class="patches_wrapper">
|
||||
<input type="checkbox" id="<?php echo $patch; ?>" name="<?php echo $patch; ?>" <?php echo $options['checked'] === true ? "checked" : "" ?> />
|
||||
<label for="<?php echo $patch; ?>"><b><?php echo $options['title']; ?> : </b><?php echo $options['description']; ?></label>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<input type="submit" value="send"/>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user