Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
forena
Commits
a502d7e8
Commit
a502d7e8
authored
Sep 22, 2014
by
Pierre.Vriens
Committed by
David Metzler
Sep 22, 2014
Browse files
Updated Role detail report.
parent
457cc47b
Changes
4
Hide whitespace changes
Inline
Side-by-side
repos/drupal/role.sql
0 → 100644
View file @
a502d7e8
--ACCESS=access administration pages
SELECT
rid
,
name
from
{
role
}
where
rid
=
:
rid
\ No newline at end of file
repos/drupal/role_permissions.sql
View file @
a502d7e8
--ACCESS=administer permissions
SELECT
*
FROM
{
role_permission
}
p
WHERE
p
.
rid
=
:
r
ole
WHERE
p
.
rid
=
:
r
id
--INFO
type
[
role
]
=
int
\ No newline at end of file
repos/drupal/users_in_role.sql
View file @
a502d7e8
--ACCESS=administer users
SELECT
u
.
uid
,
u
.
name
FROM
{
role
}
r
JOIN
{
users_roles
}
ur
ON
r
.
rid
=
ur
.
rid
JOIN
{
users
}
u
ON
ur
.
uid
=
u
.
uid
WHERE
r
.
rid
=
:
r
ole
WHERE
r
.
rid
=
:
r
id
--INFO
type
[
role
]
=
int
\ No newline at end of file
repos/reports/drupaladmin/role_detail.frx
View file @
a502d7e8
<?xml version="1.0"?>
<?xml version="1.0"
encoding="UTF-8"
?>
<!DOCTYPE root [
<!ENTITY nbsp " ">
]>
<html
xmlns:frx=
"urn:FrxReports"
>
<head>
<title>
Roles
</title>
<title>
Role
Detail
s
</title>
<frx:category>
Drupal Administration
</frx:category>
<frx:options
hidden=
"0"
/>
<frx:options/>
<frx:parameters>
<frx:parm
id=
"role"
label=
""
require=
"0"
value=
""
desc=
""
data_source=
"drupal/roles"
data_field=
""
type=
"select"
/>
<frx:parm
id=
"rid"
label=
"Role"
data_source=
"drupal/roles"
type=
"select"
require=
"1"
></frx:parm>
</frx:parameters>
<frx:docgen>
</frx:docgen>
<frx:fields>
<frx:field
id=
"user.name"
link=
"user/{uid}/edit"
/>
<frx:field
id=
"user.name"
/>
<frx:field
id=
"user.view"
link=
"user/{uid}"
target=
"_blank"
>
View Profile
</frx:field>
<frx:field
id=
"user.edit"
link=
"user/{uid}/edit"
target=
"_blank"
>
Edit Profile
</frx:field>
<frx:field
id=
"user.id"
/>
<frx:field
id=
"permissions.edit"
link=
"admin/people/permissions/{rid}"
target=
"_blank"
>
Edit Permissions
</frx:field>
</frx:fields>
<style/><frx:menu/><frx:cache/>
</head>
<body>
<div
frx:block=
"drupal/roles"
id=
"forena-1"
>
<table
frx:foreach=
"*"
id=
"forena-2"
>
<tbody>
<tr>
<th>
rid
</th>
<td>
{rid}
</td>
</tr>
<tr>
<th>
name
</th>
<td>
{name}
</td>
</tr>
</tbody>
</table>
<div
frx:renderer=
"FrxParameterForm"
frx:title=
"Select a Role"
frx:collapsible=
"1"
frx:collapsed=
"0"
frx:submit=
"Show users and their permissions"
id=
"parmeter-form"
>
<p>
Role: {rid}
</p>
<p>
{submit}
</p>
</div>
<div
frx:block=
"drupal/role"
frx:foreach=
"*"
id=
"role"
>
<h2
frx:renderer=
"FrxTitle"
>
Role: {name}
</h2>
</div>
<div
id=
"forena-3"
frx:block=
"drupal/users_in_role"
>
<div
frx:block=
"drupal/users_in_role"
>
<table>
<thead>
<tr>
<th>
Members
</th>
<th>
User Name
</th>
<th>
User Id
</th>
<th
colspan=
"2"
>
Actions
</th>
</tr>
</thead>
<tbody>
<tr
id=
"user"
frx:foreach=
"*"
>
<td>
{user.name}
</td>
<td><strong>
{user.name}
</strong></td>
<td>
{user.uid}
</td>
<td>
{user.view}
</td>
<td>
{user.edit}
</td>
</tr>
</tbody>
</table>
</div>
<div
id=
"forena-5"
frx:block=
"drupal/role_permissions"
>
<div
frx:block=
"drupal/role_permissions"
>
<table>
<thead>
<tr>
<th>
Permissions
</th>
<th>
Permissions
granted to {role.name}
</th>
</tr>
</thead>
<tbody>
<tr
id=
"forena-6"
frx:foreach=
"*"
>
<tr
frx:foreach=
"*"
>
<td>
{permission}
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
</html>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment