# redirection/2.4.4/view/group-edit.php

Redirection, version 2.4.4. 37 lines.

- Page: https://pluginprobe.com/plugins/redirection/2.4.4/code/view/group-edit.php
- Raw: https://pluginprobe.com/plugins/redirection/2.4.4/raw/view/group-edit.php
- Modified: 2015-06-07T17:52:42+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/redirection/2.4.4/code/view/group-edit.php#L10-L20`.

```php
<?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?>
<table class="edit" data-url="<?php echo admin_url( 'admin-ajax.php' ) ?>">
	<tr>
		<th width="70"><?php _e ('Name', 'redirection'); ?>:</th>
		<td><input style="width: 95%" type="text" name="name" value="<?php echo esc_attr( $group->get_name() ) ?>"/></td>
	</tr>
	<tr>
		<th width="70"><?php _e( 'Module', 'redirection' ); ?></th>
		<td>
			<select name="module_id">
				<?php foreach ( Red_Module::get_for_select() AS $module ) : ?>
					<option value="<?php echo esc_attr( $module->get_id() ); ?>"<?php selected( $module->get_id(), $group->get_module_id() ); ?>><?php echo esc_html( $module->get_name() ); ?></option>
				<?php endforeach; ?>
			</select>
		</td>
	</tr>
	<tr>
		<th width="70"></th>
		<td>
			<div class="table-actions">
				<input class="button-primary" type="submit" name="save" value="<?php _e ('Save', 'redirection'); ?>"/>
				<input class="button-secondary" type="submit" name="cancel" value="<?php _e ('Cancel', 'redirection'); ?>"/>

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

				<?php wp_nonce_field( 'redirection-group_save_'.$group->id ) ?>
			</div>

			<div class="table-loading">
				<div class="spinner"></div>
			</div>
		</td>
	</tr>
</table>
</div>

```
