Update admin templates

This commit is contained in:
2021-06-16 23:05:44 -04:00
parent 7abb135072
commit 1aa0423886
2 changed files with 9 additions and 29 deletions

29
templates/options.php Executable file
View File

@@ -0,0 +1,29 @@
<h2>Cognito Forms</h2>
<form method="post" action="options.php">
<?php settings_fields('cognito_plugin'); ?>
<table class="form-table">
<tr valign="top">
<th scope="row">API Key</th>
<td><input type="text" name="cognito_api_key" style="width:300px;" value="<?php echo get_option('cognito_api_key'); ?>" /></td>
</tr>
<tr valign="top">
<th scope="row">Admin API Key</th>
<td><input type="text" name="cognito_admin_key" style="width:300px;" value="<?php echo get_option('cognito_admin_key'); ?>" /></td>
</tr>
<tr valign="top">
<th scope="row">Public API Key</th>
<td><input type="text" name="cognito_public_key" style="width:300px;" value="<?php echo get_option('cognito_public_key'); ?>" /></td>
</tr>
<tr valign="top">
<th scope="row">Organization Code</th>
<td><input type="text" name="cognito_organization" style="width:300px;" value="<?php echo get_option('cognito_organization'); ?>" /></td>
</tr>
</table>
<p class="submit">
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
</p>
</form>