templates.blossom.users.user.ftl Maven / Gradle / Ivy
<#import "/spring.ftl" as spring>
<#import "/blossom/master/master.ftl" as master>
<#import "/blossom/utils/tabulation.ftl" as tabulation>
<#import "/blossom/utils/privilege.ftl" as privilege>
<#import "/blossom/utils/buttons.ftl" as button>
<@master.default currentUser=currentUser>
${user.firstname +' '+ user.lastname}
<#if user.activated>
<@privilege.has currentUser=currentUser privilege="administration:admin:impersonate">
@privilege.has>
#if>
<@privilege.has currentUser=currentUser privilege="administration:users:delete">
<@button.delete id=user.id?c uri='/blossom/administration/users/'+user.id?c+'/_delete'/>
@privilege.has>
<@tabulation.tabs
id="userContent"
currentUser=currentUser
tabs=[
{
"isActive": true,
"linkLabel": "panel.information",
"view": "/blossom/administration/users/${user.id?c}/_informations",
"edit": "/blossom/administration/users/${user.id?c}/_informations/_edit",
"privilege":"administration:users:read"
},
{
"isActive": false,
"linkLabel": "users.user.groups",
"view": "/blossom/administration/memberships/users/${user.id?c}/groups",
"edit": "/blossom/administration/memberships/users/${user.id?c}/groups/_edit",
"privilege":"administration:memberships:read"
},
{
"isActive": false,
"linkLabel": "users.user.roles",
"view": "/blossom/administration/responsabilities/users/${user.id?c}/roles",
"edit": "/blossom/administration/responsabilities/users/${user.id?c}/roles/_edit",
"privilege":"administration:responsabilities:read"
}
]
/>
@master.default>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy