Skip to content

Commit

Permalink
Bedazzles indexing configuration tables in admin.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Boggs committed May 2, 2012
1 parent 02f3dfd commit 069461a
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 14 deletions.
29 changes: 25 additions & 4 deletions _sass/solr_search.scss
Expand Up @@ -63,7 +63,7 @@
}
}

.facet-fields tr:nth-child(2n+1) {
.facet-fields tbody tr:nth-child(2n+1) {
background-color: #eee;
}

Expand Down Expand Up @@ -215,6 +215,27 @@ ul.facets, ul.facets ul {

#facets-form {

.ui-state-focus {
-moz-box-shadow: none !important;
-webkit-box-shadow: none !important;
box-shadow:none !important;
outline:none !important;
}

.ui-accordion-header a {
padding-left: 1.6em !important;
}

h3 {
font-size: 15px;
font-weight:bold;
margin:0;

.ui-icon {
opacity: 0.5;
}

}
legend {
width: 100%;
}
Expand All @@ -231,9 +252,9 @@ ul.facets, ul.facets ul {
width: 25%;
}

td {
padding-top: 0;
padding-bottom: 0;
table {
margin:0;
padding:0;
}

table, tr {
Expand Down
18 changes: 9 additions & 9 deletions views/admin/config/index.php
Expand Up @@ -27,7 +27,12 @@
<?php if (!empty($err)) { echo '<p class="error">' . html_escape($err) . '</p>'; } ?>

<form id="facets-form" method="post">
<table>

<?php foreach ($form->getDisplayGroups() as $group): ?>

<h3 class="fieldset"><a href="#"><?php echo $group->getLegend(); ?></a></h3>
<div>
<table class="facet-fields">
<thead>
<tr>
<?php browse_headings(array(
Expand All @@ -38,22 +43,17 @@
)); ?>
</tr>
</thead>
</table>

<?php foreach ($form->getDisplayGroups() as $group): ?>

<h3 class="fieldset"><a href="#"><?php echo $group->getLegend(); ?></a></h3>
<div>
<tbody>
<?php foreach ($group->getElements() as $element): ?>
<table class="facet-fields">
<tr>
<td class="element"><?php echo $element->getLabel(); ?></td>
<?php foreach ($element->getMultiOptions() as $name => $label): ?>
<td><input type="checkbox" name="<?php echo $element->getName(); ?>[]" value="<?php echo $name; ?>" <?php if (in_array($name, $form->getValue($element->getName()))) { echo 'checked="checked"'; } ?>/></td>
<?php endforeach; ?>
</tr>
</table>
<?php endforeach; ?>
</tbody>
</table>
</div>

<?php endforeach; ?>
Expand Down
2 changes: 1 addition & 1 deletion views/shared/css/solr_search.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 069461a

Please sign in to comment.