forked from TheMaxium69/SolidServ-WHMCS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
account-user-permissions.tpl
36 lines (28 loc) · 1.26 KB
/
account-user-permissions.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<div class="card">
<div class="card-body">
<h3 class="card-title">{lang key='userManagement.managePermissions'}</h3>
<p>{$user->email}</p>
<p class="h5">{lang key="userManagement.permissions"}</p>
<form method="post" action="{routePath('account-users-permissions-save', $user->id)}">
{foreach $permissions as $permission}
<label class="form-check form-check-inline">
<input type="checkbox" class="form-check-input" name="perms[{$permission.key}]" value="1"{if $userPermissions->hasPermission($permission.key)} checked{/if}>
{$permission.title}
<span class="d-none d-md-inline">-</span>
<br class="d-md-none">
<span class="text-muted">{$permission.description}</span>
</label>
<br>
{/foreach}
<br>
<p>
<button type="submit" class="btn btn-primary">
{lang key="clientareasavechanges"}
</button>
<a href="{routePath('account-users')}" class="btn btn-default">
{lang key="clientareacancel"}
</a>
</p>
</form>
</div>
</div>