PluginProbe
User Access Manager / 2.2.2
User Access Manager v2.2.2
2.3.20 2.3.19 2.3.18 2.3.17 2.3.16 2.3.15 2.3.14 2.3.13 trunk 0.6 0.6.1 0.6.2 0.7 0.7 Beta 0.7.0.1 0.8 0.8.0.1 0.8.0.2 0.9 0.9.1 0.9.1.1 0.9.1.2 0.9.1.3 0.9.1.4 1.0 All 136 releases
← All changes | src/View/UserGroups/UserGroupEditForm.php +23 -10 trunk2.2.2 View file →
@@ -1,10 +1,24 @@
1 1 <?php
2 2 /**
3 + * UserGroupEditForm.php
4 + *
5 + * Shows the user group edit form at the admin panel.
6 + *
7 + * PHP versions 5
8 + *
9 + * @author Alexander Schneider <alexanderschneider85@gmail.com>
10 + * @copyright 2008-2017 Alexander Schneider
11 + * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2
12 + * @version SVN: $id$
13 + * @link http://wordpress.org/extend/plugins/user-access-manager/
14 + */
15 +
16 +/**
3 17 * @var UserGroupController $controller
4 18 */
5 19
6 -use UserAccessManager\Controller\Backend\Administration\UserGroupController;
20 +use UserAccessManager\Controller\Backend\UserGroupController;
7 21 use UserAccessManager\Object\ObjectHandler;
8 22
9 23 $userGroup = $controller->getUserGroup();
10 24 ?>
@@ -23,11 +37,11 @@
23 37 <tbody>
24 38 <tr class="form-field form-required">
25 39 <th valign="top"><label for="userGroupName"><?php echo TXT_UAM_GROUP_NAME; ?></label></th>
26 40 <td>
27 - <input size="40" type="text" value="<?php echo htmlentities($userGroup->getName() ?? ''); ?>"
41 + <input size="40" value="<?php echo htmlentities($userGroup->getName()); ?>"
28 42 id="userGroupName" name="userGroupName"/><br/>
29 - <p class="description"><?php echo TXT_UAM_GROUP_NAME_DESC; ?></p>
43 + <?php echo TXT_UAM_GROUP_NAME_DESC; ?>
30 44 </td>
31 45 </tr>
32 46 <tr class="form-field form-required">
33 47 <th valign="top"><label for="userGroupDescription"><?php echo TXT_UAM_GROUP_DESC; ?></label>
@@ -32,18 +46,18 @@
32 46 <tr class="form-field form-required">
33 47 <th valign="top"><label for="userGroupDescription"><?php echo TXT_UAM_GROUP_DESC; ?></label>
34 48 </th>
35 49 <td>
36 - <input size="40" type="text" value="<?php echo htmlentities($userGroup->getDescription() ?? ''); ?>"
50 + <input size="40" value="<?php echo htmlentities($userGroup->getDescription()); ?>"
37 51 id="userGroupDescription" name="userGroupDescription"/><br/>
38 - <p class="description"><?php echo TXT_UAM_GROUP_DESC_DESC; ?></p>
52 + <?php echo TXT_UAM_GROUP_DESC_DESC; ?>
39 53 </td>
40 54 </tr>
41 55 <tr class="form-field form-required">
42 56 <th valign="top"><label for="ipRange"><?php echo TXT_UAM_GROUP_IP_RANGE; ?></label></th>
43 - <td><input size="40" type="text" value="<?php echo htmlentities($userGroup->getIpRange() ?? ''); ?>"
57 + <td><input size="40" value="<?php echo htmlentities($userGroup->getIpRange()); ?>"
44 58 id="ipRange" name="ipRange"/><br/>
45 - <p class="description"><?php echo TXT_UAM_GROUP_IP_RANGE_DESC; ?></p>
59 + <?php echo TXT_UAM_GROUP_IP_RANGE_DESC; ?>
46 60 </td>
47 61 </tr>
48 62 <tr class="form-field form-required">
49 63 <th valign="top"><label for="readAccess"><?php echo TXT_UAM_GROUP_READ_ACCESS; ?></label>
@@ -68,9 +82,9 @@
68 82 >
69 83 <?php echo TXT_UAM_ALL_USERS ?>
70 84 </option>
71 85 </select><br/>
72 - <p class="description"><?php echo TXT_UAM_GROUP_READ_ACCESS_DESC; ?></p>
86 + <?php echo TXT_UAM_GROUP_READ_ACCESS_DESC; ?>
73 87 </td>
74 88 </tr>
75 89 <tr class="form-field form-required">
76 90 <th valign="top"><label for="writeAccess"><?php echo TXT_UAM_GROUP_WRITE_ACCESS; ?></label>
@@ -104,9 +118,9 @@
104 118 >
105 119 <?php echo TXT_UAM_ALL_USERS ?>
106 120 </option>
107 121 </select><br/>
108 - <p class="description"><?php echo TXT_UAM_GROUP_WRITE_ACCESS_DESC; ?></p>
122 + <?php echo TXT_UAM_GROUP_WRITE_ACCESS_DESC; ?>
109 123 </td>
110 124 </tr>
111 125 <tr>
112 126 <th valign="top"><?php echo TXT_UAM_GROUP_ROLE; ?></th>
@@ -137,9 +151,8 @@
137 151 }
138 152 }
139 153 ?>
140 154 </ul>
141 - <p class="description"><?php echo TXT_UAM_GROUP_ROLE_DESC; ?></p>
142 155 </td>
143 156 </tr>
144 157 </tbody>
145 158 </table>