@opengis/admin 0.1.98 → 0.1.99
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{IconChevronDown-irxwDmQp.js → IconChevronDown-CHEXfG3v.js} +1 -1
- package/dist/{add-page-UtwEANeW.js → add-page-DGnHyxhv.js} +1 -1
- package/dist/{admin-interface-PJfd31TQ.js → admin-interface-D2IezdVx.js} +2 -2
- package/dist/{admin-view-BuVQ8ziq.js → admin-view-CtPrS-pT.js} +2 -2
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +51 -51
- package/dist/{card-view-BpcpqR_U.js → card-view-WP8gH2Ul.js} +1 -1
- package/dist/{edit-page-Bd6VW9hb.js → edit-page-0YrQy_VE.js} +1 -1
- package/dist/{import-file-eH-_Imyb.js → import-file-DoWm0VXP.js} +4952 -4894
- package/module/settings/card/admin.accounts.table/index.yml +8 -0
- package/module/settings/card/admin.accounts.table/rules.hbs +19 -0
- package/module/settings/card/admin.accounts.table/users.hbs +14 -0
- package/module/settings/card/admin.roles.table/access.hbs +3 -24
- package/module/settings/card/admin.roles.table/general_info.hbs +1 -17
- package/module/settings/card/admin.roles.table/index.yml +4 -1
- package/module/settings/card/admin.roles.table/users.hbs +6 -27
- package/module/settings/card/admin.routes.table/general_info.hbs +14 -41
- package/module/settings/card/admin.routes.table/groups.hbs +12 -0
- package/module/settings/card/admin.routes.table/index.yml +3 -0
- package/module/settings/card/admin.routes.table/users.hbs +16 -33
- package/module/settings/card/admin.users.table/context.hbs +15 -0
- package/module/settings/card/admin.users.table/general_info.hbs +13 -26
- package/module/settings/card/admin.users.table/index.yml +17 -7
- package/module/settings/card/admin.users.table/last_login.hbs +10 -0
- package/module/settings/card/admin.users.table/logs.hbs +11 -31
- package/module/settings/card/admin.users.table/routes.hbs +8 -0
- package/module/settings/card/admin.users.table/user_roles.hbs +13 -25
- package/module/settings/form/admin.accounts.form.json +13 -0
- package/module/settings/form/admin.rules.form.json +31 -0
- package/module/settings/form/admin.user_roles.form.json +0 -8
- package/module/settings/form/admin.user_roles_card.form.json +14 -0
- package/module/settings/form/admin.users.form.json +2 -2
- package/module/settings/form/context.account_grants.form.json +24 -0
- package/module/settings/form/context.account_users.form.json +12 -0
- package/module/settings/menu.json +24 -0
- package/module/settings/select/core.accounts.sql +1 -0
- package/module/settings/select/core.roles.sql +1 -1
- package/module/settings/select/core.rules.sql +1 -0
- package/module/settings/select/core.user_uid.sql +0 -1
- package/module/settings/table/admin.accounts.table.json +42 -0
- package/module/settings/table/admin.roles.table.json +1 -1
- package/module/settings/table/admin.routes.table.json +9 -4
- package/module/settings/table/admin.rules.table.json +77 -0
- package/module/settings/table/admin.users.table.json +17 -6
- package/module/settings/table/context.account_grants.table.json +68 -0
- package/module/settings/table/context.account_users.table.json +38 -0
- package/package.json +4 -3
- package/server/helpers/core/select.js +4 -6
- package/server/helpers/list/tableList.js +9 -6
- package/server/routes/access/controllers/access.group.js +1 -1
- package/server/routes/access/controllers/access.group.post.js +4 -4
- package/server/routes/data/controllers/cardData.js +11 -0
- package/server/routes/data/controllers/tableData.js +13 -4
- package/server/routes/menu/controllers/getMenu.js +12 -25
- package/module/settings/select/core.roles.json +0 -3
@@ -0,0 +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}}
|
19
|
+
</div>
|
@@ -0,0 +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}}
|
14
|
+
</div>
|
@@ -1,25 +1,4 @@
|
|
1
|
-
{{#contentList table="admin.
|
2
|
-
|
3
|
-
|
4
|
-
<tr>
|
5
|
-
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
|
6
|
-
Інтерфейс</th>
|
7
|
-
|
8
|
-
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
|
9
|
-
Права</th>
|
10
|
-
</tr>
|
11
|
-
</thead>
|
12
|
-
<tbody class="bg-white divide-y divide-gray-200">
|
13
|
-
{{#each rows}}
|
14
|
-
<tr>
|
15
|
-
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-F500">
|
16
|
-
{{route_id}}</td>
|
17
|
-
|
18
|
-
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-F500">
|
19
|
-
{{actions}}
|
20
|
-
</td>
|
21
|
-
</tr>
|
22
|
-
{{/each}}
|
23
|
-
</tbody>
|
24
|
-
</table>
|
1
|
+
{{#contentList table="admin.role_access" query="role_id='{{id}}'" order="cdate desc" sql1=1}}
|
2
|
+
{{{tableList rows columns="Інтерфейс,route_id,Права,{{actions}}"}}}
|
3
|
+
|
25
4
|
{{/contentList}}
|
@@ -1,17 +1 @@
|
|
1
|
-
|
2
|
-
<div class="grid grid-cols-1 gap-1 py-3 sm:grid-cols-3 sm:gap-4">
|
3
|
-
<dt class="font-medium text-gray-900">Назва</dt>
|
4
|
-
<dd class="text-gray-700 sm:col-span-2">{{name}}</dd>
|
5
|
-
</div>
|
6
|
-
|
7
|
-
<div class="grid grid-cols-1 gap-1 py-3 sm:grid-cols-3 sm:gap-4">
|
8
|
-
<dt class="font-medium text-gray-900">On/Off</dt>
|
9
|
-
<dd class="text-gray-700 sm:col-span-2">{{select enabled data="yes_no"}}</dd>
|
10
|
-
</div>
|
11
|
-
|
12
|
-
<div class="grid grid-cols-1 gap-1 py-3 sm:grid-cols-3 sm:gap-4">
|
13
|
-
<dt class="font-medium text-gray-900">Опис</dt>
|
14
|
-
<dd class="text-gray-700 sm:col-span-2">{{info}}</dd>
|
15
|
-
</div>
|
16
|
-
|
17
|
-
</dl>
|
1
|
+
{{{descriptionList this columns="Назва,name,On/Off,enabled,Опис,info"}}}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
component: default
|
2
|
+
# title: Мій підпис
|
2
3
|
tokens:
|
3
4
|
id: { id: "{{id}}" }
|
4
5
|
panels:
|
@@ -7,9 +8,11 @@ panels:
|
|
7
8
|
items:
|
8
9
|
- name: general_info
|
9
10
|
title: Загальна інформація
|
11
|
+
- name: users
|
12
|
+
title: Користувачі
|
10
13
|
- name: access
|
11
14
|
title: Права до інтерфейсів
|
12
|
-
|
15
|
+
count: select 'Права до інтерфейсів 1' as title, 1 as count
|
13
16
|
|
14
17
|
- type: container
|
15
18
|
col: 8
|
@@ -1,28 +1,7 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
|
8
|
-
Закінчення терміну дії доступу до групи</th>
|
9
|
-
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
|
10
|
-
Дата надання доступу</th>
|
11
|
-
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
|
12
|
-
Хто надав доступ</th>
|
13
|
-
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
|
14
|
-
Дії</th>
|
15
|
-
</tr>
|
16
|
-
</thead>
|
17
|
-
<tbody class="bg-white divide-y divide-gray-200">
|
18
|
-
{{#each rows}}
|
19
|
-
<tr>
|
20
|
-
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-F500">{{user_uid}}</td>
|
21
|
-
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-F500">{{formatDate expiration}}</td>
|
22
|
-
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-F500">{{formatDate access_granted_time}}</td>
|
23
|
-
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-F500">{{access_granted}}</td>
|
24
|
-
</tr>
|
25
|
-
{{/each}}
|
26
|
-
</tbody>
|
27
|
-
</table>
|
1
|
+
|
2
|
+
{{#contentList table="(select ugr_id, user_name || coalesce(login,'') as name,role_id,uid from admin.users left join ( SELECT user_uid, ugr_id, role_id FROM admin.user_roles )r on users.uid=r.user_uid)q" query="role_id='{{id}}'" limit="50" sql1=1}}
|
3
|
+
{{{button this token=(token table="admin.user_roles" obj=(concat 'role_id=' @root.id) form="admin.user_roles_card.form") title="Додати"}}}
|
4
|
+
|
5
|
+
{{{tableList rows columns="Користувач,<a href='/card/admin.users.table/{{uid}}'>{{name}}</a>" table="admin.user_roles" id="ugr_id" uid=../user.uid}}}
|
6
|
+
|
28
7
|
{{/contentList}}
|
@@ -1,41 +1,14 @@
|
|
1
|
-
<
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
</div>
|
16
|
-
|
17
|
-
<div class="grid grid-cols-1 gap-1 py-3 sm:grid-cols-3 sm:gap-4">
|
18
|
-
<dt class="font-medium text-gray-900">Кількість груп</dt>
|
19
|
-
<dd class="text-gray-700 sm:col-span-2">{{roles_count}}</dd>
|
20
|
-
</div>
|
21
|
-
|
22
|
-
<div class="grid grid-cols-1 gap-1 py-3 sm:grid-cols-3 sm:gap-4">
|
23
|
-
<dt class="font-medium text-gray-900">Ознака чи для всіх показується</dt>
|
24
|
-
<dd class="text-gray-700 sm:col-span-2">{{select public data="yes_no"}}</dd>
|
25
|
-
</div>
|
26
|
-
|
27
|
-
<div class="grid grid-cols-1 gap-1 py-3 sm:grid-cols-3 sm:gap-4">
|
28
|
-
<dt class="font-medium text-gray-900">Пункт меню</dt>
|
29
|
-
<dd class="text-gray-700 sm:col-span-2">{{menu_id}}</dd>
|
30
|
-
</div>
|
31
|
-
|
32
|
-
<div class="grid grid-cols-1 gap-1 py-3 sm:grid-cols-3 sm:gap-4">
|
33
|
-
<dt class="font-medium text-gray-900">On / Off</dt>
|
34
|
-
<dd class="text-gray-700 sm:col-span-2">{{select enabled data="yes_no"}}</dd>
|
35
|
-
</div>
|
36
|
-
|
37
|
-
<div class="grid grid-cols-1 gap-1 py-3 sm:grid-cols-3 sm:gap-4">
|
38
|
-
<dt class="font-medium text-gray-900">Дата створення</dt>
|
39
|
-
<dd class="text-gray-700 sm:col-span-2">{{formatDate cdate}}</dd>
|
40
|
-
</div>
|
41
|
-
</dl>
|
1
|
+
<div>
|
2
|
+
{{{descriptionList
|
3
|
+
this
|
4
|
+
columns="
|
5
|
+
Назва файлу інтерфейсу, alias,
|
6
|
+
Назва інтерфейсу українською, title,
|
7
|
+
Кількість користувачів, user_count,
|
8
|
+
Кількість груп, roles_count,
|
9
|
+
Ознака чи для всіх показується, public,
|
10
|
+
Пункт меню, menu_id,
|
11
|
+
On / Off, enabled
|
12
|
+
"
|
13
|
+
}}}
|
14
|
+
</div>
|
@@ -0,0 +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>
|
12
|
+
{{/contentList}}
|
@@ -1,34 +1,17 @@
|
|
1
|
-
{{#contentList table="admin.
|
2
|
-
<
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
<tr>
|
18
|
-
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-F500">
|
19
|
-
{{!-- {{select user_uid data="core.user_uid"}} --}}
|
20
|
-
{{user_uid}}
|
21
|
-
</td>
|
22
|
-
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-F500">
|
23
|
-
{{!-- {{select actions data="core.actions"}} --}}
|
24
|
-
{{actions}}
|
25
|
-
</td>
|
26
|
-
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-F500">
|
27
|
-
{{!-- {{select access_granted data="core.user_uid"}} --}}
|
28
|
-
{{access_granted}}
|
29
|
-
</td>
|
30
|
-
</tr>
|
31
|
-
{{/each}}
|
32
|
-
</tbody>
|
33
|
-
</table>
|
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>
|
34
17
|
{{/contentList}}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<div>
|
2
|
+
|
3
|
+
{{#contentList table="(select rule_name,attr,rule_values from admin.account_grants g
|
4
|
+
left join (select rule_name,attr,rule_id from admin.rules )r on r.rule_id=g.rule_id
|
5
|
+
where account_id in (select account_id from admin.account_users where user_uid='{{id}}'))" limit="50" sql1=1}}
|
6
|
+
{{{tableList rows
|
7
|
+
|
8
|
+
columns="
|
9
|
+
Правило, rule_name,
|
10
|
+
Атрибут,attr,
|
11
|
+
Значення,rule_values
|
12
|
+
"
|
13
|
+
}}}
|
14
|
+
{{/contentList}}
|
15
|
+
</div>
|
@@ -1,26 +1,13 @@
|
|
1
|
-
<
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
<dd class="text-gray-700 sm:col-span-2">{{phone}}</dd>
|
15
|
-
</div>
|
16
|
-
|
17
|
-
<div class="grid grid-cols-1 gap-1 py-3 sm:grid-cols-3 sm:gap-4">
|
18
|
-
<dt class="font-medium text-gray-900">РНОКПП</dt>
|
19
|
-
<dd class="text-gray-700 sm:col-span-2">{{user_rnokpp}}</dd>
|
20
|
-
</div>
|
21
|
-
|
22
|
-
<div class="grid grid-cols-1 gap-1 py-3 sm:grid-cols-3 sm:gap-4">
|
23
|
-
<dt class="font-medium text-gray-900">ЄДРПОУ</dt>
|
24
|
-
<dd class="text-gray-700 sm:col-span-2">{{organ_edrpou}}</dd>
|
25
|
-
</div>
|
26
|
-
</dl>
|
1
|
+
<div>
|
2
|
+
|
3
|
+
{{{descriptionList
|
4
|
+
this
|
5
|
+
columns="
|
6
|
+
ПІБ, {{sur_name}} {{user_name}} {{father_name}},
|
7
|
+
Електронна пошта, {{email}},
|
8
|
+
Телефон, {{phone}},
|
9
|
+
РНОКПП, {{user_rnokpp}},
|
10
|
+
ЄДРПОУ, {{organ_edrpou}}
|
11
|
+
"
|
12
|
+
}}}
|
13
|
+
</div>
|
@@ -1,12 +1,22 @@
|
|
1
1
|
component: default
|
2
2
|
panels:
|
3
|
-
-
|
4
|
-
title: Загальна інформація
|
3
|
+
- type: container
|
5
4
|
col: 4
|
6
|
-
|
7
|
-
|
5
|
+
items:
|
6
|
+
- name: general_info
|
7
|
+
title: Загальна інформація
|
8
|
+
- name: context
|
9
|
+
title: Повноваження
|
10
|
+
- name: logs
|
11
|
+
title: Активність
|
12
|
+
- name: last_login
|
13
|
+
title: Інформація про вхід до системи
|
14
|
+
|
15
|
+
- type: container
|
8
16
|
col: 8
|
9
17
|
items:
|
10
|
-
|
11
|
-
|
12
|
-
|
18
|
+
- name: user_roles
|
19
|
+
col: 6
|
20
|
+
title: Перелік груп
|
21
|
+
- name: routes
|
22
|
+
title: Інтерфейси
|
@@ -1,31 +1,11 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
</thead>
|
13
|
-
<tbody class="bg-white divide-y divide-gray-200">
|
14
|
-
{{#each rows}}
|
15
|
-
<tr>
|
16
|
-
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-F500">
|
17
|
-
{{formatDate cdate format="dd.MM.yy hh:mm"}}</td>
|
18
|
-
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-F500">
|
19
|
-
{{change_type}}</td>
|
20
|
-
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-F500">
|
21
|
-
{{entity_type}}</td>
|
22
|
-
</tr>
|
23
|
-
{{else}}
|
24
|
-
<tr>
|
25
|
-
<td colspan="3" class="px-6 py-4 whitespace-nowrap text-center text-sm font-medium text-gray-500">
|
26
|
-
Поки що не зафіксовано активності</td>
|
27
|
-
</tr>
|
28
|
-
{{/each}}
|
29
|
-
</tbody>
|
30
|
-
</table>
|
31
|
-
{{/contentList}}
|
1
|
+
<div>
|
2
|
+
{{#contentList table="log.table_changes" query="uid='{{id}}'" order="cdate desc" sql1=1}}
|
3
|
+
{{{tableList rows
|
4
|
+
columns="
|
5
|
+
Дата, {{formatDate cdate}},
|
6
|
+
Тип операції, {{change_type}},
|
7
|
+
Таблиця, {{entity_type}}
|
8
|
+
"
|
9
|
+
}}}
|
10
|
+
{{/contentList}}
|
11
|
+
</div>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<div>
|
2
|
+
{{#contentList sql1=1 table="(SELECT alias, table_name, title,(select name from admin.roles where role_id=g.role_id) as role_name, g.actions,
|
3
|
+
(select string_agg(attr::text || rule_values::text,',') from admin.rules left join (select rule_id,rule_values from admin.account_grants where account_id in (select account_id from admin.account_users where user_uid='{{id}}'))g on g.rule_id=rules.rule_id where r.route_id=any(routes)) as context
|
4
|
+
FROM admin.routes r right join (select route_id, actions,role_id from admin.role_access n where role_id in (SELECT role_id FROM admin.user_roles where user_uid='{{id}}'))g on r.route_id=g.route_id )" }}
|
5
|
+
|
6
|
+
{{{tableList rows columns="Назва, title, Шлях, alias,Таблиця, table_name, Група, role_name, Повноваження, context, Дії, {{actions}} "}}}
|
7
|
+
{{/contentList}}
|
8
|
+
</div>
|
@@ -1,25 +1,13 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
{{#each rows}}
|
15
|
-
<tr>
|
16
|
-
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-F500">
|
17
|
-
{{select role_id data="core.roles"}}</td>
|
18
|
-
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-F500">
|
19
|
-
{{formatDate expiration}}</td>
|
20
|
-
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-F500"></td>
|
21
|
-
</tr>
|
22
|
-
{{/each}}
|
23
|
-
</tbody>
|
24
|
-
</table>
|
25
|
-
{{/contentList}}
|
1
|
+
<div>
|
2
|
+
{{{button this token=(token table="admin.user_roles" obj=(concat 'user_uid=' id) form="admin.user_roles.form") }}}
|
3
|
+
{{#contentList table="admin.user_roles" query="user_uid='{{id}}'" order="cdate desc" limit="50" sql1=1}}
|
4
|
+
{{{tableList rows
|
5
|
+
table="admin.user_roles"
|
6
|
+
id="ugr_id"
|
7
|
+
uid=../user.uid
|
8
|
+
columns="
|
9
|
+
Група, <a href='/card/admin.roles.table/{{role_id}}'>{{select role_id data='core.roles'}}</a>
|
10
|
+
"
|
11
|
+
}}}
|
12
|
+
{{/contentList}}
|
13
|
+
</div>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
{
|
2
|
+
"rule_name": {
|
3
|
+
"ua": "Назва",
|
4
|
+
"type": "Text",
|
5
|
+
"validators": [
|
6
|
+
"required"
|
7
|
+
]
|
8
|
+
},
|
9
|
+
"attr": {
|
10
|
+
"ua": "Колонка",
|
11
|
+
"type": "Text",
|
12
|
+
"data": "core.rule_type"
|
13
|
+
},
|
14
|
+
"rule_type": {
|
15
|
+
"ua": "Тип повноваження",
|
16
|
+
"type": "Text",
|
17
|
+
"data": "core.rule_type"
|
18
|
+
},
|
19
|
+
"cls": {
|
20
|
+
"ua": "CLS",
|
21
|
+
"type": "Text"
|
22
|
+
},
|
23
|
+
"rule_query": {
|
24
|
+
"ua": "Запит",
|
25
|
+
"type": "Text"
|
26
|
+
},
|
27
|
+
"routes": {
|
28
|
+
"ua": "Роути",
|
29
|
+
"type": "text"
|
30
|
+
}
|
31
|
+
}
|
@@ -133,7 +133,7 @@
|
|
133
133
|
"col": 12,
|
134
134
|
"colModel": [
|
135
135
|
{
|
136
|
-
"
|
136
|
+
"key": "role_id",
|
137
137
|
"ua": "Група",
|
138
138
|
"type": "Select",
|
139
139
|
"data": "core.roles",
|
@@ -142,7 +142,7 @@
|
|
142
142
|
]
|
143
143
|
},
|
144
144
|
{
|
145
|
-
"
|
145
|
+
"key": "expiration",
|
146
146
|
"ua": "Закінчення терміну дії доступу до групи",
|
147
147
|
"type": "DatePicker"
|
148
148
|
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
{
|
2
|
+
"rule_id": {
|
3
|
+
"ua": "id Правила",
|
4
|
+
"type": "Select",
|
5
|
+
"data": "core.rules"
|
6
|
+
},
|
7
|
+
"rule_values": {
|
8
|
+
"ua": "Значення",
|
9
|
+
"type": "text"
|
10
|
+
},
|
11
|
+
"expire_date": {
|
12
|
+
"ua": "Дата закінчення дії дозволу",
|
13
|
+
"type": "Datepicker"
|
14
|
+
},
|
15
|
+
"actions": {
|
16
|
+
"ua": "Дії",
|
17
|
+
"type": "checkbox",
|
18
|
+
"options": [
|
19
|
+
"edit",
|
20
|
+
"edit",
|
21
|
+
"add"
|
22
|
+
]
|
23
|
+
}
|
24
|
+
}
|