Skip to content
Snippets Groups Projects
Commit 34031b39 authored by Chris Hallberg's avatar Chris Hallberg
Browse files

Grid fixes: layout and cart checkboxes.

parent 8cedb941
No related merge requests found
...@@ -136,6 +136,7 @@ select, .btn:not(.btn-link){vertical-align:top} ...@@ -136,6 +136,7 @@ select, .btn:not(.btn-link){vertical-align:top}
.bulkActionButtons {border-bottom:1px solid #DDD;margin-top:6px;padding-bottom:6px} .bulkActionButtons {border-bottom:1px solid #DDD;margin-top:6px;padding-bottom:6px}
.result {padding:6px 0} .result {padding:6px 0}
.result:nth-child(odd) {background:#EEE} .result:nth-child(odd) {background:#EEE}
.grid .result {background:none}
.result>.checkbox {font-weight:bold;margin:2px 0 2px 1%;max-width:6%} .result>.checkbox {font-weight:bold;margin:2px 0 2px 1%;max-width:6%}
.result>.checkbox input[type="checkbox"] {margin:3px auto} .result>.checkbox input[type="checkbox"] {margin:3px auto}
.result .middle {margin-left:1%;width:52%} .result .middle {margin-left:1%;width:52%}
......
...@@ -10,7 +10,9 @@ $urls = $this->record($this->driver)->getLinkDetails(); ...@@ -10,7 +10,9 @@ $urls = $this->record($this->driver)->getLinkDetails();
<div class="result <?=$this->driver->supportsAjaxStatus()?' ajaxItem':''?>"> <div class="result <?=$this->driver->supportsAjaxStatus()?' ajaxItem':''?>">
<input type="hidden" value="<?=$this->escapeHtml($this->driver->getUniqueID())?>" class="hiddenId" /> <input type="hidden" value="<?=$this->escapeHtml($this->driver->getUniqueID())?>" class="hiddenId" />
<?=$this->record($this->driver)->getCheckbox() ?></br> <? if (!isset($this->hideCartControls) && $this->cart()->isActive()): ?>
<?=$this->record($this->driver)->getCheckbox() ?></br>
<? endif; ?>
<div class="text-center" style="margin:auto;max-width:70px"> <div class="text-center" style="margin:auto;max-width:70px">
<a href="<?=$this->recordLink()->getUrl($this->driver)?>"> <a href="<?=$this->recordLink()->getUrl($this->driver)?>">
<? if ($summThumb = $this->record($this->driver)->getThumbnail('large')): ?> <? if ($summThumb = $this->record($this->driver)->getThumbnail('large')): ?>
......
<div class="row"> <div class="row-fluid">
<? $i = 0; foreach ($this->results->getResults() as $current): ?> <? $i = 0; foreach ($this->results->getResults() as $current): ?>
<div id="result<?=$i++ ?>" class="span3 grid"> <div id="result<?=$i++ ?>" class="span3 grid">
<?=$this->record($current)->getSearchResult('grid')?> <?=$this->record($current)->getSearchResult('grid')?>
</div> </div>
<?=($i%4==0)?'</div><div class="row">':''?> <?=($i%4==0)?'</div><div class="row-fluid">':''?>
<? endforeach; ?> <? endforeach; ?>
</div> </div>
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment