mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-10-20 23:34:36 -04:00
Use form-inline to style items toolbar (#293)
This commit is contained in:
1 parent
e09ebcaff9
commit
9dfb2196e5
2 files changed
+18
-23
No files matched your search
@@ -291,13 +291,13 @@ function get_item_data_row($item, $controller) {
|
||||
'quantity' => to_quantity_decimals($item->quantity),
|
||||
'tax_percents' => $tax_percents,
|
||||
'item_pic' => $image,
|
||||
'inventory' => anchor($controller_name."/inventory/$item->person_id", '<span class="glyphicon glyphicon-pushpin"></span>',
|
||||
'inventory' => anchor($controller_name."/inventory/$item->item_id", '<span class="glyphicon glyphicon-pushpin"></span>',
|
||||
array('class' => "modal-dlg modal-btn-submit", 'title' => $CI->lang->line($controller_name.'_count'))
|
||||
),
|
||||
'stock' => anchor($controller_name."/count_details/$item->person_id", '<span class="glyphicon glyphicon-list-alt"></span>',
|
||||
'stock' => anchor($controller_name."/count_details/$item->item_id", '<span class="glyphicon glyphicon-list-alt"></span>',
|
||||
array('class' => "modal-dlg modal-btn-submit", 'title' => $CI->lang->line($controller_name.'_details_count'))
|
||||
),
|
||||
'edit' => anchor($controller_name."/view/$item->person_id", '<span class="glyphicon glyphicon-edit"></span>',
|
||||
'edit' => anchor($controller_name."/view/$item->item_id", '<span class="glyphicon glyphicon-edit"></span>',
|
||||
array('class' => "modal-dlg modal-btn-submit", 'title' => $CI->lang->line($controller_name.'_update'))
|
||||
));
|
||||
}
|
||||
|
||||
@@ -84,32 +84,27 @@ function post_bulk_form_submit(response)
|
||||
</div>
|
||||
|
||||
<div id="toolbar">
|
||||
<div class="pull-left btn-toolbar" role="toolbar">
|
||||
<div class="pull-left form-inline" role="toolbar">
|
||||
<button id="delete" class="btn btn-default btn-sm" data-href='<?php echo site_url($controller_name."/delete"); ?>'>
|
||||
<span class="glyphicon glyphicon-trash"></span>
|
||||
<?php echo $this->lang->line("common_delete");?></button>
|
||||
<?php echo $this->lang->line("common_delete");?>
|
||||
</button>
|
||||
<button id="bulk_edit" class="btn btn-default btn-sm" data-href='<?php echo site_url($controller_name."/bulk_edit"); ?>' title='<?php $this->lang->line('items_edit_multiple_items');?>'>
|
||||
<span class="glyphicon glyphicon-edit"></span>
|
||||
<?php echo $this->lang->line("items_bulk_edit"); ?></button>
|
||||
<?php echo $this->lang->line("items_bulk_edit"); ?>
|
||||
</button>
|
||||
<button id="generate_barcodes" class="btn btn-default btn-sm" data-href='<?php echo site_url($controller_name."/generate_barcodes"); ?>' title='<?php echo $this->lang->line('items_generate_barcodes');?>'>
|
||||
<span class="glyphicon glyphicon-barcode"></span>
|
||||
<?php echo $this->lang->line("items_generate_barcodes");?></button>
|
||||
<div class="col-xs-4">
|
||||
<?php echo form_input(array('name'=>'daterangepicker', 'class'=>'form-control input-sm', 'id'=>'daterangepicker')); ?>
|
||||
</div>
|
||||
<div class="col-xs-2" style="vertical-align: none;">
|
||||
<?php echo form_multiselect('filters[]', $filters, '', array('id'=>'filters', 'class'=>'selectpicker show-menu-arrow', 'data-selected-text-format'=>'count > 1', 'data-style'=>'btn-default btn-sm', 'data-width'=>'fit')); ?>
|
||||
</div>
|
||||
<?php
|
||||
if (count($stock_locations) > 1)
|
||||
{
|
||||
?>
|
||||
<div class="col-xs-2">
|
||||
<?php echo form_dropdown('stock_location', $stock_locations, $stock_location, array('id'=>'stock_location', 'class'=>'selectpicker show-menu-arrow', 'data-style'=>'btn-default btn-sm', 'data-width'=>'fit')); ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<?php echo $this->lang->line("items_generate_barcodes");?>
|
||||
</button>
|
||||
<?php echo form_input(array('name'=>'daterangepicker', 'class'=>'form-control input-sm', 'id'=>'daterangepicker')); ?>
|
||||
<?php echo form_multiselect('filters[]', $filters, '', array('id'=>'filters', 'class'=>'selectpicker show-menu-arrow', 'data-selected-text-format'=>'count > 1', 'data-style'=>'btn-default btn-sm', 'data-width'=>'fit')); ?>
|
||||
<?php
|
||||
if (count($stock_locations) > 1)
|
||||
{
|
||||
echo form_dropdown('stock_location', $stock_locations, $stock_location, array('id'=>'stock_location', 'class'=>'selectpicker show-menu-arrow', 'data-style'=>'btn-default btn-sm', 'data-width'=>'fit'));
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in new issue
Block a user