Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
drupal.org
better_formats
Commits
c96316b5
Commit
c96316b5
authored
May 31, 2009
by
dragonwize
Browse files
Show blocks fieldset with help when no roles have administer blocks permission.
parent
ed5acef2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
22 deletions
+24
-22
better-formats-defaults-admin-form.tpl.php
better-formats-defaults-admin-form.tpl.php
+24
-22
No files found.
better-formats-defaults-admin-form.tpl.php
View file @
c96316b5
...
...
@@ -71,30 +71,32 @@
</table>
</fieldset>
<?php
if
(
isset
(
$block_
default
_rows
)
)
:
?>
<?php
if
(
$_GET
[
'q'
]
===
'admin/settings/filters/
default
s'
)
:
?>
<fieldset>
<legend><strong>
<?php
print
t
(
'Block defaults'
);
?>
</strong></legend>
<table
id=
"block-format-defaults"
>
<thead>
<tr>
<th>
<?php
print
t
(
'Role'
);
?>
</th>
<th>
<?php
print
t
(
'Default format'
);
?>
</th>
<th>
<?php
print
t
(
'Weight'
);
?>
</th>
</tr>
</thead>
<tbody>
<?php
$row
=
0
;
?>
<?php
foreach
(
$block_default_rows
as
$rid
=>
$data
)
:
?>
<tr
class=
"draggable
<?php
print
$row
%
2
?
'odd'
:
'even'
;
?>
"
>
<td
class=
""
>
<?php
print
$data
->
role
;
?>
</td>
<td>
<?php
print
$data
->
format_select
;
?>
</td>
<td>
<?php
print
$data
->
weight_select
;
?>
</td>
</tr>
<?php
$row
++
;
?>
<?php
endforeach
;
?>
</tbody>
</table>
<div
class=
"description"
>
<?php
print
t
(
'Only roles that have "administer blocks" permission are shown.'
);
?>
</div>
<?php
if
(
isset
(
$block_default_rows
))
:
?>
<table
id=
"block-format-defaults"
>
<thead>
<tr>
<th>
<?php
print
t
(
'Role'
);
?>
</th>
<th>
<?php
print
t
(
'Default format'
);
?>
</th>
<th>
<?php
print
t
(
'Weight'
);
?>
</th>
</tr>
</thead>
<tbody>
<?php
$row
=
0
;
?>
<?php
foreach
(
$block_default_rows
as
$rid
=>
$data
)
:
?>
<tr
class=
"draggable
<?php
print
$row
%
2
?
'odd'
:
'even'
;
?>
"
>
<td
class=
""
>
<?php
print
$data
->
role
;
?>
</td>
<td>
<?php
print
$data
->
format_select
;
?>
</td>
<td>
<?php
print
$data
->
weight_select
;
?>
</td>
</tr>
<?php
$row
++
;
?>
<?php
endforeach
;
?>
</tbody>
</table>
<?php
endif
;
?>
<div
class=
"description"
>
<?php
print
t
(
'Only roles that have the "administer blocks" permission are shown.'
);
?>
</div>
</fieldset>
<?php
endif
;
?>
...
...
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