@opengis/admin 0.2.114 → 0.2.116
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +97 -97
- package/config.js +4 -4
- package/dist/{add-page-DBiLRC6C.js → add-page-Cw8du65u.js} +1 -1
- package/dist/{admin-interface-X48rcfn-.js → admin-interface-vWqlFsk0.js} +78 -78
- package/dist/{admin-view-CHDjJda8.js → admin-view-BBgd4w7j.js} +2 -2
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +75 -75
- package/dist/assets/logo.svg +41 -41
- package/dist/{card-view-ComFWFMM.js → card-view-6INGfYSE.js} +1 -1
- package/dist/{edit-page-C7lGT-fU.js → edit-page-BNXUpOAj.js} +1 -1
- package/dist/{import-file-CpEg7H-h.js → import-file-C9mMGOua.js} +10297 -10286
- package/dist/{profile-page-DQSOt1nm.js → profile-page-BJe4fPmp.js} +1 -1
- package/dist/style.css +1 -1
- package/module/settings/card/admin.accounts.table/index.yml +7 -7
- package/module/settings/card/admin.accounts.table/rules.hbs +18 -18
- package/module/settings/card/admin.accounts.table/users.hbs +13 -13
- package/module/settings/card/admin.routes.table/groups.hbs +11 -11
- package/module/settings/card/admin.routes.table/index.yml +11 -11
- package/module/settings/card/admin.routes.table/users.hbs +16 -16
- package/module/settings/card/admin.users.table/general_info.hbs +1 -1
- package/module/settings/cls/core.actions.json +17 -17
- package/module/settings/cls/core.scope.json +13 -13
- package/module/settings/cls/properties.site_status.json +13 -13
- package/module/settings/cls/properties.widget_status.json +13 -13
- package/module/settings/cls/users.user_type.json +13 -13
- package/module/settings/cls/yes_no.json +11 -11
- package/module/settings/form/admin.accounts.form.json +13 -13
- package/module/settings/form/admin.properties.form.json +15 -15
- package/module/settings/form/admin.roles.form.json +21 -21
- package/module/settings/form/admin.user_properties.form.json +15 -15
- package/module/settings/form/admin.user_roles_card.form.json +13 -13
- package/module/settings/form/admin.users_edit.form.json +145 -0
- package/module/settings/interface/admin.properties.json +4 -4
- package/module/settings/interface/admin.roles.json +4 -4
- package/module/settings/interface/admin.routes.json +4 -4
- package/module/settings/interface/admin.users.json +4 -4
- package/module/settings/select/core.routes.sql +1 -1
- package/module/settings/select/core.user_mentioned.sql +1 -1
- package/module/settings/select/core.user_uid.sql +1 -1
- package/module/settings/table/admin.properties.table.json +39 -39
- package/module/settings/table/admin.user_properties.table.json +34 -34
- package/package.json +6 -6
- package/plugin.js +29 -29
- package/server/helpers/core/badge.js +16 -16
- package/server/helpers/core/buttonHelper.js +21 -21
- package/server/helpers/core/select.js +48 -48
- package/server/helpers/core/token.js +18 -18
- package/server/helpers/index.js +31 -31
- package/server/helpers/list/buttonHelper.js +21 -21
- package/server/helpers/list/utils/button.js +5 -5
- package/server/helpers/temp/contentList.js +58 -58
- package/server/helpers/temp/ifCond.js +101 -101
- package/server/helpers/utils/button.js +5 -5
- package/server/plugins/access/index.mjs +6 -6
- package/server/plugins/adminHook.js +81 -81
- package/server/plugins/cron.js +10 -10
- package/server/plugins/docs.js +28 -28
- package/server/routes/access/controllers/access.group.js +29 -29
- package/server/routes/access/controllers/access.group.post.js +54 -54
- package/server/routes/access/index.mjs +11 -11
- package/server/routes/access/schema.mjs +67 -67
- package/server/routes/calendar/controllers/calendar.data.js +125 -125
- package/server/routes/calendar/index.mjs +7 -7
- package/server/routes/calendar/schema.js +21 -21
- package/server/routes/data/controllers/cardData.js +117 -117
- package/server/routes/data/controllers/cardTabData.js +49 -49
- package/server/routes/data/controllers/funcs/getFilterSQL/index.js +92 -92
- package/server/routes/data/controllers/funcs/getFilterSQL/util/formatValue.js +170 -170
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getCustomQuery.js +13 -13
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getFilterQuery.js +64 -64
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getOptimizedQuery.js +12 -12
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getTableSql.js +34 -34
- package/server/routes/data/controllers/tableData.js +31 -31
- package/server/routes/data/controllers/tableDataId.js +27 -27
- package/server/routes/data/controllers/tableFilter.js +101 -101
- package/server/routes/data/controllers/tokenInfo.js +9 -9
- package/server/routes/data/controllers/utils/assignTokens.js +30 -30
- package/server/routes/data/controllers/utils/conditions.js +20 -20
- package/server/routes/data/controllers/utils/getColumns.js +8 -8
- package/server/routes/data/index.mjs +20 -20
- package/server/routes/data/schema.js +54 -54
- package/server/routes/menu/index.mjs +5 -5
- package/server/routes/notifications/controllers/readNotifications.js +27 -27
- package/server/routes/notifications/controllers/testEmail.js +35 -35
- package/server/routes/notifications/controllers/userNotifications.js +53 -53
- package/server/routes/notifications/funcs/addNotification.js +21 -21
- package/server/routes/notifications/funcs/sendNotification.js +92 -92
- package/server/routes/notifications/hook/onWidgetSet.js +56 -56
- package/server/routes/notifications/index.mjs +26 -26
- package/server/routes/notifications/schema.js +16 -16
- package/server/routes/print/controllers/cardPrint.js +134 -134
- package/server/routes/properties/funcs/getSettings.js +56 -56
- package/server/routes/properties/schema.js +10 -10
- package/server/routes/root.mjs +3 -3
- package/server/routes/templates/controllers/getTemplate.js +49 -49
- package/server/routes/templates/index.mjs +16 -16
- package/server/routes/templates/schema.js +8 -8
- package/server/routes/user/controllers/user.cls.id.js +14 -14
- package/server/routes/user/controllers/user.cls.js +71 -71
- package/server/routes/user/controllers/user.info.js +17 -17
- package/server/routes/user/schema.js +14 -14
- package/server/routes/widget/controllers/widget.del.js +47 -47
- package/server/routes/widget/controllers/widget.set.js +84 -84
- package/server/routes/widget/hook/onWidgetSet.js +12 -12
- package/server/routes/widget/index.mjs +16 -16
- package/server/routes/widget/schema.js +12 -12
- package/server/templates/cls/itree.recrzone_category.json +73 -73
- package/server/templates/cls/test.json +9 -9
- package/server/templates/form/admin.user_cls.data.form.json +49 -49
- package/server/templates/form/admin.user_group_rel.form.json +21 -21
- package/server/templates/form/form-user-pass.json +10 -10
- package/server/templates/form/form-user_group.json +39 -39
- package/server/templates/form/form-users.json +156 -156
- package/server/templates/form/user_group_access.form.json +22 -22
- package/server/templates/select/account_id.json +2 -2
- package/server/templates/setting/test.json +5 -5
- package/server/templates/table/gis.dataset.table.json +43 -43
- package/server/templates/table/management.user_group.table.json +112 -112
- package/server/templates/table/management.users.table.json +126 -126
- package/utils.js +29 -29
@@ -1,19 +1,19 @@
|
|
1
|
-
<div>
|
2
|
-
{{{button this token=(token table="admin.account_grants" obj=(concat 'account_id=' id) form="context.account_grants.form") }}}
|
3
|
-
{{#contentList table="(select ag_id, r.routes,attr,cls,rule_name,rule_values,account_id from admin.account_grants g left join(select routes,attr,cls,rule_name,rule_id from admin.rules )r on r.rule_id=g.rule_id)" query="account_id='{{id}}'" sql1=1}}
|
4
|
-
|
5
|
-
{{{tableList
|
6
|
-
rows
|
7
|
-
table="admin.account_grants"
|
8
|
-
id="ag_id"
|
9
|
-
form="context.account_grants.form"
|
10
|
-
uid=../user.uid
|
11
|
-
columns="
|
12
|
-
Назва, rule_name,
|
13
|
-
Роути, routes,
|
14
|
-
Атрибут, attr,
|
15
|
-
Значення, rule_values
|
16
|
-
"
|
17
|
-
}}}
|
18
|
-
{{/contentList}}
|
1
|
+
<div>
|
2
|
+
{{{button this token=(token table="admin.account_grants" obj=(concat 'account_id=' id) form="context.account_grants.form") }}}
|
3
|
+
{{#contentList table="(select ag_id, r.routes,attr,cls,rule_name,rule_values,account_id from admin.account_grants g left join(select routes,attr,cls,rule_name,rule_id from admin.rules )r on r.rule_id=g.rule_id)" query="account_id='{{id}}'" sql1=1}}
|
4
|
+
|
5
|
+
{{{tableList
|
6
|
+
rows
|
7
|
+
table="admin.account_grants"
|
8
|
+
id="ag_id"
|
9
|
+
form="context.account_grants.form"
|
10
|
+
uid=../user.uid
|
11
|
+
columns="
|
12
|
+
Назва, rule_name,
|
13
|
+
Роути, routes,
|
14
|
+
Атрибут, attr,
|
15
|
+
Значення, rule_values
|
16
|
+
"
|
17
|
+
}}}
|
18
|
+
{{/contentList}}
|
19
19
|
</div>
|
@@ -1,14 +1,14 @@
|
|
1
|
-
<div>
|
2
|
-
{{{button this token=(token table="admin.account_users" obj=(concat 'account_id=' id) form="admin.user_roles_card.form") }}}
|
3
|
-
{{#contentList table="admin.account_users" query="account_id='{{id}}'" sql1=1}}
|
4
|
-
{{{tableList
|
5
|
-
rows
|
6
|
-
table="admin.account_users"
|
7
|
-
id="au_id"
|
8
|
-
uid=../user.uid
|
9
|
-
columns="
|
10
|
-
ПІБ, <a href='/card/admin.users.table/{{user_uid}}'>{{select user_uid data='core.user_uid'}}</a>
|
11
|
-
"
|
12
|
-
}}}
|
13
|
-
{{/contentList}}
|
1
|
+
<div>
|
2
|
+
{{{button this token=(token table="admin.account_users" obj=(concat 'account_id=' id) form="admin.user_roles_card.form") }}}
|
3
|
+
{{#contentList table="admin.account_users" query="account_id='{{id}}'" sql1=1}}
|
4
|
+
{{{tableList
|
5
|
+
rows
|
6
|
+
table="admin.account_users"
|
7
|
+
id="au_id"
|
8
|
+
uid=../user.uid
|
9
|
+
columns="
|
10
|
+
ПІБ, <a href='/card/admin.users.table/{{user_uid}}'>{{select user_uid data='core.user_uid'}}</a>
|
11
|
+
"
|
12
|
+
}}}
|
13
|
+
{{/contentList}}
|
14
14
|
</div>
|
@@ -1,12 +1,12 @@
|
|
1
|
-
{{#contentList table="admin.role_access" query="route_id='{{id}}'" order="cdate desc" limit="50" sql1=1}}
|
2
|
-
<div>
|
3
|
-
{{{tableList rows
|
4
|
-
table="admin.role_access" query="route_id='{{id}}'" order="cdate desc" limit="50"
|
5
|
-
columns="
|
6
|
-
Група, <a href='/card/admin.roles.table/{{role_id}}'>{{select role_id data='core.roles'}}</a>,
|
7
|
-
Права, {{actions}},
|
8
|
-
Хто надав права, {{select access_granted data='core.user_uid'}}
|
9
|
-
"
|
10
|
-
}}}
|
11
|
-
</div>
|
1
|
+
{{#contentList table="admin.role_access" query="route_id='{{id}}'" order="cdate desc" limit="50" sql1=1}}
|
2
|
+
<div>
|
3
|
+
{{{tableList rows
|
4
|
+
table="admin.role_access" query="route_id='{{id}}'" order="cdate desc" limit="50"
|
5
|
+
columns="
|
6
|
+
Група, <a href='/card/admin.roles.table/{{role_id}}'>{{select role_id data='core.roles'}}</a>,
|
7
|
+
Права, {{actions}},
|
8
|
+
Хто надав права, {{select access_granted data='core.user_uid'}}
|
9
|
+
"
|
10
|
+
}}}
|
11
|
+
</div>
|
12
12
|
{{/contentList}}
|
@@ -1,11 +1,11 @@
|
|
1
|
-
component: default
|
2
|
-
panels:
|
3
|
-
- name: general_info
|
4
|
-
title: Загальна інформація
|
5
|
-
col: 4
|
6
|
-
- name: users
|
7
|
-
title: Користувачі
|
8
|
-
col: 8
|
9
|
-
- name: groups
|
10
|
-
title: Групи
|
11
|
-
col: 4
|
1
|
+
component: default
|
2
|
+
panels:
|
3
|
+
- name: general_info
|
4
|
+
title: Загальна інформація
|
5
|
+
col: 4
|
6
|
+
- name: users
|
7
|
+
title: Користувачі
|
8
|
+
col: 8
|
9
|
+
- name: groups
|
10
|
+
title: Групи
|
11
|
+
col: 4
|
@@ -1,17 +1,17 @@
|
|
1
|
-
{{#contentList table="(select user_uid,a.role_id,actions from admin.user_roles r inner join (select role_id,actions from admin.role_access where route_id='{{id}}' )a on a.role_id=r.role_id )" limit="50" sql1=1}}
|
2
|
-
<div>
|
3
|
-
{{{tableList rows
|
4
|
-
table="admin.role_access" query="route_id='{{id}}'" order="cdate desc" limit="50"
|
5
|
-
columns="
|
6
|
-
Користувач, {{select user_uid data='core.user_uid'}},
|
7
|
-
Група, {{select role_id data='core.roles'}} ,
|
8
|
-
Права, {{actions}},
|
9
|
-
Хто надав доступ, {{select access_granted data='core.user_uid'}},
|
10
|
-
Активність,
|
11
|
-
Надання доступу: {{formatDate access_granted_time}}<br>
|
12
|
-
Остання активність: - <br>
|
13
|
-
Створено: {{formatDate cdate}}
|
14
|
-
"
|
15
|
-
}}}
|
16
|
-
</div>
|
1
|
+
{{#contentList table="(select user_uid,a.role_id,actions from admin.user_roles r inner join (select role_id,actions from admin.role_access where route_id='{{id}}' )a on a.role_id=r.role_id )" limit="50" sql1=1}}
|
2
|
+
<div>
|
3
|
+
{{{tableList rows
|
4
|
+
table="admin.role_access" query="route_id='{{id}}'" order="cdate desc" limit="50"
|
5
|
+
columns="
|
6
|
+
Користувач, {{select user_uid data='core.user_uid'}},
|
7
|
+
Група, {{select role_id data='core.roles'}} ,
|
8
|
+
Права, {{actions}},
|
9
|
+
Хто надав доступ, {{select access_granted data='core.user_uid'}},
|
10
|
+
Активність,
|
11
|
+
Надання доступу: {{formatDate access_granted_time}}<br>
|
12
|
+
Остання активність: - <br>
|
13
|
+
Створено: {{formatDate cdate}}
|
14
|
+
"
|
15
|
+
}}}
|
16
|
+
</div>
|
17
17
|
{{/contentList}}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<div class="flex justify-between items-center border-b pb-[15px]">
|
3
3
|
<div class="font-semibold text-[16px]">Загальна інформація</div>
|
4
4
|
<div class="flex gap-4">
|
5
|
-
{{{button this token=(token table='admin.users' id=id form='admin.
|
5
|
+
{{{button this token=(token table='admin.users' id=id form='admin.users_edit.form') edit=1 title='Редагувати'}}}
|
6
6
|
{{{button this token=(token table='admin.users' id=id) del=1}}}
|
7
7
|
</div>
|
8
8
|
</div>
|
@@ -1,18 +1,18 @@
|
|
1
|
-
[
|
2
|
-
{
|
3
|
-
"id": "view",
|
4
|
-
"text": "Отримання"
|
5
|
-
},
|
6
|
-
{
|
7
|
-
"id": "add",
|
8
|
-
"text": "Внесення"
|
9
|
-
},
|
10
|
-
{
|
11
|
-
"id": "edit",
|
12
|
-
"text": "Редагування"
|
13
|
-
},
|
14
|
-
{
|
15
|
-
"id": "del",
|
16
|
-
"text": "Видалення"
|
17
|
-
}
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"id": "view",
|
4
|
+
"text": "Отримання"
|
5
|
+
},
|
6
|
+
{
|
7
|
+
"id": "add",
|
8
|
+
"text": "Внесення"
|
9
|
+
},
|
10
|
+
{
|
11
|
+
"id": "edit",
|
12
|
+
"text": "Редагування"
|
13
|
+
},
|
14
|
+
{
|
15
|
+
"id": "del",
|
16
|
+
"text": "Видалення"
|
17
|
+
}
|
18
18
|
]
|
@@ -1,14 +1,14 @@
|
|
1
|
-
[
|
2
|
-
{
|
3
|
-
"id": "my",
|
4
|
-
"text": "Власні записи"
|
5
|
-
},
|
6
|
-
{
|
7
|
-
"id": "responsible",
|
8
|
-
"text": "Призначені записи (відповідальний)"
|
9
|
-
},
|
10
|
-
{
|
11
|
-
"id": "all",
|
12
|
-
"text": "Повний доступ"
|
13
|
-
}
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"id": "my",
|
4
|
+
"text": "Власні записи"
|
5
|
+
},
|
6
|
+
{
|
7
|
+
"id": "responsible",
|
8
|
+
"text": "Призначені записи (відповідальний)"
|
9
|
+
},
|
10
|
+
{
|
11
|
+
"id": "all",
|
12
|
+
"text": "Повний доступ"
|
13
|
+
}
|
14
14
|
]
|
@@ -1,14 +1,14 @@
|
|
1
|
-
[
|
2
|
-
{
|
3
|
-
"id": "1",
|
4
|
-
"text": "Вимкнений"
|
5
|
-
},
|
6
|
-
{
|
7
|
-
"id": "2",
|
8
|
-
"text": "Увімкнений"
|
9
|
-
},
|
10
|
-
{
|
11
|
-
"id": "3",
|
12
|
-
"text": "Dev-mode"
|
13
|
-
}
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"id": "1",
|
4
|
+
"text": "Вимкнений"
|
5
|
+
},
|
6
|
+
{
|
7
|
+
"id": "2",
|
8
|
+
"text": "Увімкнений"
|
9
|
+
},
|
10
|
+
{
|
11
|
+
"id": "3",
|
12
|
+
"text": "Dev-mode"
|
13
|
+
}
|
14
14
|
]
|
@@ -1,14 +1,14 @@
|
|
1
|
-
[
|
2
|
-
{
|
3
|
-
"id": "1",
|
4
|
-
"text": "Усі"
|
5
|
-
},
|
6
|
-
{
|
7
|
-
"id": "2",
|
8
|
-
"text": "Тільки вільні"
|
9
|
-
},
|
10
|
-
{
|
11
|
-
"id": "3",
|
12
|
-
"text": "Не відображати"
|
13
|
-
}
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"id": "1",
|
4
|
+
"text": "Усі"
|
5
|
+
},
|
6
|
+
{
|
7
|
+
"id": "2",
|
8
|
+
"text": "Тільки вільні"
|
9
|
+
},
|
10
|
+
{
|
11
|
+
"id": "3",
|
12
|
+
"text": "Не відображати"
|
13
|
+
}
|
14
14
|
]
|
@@ -1,14 +1,14 @@
|
|
1
|
-
[
|
2
|
-
{
|
3
|
-
"id": "regular",
|
4
|
-
"text": "Користувач"
|
5
|
-
},
|
6
|
-
{
|
7
|
-
"id": "admin",
|
8
|
-
"text": "Адмін"
|
9
|
-
},
|
10
|
-
{
|
11
|
-
"id": "superadmin",
|
12
|
-
"text": "Суперадмін"
|
13
|
-
}
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"id": "regular",
|
4
|
+
"text": "Користувач"
|
5
|
+
},
|
6
|
+
{
|
7
|
+
"id": "admin",
|
8
|
+
"text": "Адмін"
|
9
|
+
},
|
10
|
+
{
|
11
|
+
"id": "superadmin",
|
12
|
+
"text": "Суперадмін"
|
13
|
+
}
|
14
14
|
]
|
@@ -1,12 +1,12 @@
|
|
1
|
-
[
|
2
|
-
{
|
3
|
-
"id": "true",
|
4
|
-
"text": "Так",
|
5
|
-
"color": "green"
|
6
|
-
},
|
7
|
-
{
|
8
|
-
"id": "false",
|
9
|
-
"text": "Ні",
|
10
|
-
"color": "red"
|
11
|
-
}
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"id": "true",
|
4
|
+
"text": "Так",
|
5
|
+
"color": "green"
|
6
|
+
},
|
7
|
+
{
|
8
|
+
"id": "false",
|
9
|
+
"text": "Ні",
|
10
|
+
"color": "red"
|
11
|
+
}
|
12
12
|
]
|
@@ -1,13 +1,13 @@
|
|
1
|
-
{
|
2
|
-
"account_name": {
|
3
|
-
"ua": "Назва",
|
4
|
-
"type": "Text",
|
5
|
-
"validators": [
|
6
|
-
"required"
|
7
|
-
]
|
8
|
-
},
|
9
|
-
"description": {
|
10
|
-
"ua": "Опис",
|
11
|
-
"type": "Textarea"
|
12
|
-
}
|
13
|
-
}
|
1
|
+
{
|
2
|
+
"account_name": {
|
3
|
+
"ua": "Назва",
|
4
|
+
"type": "Text",
|
5
|
+
"validators": [
|
6
|
+
"required"
|
7
|
+
]
|
8
|
+
},
|
9
|
+
"description": {
|
10
|
+
"ua": "Опис",
|
11
|
+
"type": "Textarea"
|
12
|
+
}
|
13
|
+
}
|
@@ -1,16 +1,16 @@
|
|
1
|
-
{
|
2
|
-
"property_key": {
|
3
|
-
"ua": "Ключ",
|
4
|
-
"type": "Text",
|
5
|
-
"validators": [
|
6
|
-
"required"
|
7
|
-
]
|
8
|
-
},
|
9
|
-
"property_text": {
|
10
|
-
"ua": "Значення",
|
11
|
-
"type": "Text",
|
12
|
-
"validators": [
|
13
|
-
"required"
|
14
|
-
]
|
15
|
-
}
|
1
|
+
{
|
2
|
+
"property_key": {
|
3
|
+
"ua": "Ключ",
|
4
|
+
"type": "Text",
|
5
|
+
"validators": [
|
6
|
+
"required"
|
7
|
+
]
|
8
|
+
},
|
9
|
+
"property_text": {
|
10
|
+
"ua": "Значення",
|
11
|
+
"type": "Text",
|
12
|
+
"validators": [
|
13
|
+
"required"
|
14
|
+
]
|
15
|
+
}
|
16
16
|
}
|
@@ -1,22 +1,22 @@
|
|
1
|
-
{
|
2
|
-
"schema": {
|
3
|
-
"name": {
|
4
|
-
"ua": "Назва",
|
5
|
-
"type": "text",
|
6
|
-
"validators": [
|
7
|
-
"required"
|
8
|
-
]
|
9
|
-
},
|
10
|
-
"enabled": {
|
11
|
-
"ua": "On/Off",
|
12
|
-
"type": "Switcher"
|
13
|
-
},
|
14
|
-
"info": {
|
15
|
-
"ua": "Опис",
|
16
|
-
"type": "textarea",
|
17
|
-
"validators": [
|
18
|
-
"required"
|
19
|
-
]
|
20
|
-
}
|
21
|
-
}
|
1
|
+
{
|
2
|
+
"schema": {
|
3
|
+
"name": {
|
4
|
+
"ua": "Назва",
|
5
|
+
"type": "text",
|
6
|
+
"validators": [
|
7
|
+
"required"
|
8
|
+
]
|
9
|
+
},
|
10
|
+
"enabled": {
|
11
|
+
"ua": "On/Off",
|
12
|
+
"type": "Switcher"
|
13
|
+
},
|
14
|
+
"info": {
|
15
|
+
"ua": "Опис",
|
16
|
+
"type": "textarea",
|
17
|
+
"validators": [
|
18
|
+
"required"
|
19
|
+
]
|
20
|
+
}
|
21
|
+
}
|
22
22
|
}
|
@@ -1,16 +1,16 @@
|
|
1
|
-
{
|
2
|
-
"property_key": {
|
3
|
-
"ua": "Ключ",
|
4
|
-
"type": "Text",
|
5
|
-
"validators": [
|
6
|
-
"required"
|
7
|
-
]
|
8
|
-
},
|
9
|
-
"property_json": {
|
10
|
-
"ua": "Значення",
|
11
|
-
"type": "Text",
|
12
|
-
"validators": [
|
13
|
-
"required"
|
14
|
-
]
|
15
|
-
}
|
1
|
+
{
|
2
|
+
"property_key": {
|
3
|
+
"ua": "Ключ",
|
4
|
+
"type": "Text",
|
5
|
+
"validators": [
|
6
|
+
"required"
|
7
|
+
]
|
8
|
+
},
|
9
|
+
"property_json": {
|
10
|
+
"ua": "Значення",
|
11
|
+
"type": "Text",
|
12
|
+
"validators": [
|
13
|
+
"required"
|
14
|
+
]
|
15
|
+
}
|
16
16
|
}
|
@@ -1,14 +1,14 @@
|
|
1
|
-
{
|
2
|
-
"user_uid": {
|
3
|
-
"ua": "Користувач",
|
4
|
-
"type": "Autocomplete",
|
5
|
-
"data": "core.user_uid",
|
6
|
-
"validators": [
|
7
|
-
"required"
|
8
|
-
]
|
9
|
-
},
|
10
|
-
"expiration": {
|
11
|
-
"ua": "Закінчення терміну дії доступу до групи",
|
12
|
-
"type": "DatePicker"
|
13
|
-
}
|
1
|
+
{
|
2
|
+
"user_uid": {
|
3
|
+
"ua": "Користувач",
|
4
|
+
"type": "Autocomplete",
|
5
|
+
"data": "core.user_uid",
|
6
|
+
"validators": [
|
7
|
+
"required"
|
8
|
+
]
|
9
|
+
},
|
10
|
+
"expiration": {
|
11
|
+
"ua": "Закінчення терміну дії доступу до групи",
|
12
|
+
"type": "DatePicker"
|
13
|
+
}
|
14
14
|
}
|
@@ -0,0 +1,145 @@
|
|
1
|
+
{
|
2
|
+
"schema": {
|
3
|
+
"d1": {
|
4
|
+
"type": "HTML",
|
5
|
+
"text": "<h4 class='text-center'>Акаунт</h4><br>",
|
6
|
+
"col": 12
|
7
|
+
},
|
8
|
+
"user_name": {
|
9
|
+
"type": "Text",
|
10
|
+
"validators": [
|
11
|
+
"required"
|
12
|
+
],
|
13
|
+
"ua": "Ім'я",
|
14
|
+
"i": "Вноситься ім'я користувача, що буде відображатися у системі",
|
15
|
+
"ru": "Имя"
|
16
|
+
},
|
17
|
+
"sur_name": {
|
18
|
+
"type": "Text",
|
19
|
+
"validators": [
|
20
|
+
"required"
|
21
|
+
],
|
22
|
+
"ua": "Прізвище",
|
23
|
+
"i": "Вноситься прізвище користувача, що буде відображатися у системі",
|
24
|
+
"ru": "Фамилия"
|
25
|
+
},
|
26
|
+
"father_name": {
|
27
|
+
"ua": "По-батькові",
|
28
|
+
"type": "text"
|
29
|
+
},
|
30
|
+
"phone": {
|
31
|
+
"type": "MarkedText",
|
32
|
+
"mask": "+389999999999",
|
33
|
+
"id": "1",
|
34
|
+
"ua": "Телефон",
|
35
|
+
"i": "Вноситься телефон користувача",
|
36
|
+
"ru": "Телефон"
|
37
|
+
},
|
38
|
+
"email": {
|
39
|
+
"type": "Email",
|
40
|
+
"ua": "E-mail",
|
41
|
+
"i": "Вноситься електронна адреса користувача",
|
42
|
+
"ru": "E-mail",
|
43
|
+
"validators": [
|
44
|
+
"email"
|
45
|
+
]
|
46
|
+
},
|
47
|
+
"d2": {
|
48
|
+
"type": "HTML",
|
49
|
+
"text": "<h4 class='text-center'>Логін</h4><br>",
|
50
|
+
"hidden": true,
|
51
|
+
"col": 12
|
52
|
+
},
|
53
|
+
"login": {
|
54
|
+
"type": "Text",
|
55
|
+
"hidden": true,
|
56
|
+
"ua": "Логін",
|
57
|
+
"i": "Вноситься довільний логін користувача латинськими літерами, що буде використовуватися для входу в систему",
|
58
|
+
"ru": "Логин"
|
59
|
+
},
|
60
|
+
"d3": {
|
61
|
+
"type": "HTML",
|
62
|
+
"text": "<h4 class='text-center'>Доступ</h4><br>",
|
63
|
+
"col": 12
|
64
|
+
},
|
65
|
+
"user_type": {
|
66
|
+
"type": "Autocomplete",
|
67
|
+
"data": "users.user_type",
|
68
|
+
"default": "regular",
|
69
|
+
"ua": "Тип користувача"
|
70
|
+
},
|
71
|
+
"enabled": {
|
72
|
+
"type": "Switcher",
|
73
|
+
"ua": "Off/On",
|
74
|
+
"help": "Off - користувач вимкнутий; On - Користувач увімкнутий"
|
75
|
+
},
|
76
|
+
"readonly": {
|
77
|
+
"type": "Switcher",
|
78
|
+
"ua": "Read Only",
|
79
|
+
"help": "On - У користувача усі інтерфейси в режимі перегляду, без редагування"
|
80
|
+
},
|
81
|
+
"d4": {
|
82
|
+
"type": "HTML",
|
83
|
+
"text": "<h4 class='text-center'>Профіль</h4><br>",
|
84
|
+
"col": 12
|
85
|
+
},
|
86
|
+
"user_rnokpp": {
|
87
|
+
"type": "MarkedText",
|
88
|
+
"mask": "9999999999",
|
89
|
+
"ua": "РНОКПП",
|
90
|
+
"col": 6,
|
91
|
+
"validators": [
|
92
|
+
{
|
93
|
+
"type": "regexp",
|
94
|
+
"regexp": "^([0-9]{10,10})$",
|
95
|
+
"flags": "g",
|
96
|
+
"message": "Лише цифри, 10 символів"
|
97
|
+
}
|
98
|
+
]
|
99
|
+
},
|
100
|
+
"avatar": {
|
101
|
+
"type": "File",
|
102
|
+
"ua": "Аватар",
|
103
|
+
"i": "Додається зображення, що буде відображено в системі у якості аватара цього користувача",
|
104
|
+
"ru": "Аватар",
|
105
|
+
"dir": "avatar"
|
106
|
+
},
|
107
|
+
"groups": {
|
108
|
+
"type": "DataTable",
|
109
|
+
"ua": "Групи доступу",
|
110
|
+
"parent_id": "user_uid",
|
111
|
+
"table": "admin.user_roles",
|
112
|
+
"col": 12,
|
113
|
+
"colModel": [
|
114
|
+
{
|
115
|
+
"key": "role_id",
|
116
|
+
"ua": "Група",
|
117
|
+
"type": "Autocomplete",
|
118
|
+
"data": "core.roles",
|
119
|
+
"validators": [
|
120
|
+
"required"
|
121
|
+
]
|
122
|
+
},
|
123
|
+
{
|
124
|
+
"key": "actions",
|
125
|
+
"type": "checkbox",
|
126
|
+
"multi": true,
|
127
|
+
"options": [
|
128
|
+
"view",
|
129
|
+
"add",
|
130
|
+
"edit",
|
131
|
+
"del"
|
132
|
+
],
|
133
|
+
"ua": "Доступ"
|
134
|
+
},
|
135
|
+
{
|
136
|
+
"key": "expiration",
|
137
|
+
"ua": "Закінчення терміну дії доступу до групи",
|
138
|
+
"type": "DatePicker"
|
139
|
+
}
|
140
|
+
]
|
141
|
+
}
|
142
|
+
},
|
143
|
+
"label_style": "vertical",
|
144
|
+
"width": 900
|
145
|
+
}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
{
|
2
|
-
"ua": "Налаштування",
|
3
|
-
"public": false,
|
4
|
-
"doct_id": "admin.properties"
|
1
|
+
{
|
2
|
+
"ua": "Налаштування",
|
3
|
+
"public": false,
|
4
|
+
"doct_id": "admin.properties"
|
5
5
|
}
|