mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
Admin: Added possibility to change page URL
This commit is contained in:
parent
dc40b992fe
commit
c2588d18dc
2 changed files with 8 additions and 0 deletions
|
@ -72,6 +72,8 @@ final class AdminPresenter extends OpenVKPresenter
|
|||
$user->setStatus($this->postParam("status"));
|
||||
$user->setVerified(empty($this->postParam("verify") ? 0 : 1));
|
||||
if($user->onlineStatus() != $this->postParam("online")) $user->setOnline(intval($this->postParam("online")));
|
||||
if(!$user->setShortCode(empty($this->postParam("shortcode")) ? NULL : $this->postParam("shortcode")))
|
||||
$this->flash("err", tr("error"), tr("error_shorturl_incorrect"));
|
||||
$user->save();
|
||||
break;
|
||||
|
||||
|
|
|
@ -63,6 +63,12 @@
|
|||
</label>
|
||||
<input class="text medium-field" type="email" id="email" name="email" value="{$user->getEmail()}" />
|
||||
</div>
|
||||
<div class="field-group">
|
||||
<label for="shortcode">
|
||||
Адрес страницы
|
||||
</label>
|
||||
<input class="text medium-field" type="text" id="shortcode" name="shortcode" value="{$user->getShortCode()}" />
|
||||
</div>
|
||||
<hr>
|
||||
<div class="field-group">
|
||||
<label for="city">
|
||||
|
|
Loading…
Reference in a new issue