aboutsummaryrefslogtreecommitdiff
path: root/mod/ecml/views/default
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-15 22:10:08 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-15 22:10:08 +0000
commit0aac4dadcbe972f6aecef078e1435e79ea07c7ee (patch)
tree384b4aab8ff9844a5c983bc7fbe3f64271f04872 /mod/ecml/views/default
parent5eaed810d1e3b194dd01860d9ca4c86dbc50717e (diff)
downloadelgg-0aac4dadcbe972f6aecef078e1435e79ea07c7ee.tar.gz
elgg-0aac4dadcbe972f6aecef078e1435e79ea07c7ee.tar.bz2
Inverted the admin matrix for ecml views / keywords.
git-svn-id: http://code.elgg.org/elgg/trunk@5757 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/ecml/views/default')
-rw-r--r--mod/ecml/views/default/ecml/admin/css.php2
-rw-r--r--mod/ecml/views/default/ecml/admin/ecml_admin.php15
2 files changed, 8 insertions, 9 deletions
diff --git a/mod/ecml/views/default/ecml/admin/css.php b/mod/ecml/views/default/ecml/admin/css.php
index 4a9cd8e4d..960941a03 100644
--- a/mod/ecml/views/default/ecml/admin/css.php
+++ b/mod/ecml/views/default/ecml/admin/css.php
@@ -6,7 +6,7 @@
text-align: center;
padding: 5px;
}
-.ecml_admin_table th, .ecml_view_desc {
+.ecml_admin_table th, .ecml_keyword_desc {
font-weight: bold;
}
.ecml_row_odd {
diff --git a/mod/ecml/views/default/ecml/admin/ecml_admin.php b/mod/ecml/views/default/ecml/admin/ecml_admin.php
index 2a5663327..34f777414 100644
--- a/mod/ecml/views/default/ecml/admin/ecml_admin.php
+++ b/mod/ecml/views/default/ecml/admin/ecml_admin.php
@@ -26,23 +26,22 @@ $form_body = <<<___END
<th>&nbsp</th>
___END;
-foreach ($keywords as $keyword => $info) {
- $desc = $info['description'];
-
- $form_body .= "<th><acronym title=\"$desc\">$keyword</acronym></th>";
+foreach ($views as $view => $view_desc) {
+ $form_body .= "<th><acronym title=\"$view\">$view_desc</acronym></th>";
}
$form_body .= '</tr>';
$odd = 'odd';
-foreach ($views as $view => $desc) {
+foreach ($keywords as $keyword => $keyword_info) {
+ $keyword_desc = $keyword_info['description'];
$form_body .= "
<tr class=\"ecml_row_$odd\">
- <td class=\"ecml_view_desc\">$desc</td>
+ <td class=\"ecml_keyword_desc\"><acronym title=\"$keyword_desc\">$keyword</acryonym></td>
";
- foreach ($keywords as $keyword => $info) {
+ foreach ($views as $view => $view_info) {
// if this is restricted and we're not on the specified view don't allow changes
// since we don't save this, no need to pass a name
- if (isset($info['restricted']) && !in_array($view, $info['restricted'])) {
+ if (isset($keyword_info['restricted']) && !in_array($view, $keyword_info['restricted'])) {
$form_body .= "<td><input type=\"checkbox\" checked=\"checked\" disabled=\"disabled\"/></td>";
} else {
$checked = (in_array($keyword, $perms[$view])) ? 'checked="checked"' : '';