Skip to content

Commit a89ee05

Browse files
committed
Used old template for form fixed to the correct one
1 parent fa9fbbc commit a89ee05

File tree

1 file changed

+41
-37
lines changed

1 file changed

+41
-37
lines changed

web/templates/admin/edit_user.html

Lines changed: 41 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,6 @@
44
<a class="ui-button cancel" id="btn-back" href="/list/user/"><i class="fas fa-arrow-left status-icon blue"></i> <?=__('Back')?></a>
55
</div>
66
<div class="l-unit-toolbar__buttonstrip float-right">
7-
<?php
8-
if (!empty($_SESSION['error_msg'])) {
9-
echo "<span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span>";
10-
} else {
11-
if (!empty($_SESSION['ok_msg'])) {
12-
echo "<span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span>";
13-
}
14-
}
15-
?>
167
<a href="#" class="ui-button" title="<?=__('Save')?>" data-action="submit" data-id="vstobjects"><i class="fas fa-save status-icon purple"></i> <?=__('Save')?></a>
178
</div>
189
</div>
@@ -50,7 +41,20 @@
5041
<td class="step-top">
5142
<span class="page-title"><?=__('Editing User')?></span>
5243
</td>
53-
</tr>
44+
</tr>
45+
<tr>
46+
<td>
47+
<?php
48+
if (!empty($_SESSION['error_msg'])) {
49+
echo "<span class=\"vst-error\"> <i class=\"fas fa-exclamation-circle status-icon red\"></i> ".htmlentities($_SESSION['error_msg'])."</span>";
50+
} else {
51+
if (!empty($_SESSION['ok_msg'])) {
52+
echo "<span class=\"vst-ok\"> <i class=\"fas fa-check-circle status-icon green\"></i> ".$_SESSION['ok_msg']."</span>";
53+
}
54+
}
55+
?>
56+
</td>
57+
</tr>
5458
<tr>
5559
<td class="vst-text step-top">
5660
<?php print __('Username');?>
@@ -74,7 +78,7 @@
7478
</tr>
7579
<tr>
7680
<td>
77-
<label><input type="checkbox" class="vst-checkbox password-option" name="v_twofa" <?php if(!empty($v_twofa)) echo "checked=yes" ?> onclick="App.Actions.WEB.toggle_twofa(this)"> <?php print __('Enable 2FA');?></label>
81+
<label><input type="checkbox" class="vst-checkbox password-option" name="v_twofa" <?php if(!empty($v_twofa)) echo "checked=yes" ?>> <?php print __('Enable 2FA');?></label>
7882
<?php if (!empty($v_twofa)) { ?>
7983
<p><?php echo __('2FA Reset Code:').' '.$v_twofa; ?></br></p>
8084
<p><?php echo __('Please scan the code below in your 2FA application:'); ?></p>
@@ -133,31 +137,6 @@
133137
</select>
134138
</td>
135139
</tr>
136-
<tr>
137-
<td class="vst-text input-label">
138-
<?php print __('PHP_CLI');?>
139-
</td>
140-
</tr>
141-
<tr>
142-
<td>
143-
<select class="vst-list" name="v_phpcli">
144-
<?php
145-
foreach ($php_versions as $key => $value) {
146-
$php = explode('-',$value);
147-
echo "\t\t\t\t<option value=\"".$value."\"";
148-
$svalue = "'".$value."'";
149-
if ((!empty($v_phpcli)) && ( $value == $v_phpcli ) || ($svalue == $v_phpcli)){
150-
echo ' selected' ;
151-
}
152-
if ((empty($v_phpcli)) && ($value == DEFAULT_PHP_VERSION)){
153-
echo ' selected' ;
154-
}
155-
echo ">".htmlentities($value)."</option>\n";
156-
}
157-
?>
158-
</select>
159-
</td>
160-
</tr>
161140
<tr>
162141
<td class="vst-text input-label">
163142
<?php print __('Language');?>
@@ -203,6 +182,31 @@
203182
</select>
204183
</td>
205184
</tr>
185+
<tr>
186+
<td class="vst-text input-label">
187+
<?php print __('PHP_CLI');?>
188+
</td>
189+
</tr>
190+
<tr>
191+
<td>
192+
<select class="vst-list" name="v_phpcli">
193+
<?php
194+
foreach ($php_versions as $key => $value) {
195+
$php = explode('-',$value);
196+
echo "\t\t\t\t<option value=\"".$value."\"";
197+
$svalue = "'".$value."'";
198+
if ((!empty($v_phpcli)) && ( $value == $v_phpcli ) || ($svalue == $v_phpcli)){
199+
echo ' selected' ;
200+
}
201+
if ((empty($v_phpcli)) && ($value == DEFAULT_PHP_VERSION)){
202+
echo ' selected' ;
203+
}
204+
echo ">".htmlentities($value)."</option>\n";
205+
}
206+
?>
207+
</select>
208+
</td>
209+
</tr>
206210
<?php if ((isset($_SESSION['DNS_SYSTEM'])) && (!empty($_SESSION['DNS_SYSTEM']))) {?>
207211
<tr>
208212
<td class="vst-text input-label">
@@ -283,4 +287,4 @@
283287
</tr>
284288
</table>
285289
</form>
286-
</div>
290+
</div>

0 commit comments

Comments
 (0)