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

Cart buttons now compact and iconed.

parent 9938e4d3
No related merge requests found
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -164,6 +164,15 @@ label.list-group-item {border-radius:0;font-weight:normal;margin-top:0;padding-l ...@@ -164,6 +164,15 @@ label.list-group-item {border-radius:0;font-weight:normal;margin-top:0;padding-l
} }
} }
/* --- Cart --- */
.cart-controls .btn {margin-bottom: 4px;}
.cart-controls .checkbox {
line-height: 2.5em;
padding-right: 1em;
padding-bottom: 1em;
}
.cart-controls ~ hr {margin-top: 0;}
/* --- Icons --- */ /* --- Icons --- */
// Search Icons // Search Icons
.fa-grid:before {content:"\f00a"} // .fa-th .fa-grid:before {content:"\f00a"} // .fa-th
......
...@@ -9,33 +9,53 @@ ...@@ -9,33 +9,53 @@
<?=$this->flashmessages()?> <?=$this->flashmessages()?>
<form class="form-inline" action="<?=$this->url('cart-home')?>" method="post" name="cartForm"> <form class="form-inline" action="<?=$this->url('cart-home')?>" method="post" name="cartForm">
<? if (!$this->cart()->isEmpty()): ?> <? if (!$this->cart()->isEmpty()): ?>
<div class="checkbox"> <div class="cart-controls clearfix">
<label> <div class="checkbox pull-left">
<input type="checkbox" name="selectAll" class="checkbox-select-all"/> <?=$this->transEsc('select_page')?> <label>
| <?=$this->transEsc('with_selected')?>: <input type="checkbox" name="selectAll" class="checkbox-select-all"/>
</label> <?=$this->transEsc('select_page')?>
</div> </label>
<? if ($this->userlist()->getMode() !== 'disabled'): ?> </div>
<input class="btn btn-default" type="submit" name="saveCart" value="<?=$this->transEsc('bookbag_save_selected')?>" title="<?=$this->transEsc('bookbag_save')?>"/> <? if ($this->userlist()->getMode() !== 'disabled'): ?>
<? endif; ?> <button type="submit" class="btn btn-default" name="saveCart" title="<?=$this->transEsc('bookbag_save')?>">
<input class="btn btn-default" type="submit" name="email" value="<?=$this->transEsc('bookbag_email_selected')?>" title="<?=$this->transEsc('bookbag_email')?>"/> <i class="fa fa-save"></i>
<? $exportOptions = $this->export()->getBulkOptions(); if (count($exportOptions) > 0): ?> <?=$this->transEsc('Save')?>
<input class="btn btn-default" type="submit" name="export" value="<?=$this->transEsc('bookbag_export_selected')?>" title="<?=$this->transEsc('bookbag_export')?>"/> </button>
<? endif; ?> <? endif; ?>
<input class="btn btn-default" type="submit" name="print" value="<?=$this->transEsc('bookbag_print_selected')?>" title="<?=$this->transEsc('print_selected')?>"/> <button type="submit" class="btn btn-default" name="email" title="<?=$this->transEsc('bookbag_email')?>">
<div class="btn-group" id="cartDelete"> <i class="fa fa-envelope-o"></i>
<button type="submit" name="delete" class="btn btn-default dropdown-toggle" data-toggle="dropdown" id="cart-delete-label"><?=$this->transEsc('bookbag_delete_selected')?></button> <?=$this->transEsc('Email')?>
<ul class="dropdown-menu" role="menu" aria-labelledby="cart-delete-label"> </button>
<li><a id="cart-confirm-delete" onClick="submitFormWithIds(this, {'delete':'delete'})" title="<?=$this->transEsc('confirm_delete')?>"><?=$this->transEsc('confirm_dialog_yes')?></a></li> <? $exportOptions = $this->export()->getBulkOptions(); if (count($exportOptions) > 0): ?>
<li><a><?=$this->transEsc('confirm_dialog_no')?></a></li> <button type="submit" class="btn btn-default" name="export" title="<?=$this->transEsc('bookbag_export')?>">
</ul> <i class="fa fa-list-alt"></i>
</div> <?=$this->transEsc('Export')?>
<div class="btn-group"> </button>
<input type="submit" name="empty" class="btn btn-default dropdown-toggle" data-toggle="dropdown" id="cart-empty-label" value="<?=$this->transEsc('Empty Book Bag')?>"/> <? endif; ?>
<ul class="dropdown-menu" role="menu" aria-labelledby="cart-empty-label"> <button type="submit" class="btn btn-default dropdown-toggle" name="print" title="<?=$this->transEsc('print_selected')?>">
<li><a id="cart-confirm-empty" onClick="submitCartForm(this, {'empty':'empty'})" title="<?=$this->transEsc('bookbag_confirm_empty')?>"><?=$this->transEsc('confirm_dialog_yes')?></a></li> <i class="fa fa-print"></i>
<li><a onClick="$('.fa.fa-spinner').remove()"><?=$this->transEsc('confirm_dialog_no')?></a></li> <?=$this->transEsc('Print')?>
</ul> </button>
<div class="btn-group" id="cartDelete">
<button type="submit" name="delete" class="btn btn-default dropdown-toggle" data-toggle="dropdown" id="cart-delete-label">
<i class="fa fa-trash"></i>
<?=$this->transEsc('Delete')?>
</button>
<ul class="dropdown-menu" role="menu" aria-labelledby="cart-delete-label">
<li><a id="cart-confirm-delete" onClick="submitFormWithIds(this, {'delete':'delete'})" title="<?=$this->transEsc('confirm_delete')?>"><?=$this->transEsc('confirm_dialog_yes')?></a></li>
<li><a><?=$this->transEsc('confirm_dialog_no')?></a></li>
</ul>
</div>
<div class="btn-group">
<button type="submit" class="btn btn-default dropdown-toggle" name="empty" data-toggle="dropdown" id="cart-empty-label">
<i class="fa fa-close"></i>
<?=$this->transEsc('Empty Book Bag')?>
</button>
<ul class="dropdown-menu" role="menu" aria-labelledby="cart-empty-label">
<li><a id="cart-confirm-empty" onClick="submitCartForm(this, {'empty':'empty'})" title="<?=$this->transEsc('bookbag_confirm_empty')?>"><?=$this->transEsc('confirm_dialog_yes')?></a></li>
<li><a onClick="$('.fa.fa-spinner').remove()"><?=$this->transEsc('confirm_dialog_no')?></a></li>
</ul>
</div>
</div> </div>
<? endif; ?> <? endif; ?>
<?=$this->render('cart/contents.phtml')?> <?=$this->render('cart/contents.phtml')?>
......
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