264 lines
12 KiB
Twig
264 lines
12 KiB
Twig
<div>
|
|
<h2 class="title">{{ dt.gM("Edit my profile") }}
|
|
{# TITLE INFO #}
|
|
<ul class="dx record-info">
|
|
{% if dt.chkP('SYS_SHOW_TABLE_IDS') %}<li>{{ dt.gM("ID") }}: <span>{% if USER.id %}{{USER.id}}{% else %}-{% endif %}</span></li>{% endif %}
|
|
<li>{{ dt.gM("Created") }}: <span>{% if USER.user_created %}{{USER.user_created}}{% else %}-{% endif %}</span></li>
|
|
<li>{{ dt.gM("Modified") }}: <span>{% if USER.user_modified %}{{USER.user_modified}}{% else %}-{% endif %}</span></li>
|
|
<li>{{ dt.gM("Last login") }}: <span>{% if USER.user_last_login %}{{USER.user_last_login}}{% else %}-{% endif %}</span></li>
|
|
<li>{{ dt.gM("Last IP") }}: <span>{% if USER.user_last_ip %}{{USER.user_last_ip}}{% else %}-{% endif %}</span></li>
|
|
<li>{{ dt.gM("Last location") }}: <span>{% if USER.user_last_location_url %}{{USER.user_last_location_url}}{% else %}-{% endif %}</span></li>
|
|
</ul>
|
|
</h2>
|
|
<style type="text/css">
|
|
#tback, #fcancel{
|
|
display: none!important;
|
|
}
|
|
</style>
|
|
|
|
{# BASE DATA #}
|
|
<ul id="pbase" class="dx col2 sbox p20">
|
|
<li>
|
|
<label for="user_name">{{ dt.gM("User name") }}:</label>
|
|
<div class="validate">
|
|
<input id="user_name" data-validator="user_name" type="text" class="normal" value="{{USER.user_name}}"/>
|
|
</div>
|
|
</li>
|
|
<li>
|
|
<label for="user_surname">{{ dt.gM("User surname") }}:</label>
|
|
<div class="validate">
|
|
<input id="user_surname" data-validator="user_surname" type="text" class="normal" value="{{USER.user_surname}}"/>
|
|
</div>
|
|
</li>
|
|
<li>
|
|
<label for="user_login">{{ dt.gM("Login name") }}:</label>
|
|
<div class="validate">
|
|
<input disabled="" id="user_login" data-validator="user_login" type="text" class="normal" value="{{USER.user_login}}"/>
|
|
</div>
|
|
</li>
|
|
<li>
|
|
<label for="user_email">{{ dt.gM("Email") }}:</label>
|
|
<div class="validate">
|
|
<input id="user_email" data-validator="user_email" type="text" class="long" value="{{USER.user_email}}"/>
|
|
</div>
|
|
</li>
|
|
<li>
|
|
<label for="user_lang">{{ dt.gM("CMS Language") }}:</label>
|
|
<div class="validate normal">
|
|
<select id="user_lang" data-validator="user_lang" class="chz">
|
|
{% if LANG and LANG|length %}
|
|
{% for lang in LANG %}
|
|
<option value="{{lang.id}}" {% if USER.user_lang_id and lang.id == USER.user_lang_id %} selected="" {% endif %}>{{lang.lang_title}}</option>
|
|
{% endfor %}
|
|
{% endif %}
|
|
</select>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
<div class="clearr"></div>
|
|
|
|
{# 2FA #}
|
|
<div id="p2fa" class="sbox noskip show{% if dt.oUser.suser.b2FAEnabled %} enabled{% endif %}">
|
|
<h3><a>{{ dt.gM("2FA Security") }}</a></h3>
|
|
<div class="inner-cnt" style="display: none;">
|
|
<ul class="dx sbox block">
|
|
<li class="a2fa block" style="width: 100%;">
|
|
<p>{{ dt.gM("Install the Google Authenticator application on your device for <a target='_blank' href='https://itunes.apple.com/app/google-authenticator/id388497605'>iOS</a> or <a target='_blank' href='https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2'>Android</a>. Scan barcode with Google Authenticator, if your device has a camera. If your device has no camera, enter account and key manually.") }}</p>
|
|
<p class="box">{{ dt.gM("Two Factor Authentication for Login") }}<a id="act_2fa" class="blue-btn">{{ dt.gM("Activate") }}</a><a id="dis_2fa" class="red-btn">{{ dt.gM("Deactivate") }}</a><b class="enb">{{ dt.gM("Option Enabled") }}</b><b class="dsb">{{ dt.gM("Option Disabled") }}</b></p>
|
|
</li><li class="dummy clear"></li>
|
|
</ul>
|
|
<div class="clearr"></div>
|
|
</div>
|
|
</div>
|
|
|
|
{# SETTINGS DATA CHECKBOXES #}
|
|
<div class="setting-block noskip show">
|
|
<h3><a>{{ dt.gM("My settings") }}</a></h3>
|
|
<div style="display:none;">
|
|
<ul id="psettings" class="dx pblocks sbox" style="text-align: left">
|
|
{% if CFG and CFG|length > 0 %}
|
|
{% for k,chk in CFG %}
|
|
<li>
|
|
<input id="{{k}}" data-validator="{{k}}" type="hidden" class="chk-value" value="{% if chk %}1{% endif %}"/>
|
|
<label>{{ dt.gM(k) }}:</label>
|
|
<p>{{ dt.gM(k ~ "_description paragraph...") }}</p>
|
|
</li>
|
|
{% endfor %}
|
|
<li class="dummy"></li>
|
|
<li class="dummy"></li>
|
|
<li class="dummy"></li>
|
|
<li class="dummy"></li>
|
|
<li class="dummy"></li>
|
|
{% endif %}
|
|
</ul>
|
|
<div class="clearr"></div>
|
|
|
|
{# FORM THEMES - COLORS #}
|
|
{% if dt.accessStatic('BRSystems\\Core\\Sys\\sysUsersManager\\inc\\sysUsersManagerController', 'CMS_FORM_THEMES') %}
|
|
<h4 class="sub-group"><a>{{ dt.gM("CMS form theme") }}</a></h4>
|
|
<div class="sub-group-data">
|
|
<ul id="user_theme" class="dx ncheckbox sbox">
|
|
{% for k,theme in dt.accessStatic('BRSystems\\Core\\Sys\\sysUsersManager\\inc\\sysUsersManagerController', 'CMS_FORM_THEMES') %}
|
|
<li class="{{k}}"><div><label>{{theme.t}}</label><div id="{{k}}" class="chk radio{% if CFG_INP.sThemetitle and CFG_INP.sThemetitle == k or CFG_INP.sThemetitle is empty and theme.default %} chked{% endif %}"><div></div></div></div></li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{# ADITIONAL USER SETTINGS #}
|
|
{% if CFG_INP and CFG_INP|length > 0 %}
|
|
<h4 class="sub-group"><a>{{ dt.gM("User system variables") }}</a></h4>
|
|
<div class="sub-group-data">
|
|
<ul id="user_values" class="dx col3 sbox" style="margin-left:-9px;">
|
|
{% for k,val in CFG_INP %}{% if k not in dt.accessStatic('BRSystems\\Core\\Sys\\sysUsers\\inc\\sysUsersCfg', 'baseValuesCFG_hidden') %}<li>
|
|
<label for="{{k}}">{{ dt.gM("msg_prop_val_" ~ k) }}:</label>
|
|
<div class="validate">
|
|
<input id="{{k}}" data-validator="{{k}}" type="text" class="{% if PROP_CLASSES[k] %}{{PROP_CLASSES[k]}}{% else %}normal{% endif %}" value="{% if val %}{{val}}{% endif %}"/>
|
|
</div>
|
|
</li>{% endif %}
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
|
|
{# PASSWORD DATA #}
|
|
<div id="ppasschange" class="sbox show">
|
|
<h3><a>{{ dt.gM("Change my password") }}</a></h3>
|
|
<div style="display:none;">
|
|
<ul class="dx col1">
|
|
<li>
|
|
<label for="user_oldpass">{{ dt.gM("Old password") }}:</label>
|
|
<div class="validate">
|
|
<input id="user_oldpass" data-validator="user_oldpass" type="password" class="long skip" value=""/>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
<ul class="dx col2">
|
|
<li>
|
|
<label for="user_newpass">{{ dt.gM("New password") }}:</label>
|
|
<div class="validate">
|
|
<input id="user_newpass" data-validator="user_newpass" type="password" class="long skip" value=""/>
|
|
</div>
|
|
</li>
|
|
<li>
|
|
<label for="user_newpassre">{{ dt.gM("New password again") }}:</label>
|
|
<div class="validate">
|
|
<input id="user_newpassre" data-validator="user_newpassre" type="password" class="long skip" value=""/>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
<div class="clearr"></div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
{# TABLE FIELD DATA #}
|
|
<div id="tablescfg" class="gbox show load">
|
|
<h3><a>{{ dt.gM("Manage table fields") }}</a></h3>
|
|
<div style="display: none;">
|
|
<div class="clearr dd-before"></div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
{# PLUGIN TABLE FIELD DATA #}
|
|
<div id="portletscfg" class="sbox show load">
|
|
<h3><a>{{ dt.gM("Manage welcome portlets") }}</a></h3>
|
|
<div style="display: none;">
|
|
<div class="clearr dd-before"></div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
{# PERMISSION VIEW DATA #}
|
|
<div id="groups" class="show oh">
|
|
<h3><a>{{ dt.gM("My permission groups") }}</a></h3>
|
|
<div style="display:none;">
|
|
<div class="pp-search">
|
|
<label for="gr-search">{{ dt.gM("Search in groups:") }}</label>
|
|
<div>
|
|
<input type="text" data-validator="gr-search" id="gr-search" class="skip long" />
|
|
<a class="clf op60" style="display:none;" href="javascript:;"></a>
|
|
</div>
|
|
<span class="pp-close"></span>
|
|
</div>
|
|
<div class="ncheckbox">
|
|
{# CHECK ALL BUTTON #}
|
|
{#<label class="ckh_all">{{ dt.gM("Check all:") }}</label>#}
|
|
<label class="only_sel" style="visibility:hidden;">{{ dt.gM("Show selected:") }}</label>
|
|
<br/><br/><br/>
|
|
{% if P.groups and P.groups|length > 0 %}
|
|
<ul class="dx pblocks">
|
|
{% for pp in P.groups %}
|
|
{% if pp.sel %}
|
|
<li>
|
|
<div id="g{{pp.id}}" data-validator="g{{pp.id}}" class="chk chked disabled"><div></div></div>
|
|
<label for="g{{pp.id}}">{{pp.group_name}}</label>
|
|
<p>{{pp.group_description}}</p>
|
|
</li>
|
|
{% endif %}
|
|
{% endfor %}
|
|
<li class="dummy noresults" style="display:none;">{{ dt.gM("No results found, please change the search and try again") }}</li>
|
|
<li class="dummy"></li>
|
|
<li class="dummy"></li>
|
|
<li class="dummy"></li>
|
|
<li class="dummy"></li>
|
|
<li class="dummy"></li>
|
|
</ul>
|
|
<div class="clearr"></div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="permissions" class="show oh">
|
|
<h3><a>{{ dt.gM("My permissions") }}</a></h3>
|
|
<div style="display:none;">
|
|
<div class="pp-search">
|
|
<label for="grpp-search">{{ dt.gM("Search in permissions:") }}</label>
|
|
<div>
|
|
<input type="text" data-validator="grpp-search" id="grpp-search" class="skip long" />
|
|
<a class="clf op60" style="display:none;" href="javascript:;"></a>
|
|
</div>
|
|
<span class="pp-close"></span>
|
|
</div>
|
|
<div class="ncheckbox">
|
|
{# CHECK ALL BUTTON #}
|
|
{#<label class="ckh_all">{{ dt.gM("Check all:") }}</label>#}
|
|
<label class="only_sel" style="visibility:hidden;">{{ dt.gM("Show selected:") }}</label>
|
|
<br/><br/><br/>
|
|
{% if P.permissions and P.permissions|length > 0 %}
|
|
<ul class="dx pblocks">
|
|
{% for g in P.permissions %}
|
|
{% if g and g|length > 0 %}
|
|
{% for pp in g %}
|
|
{% if pp.sel %}
|
|
<li>
|
|
<div id="k{{pp.id}}" data-validator="k{{pp.id}}" class="chk chked disabled"><div></div></div>
|
|
<label for="k{{pp.id}}">{{pp.p_name}}</label>
|
|
<p>{% if pp.p_description %}{{pp.p_description}}<br/>{% else %} {% endif %}</p>
|
|
</li>
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
<li class="dummy noresults" style="display:none;">{{ dt.gM("No results found, please change the search and try again") }}</li>
|
|
<li class="dummy"></li>
|
|
<li class="dummy"></li>
|
|
<li class="dummy"></li>
|
|
<li class="dummy"></li>
|
|
<li class="dummy"></li>
|
|
</ul>
|
|
<div class="clear"></div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
<br/> |