Add the option "add_city" to the setting page

Issue #4
This commit is contained in:
htdat
2017-02-26 16:14:34 +07:00
parent def805022d
commit 7083167c33
+12 -1
View File
@@ -98,7 +98,18 @@ class WooViet_Admin_Page {
<label for="add_province"><?php _e( 'Enabled', 'woo-viet' ) ?></label>
</td>
</tr>
<tr>
<th scope="row"><?php _e( 'Add cities for Vietnam', 'woo-viet' ) ?><br />
<i><?php _e( 'Require "Add provinces for Vietnam" active', 'woo-viet' ) ?></i>
</th>
<td>
<input name="settings[add_city][enabled]" type="hidden" value="no">
<input name="settings[add_city][enabled]" type="checkbox" id="add_city" value="yes"
<?php if ( 'yes' == $settings['add_city']['enabled'] )
echo 'checked="checked"' ?>>
<label for="add_city"><?php _e( 'Enabled', 'woo-viet' ) ?></label>
</td>
</tr>
<tr>
<th scope="row"><?php _e( 'Change VND currency symbol', 'woo-viet' ) ?></th>
<td>