* adjust for datatable.
This commit is contained in:
@@ -539,8 +539,8 @@ $lang->icons['post'] = 'edit';
|
||||
$lang->icons['batchCreate'] = 'plus-sign';
|
||||
$lang->icons['batchEdit'] = 'edit-sign';
|
||||
$lang->icons['batchClose'] = 'off';
|
||||
$lang->icons['edit'] = 'pencil';
|
||||
$lang->icons['delete'] = 'remove';
|
||||
$lang->icons['edit'] = 'edit';
|
||||
$lang->icons['delete'] = 'trash';
|
||||
$lang->icons['copy'] = 'copy';
|
||||
$lang->icons['report'] = 'bar-chart';
|
||||
$lang->icons['export'] = 'download-alt';
|
||||
|
||||
@@ -539,8 +539,8 @@ $lang->icons['post'] = 'edit';
|
||||
$lang->icons['batchCreate'] = 'plus-sign';
|
||||
$lang->icons['batchEdit'] = 'edit-sign';
|
||||
$lang->icons['batchClose'] = 'off';
|
||||
$lang->icons['edit'] = 'pencil';
|
||||
$lang->icons['delete'] = 'remove';
|
||||
$lang->icons['edit'] = 'edit';
|
||||
$lang->icons['delete'] = 'trash';
|
||||
$lang->icons['copy'] = 'copy';
|
||||
$lang->icons['report'] = 'bar-chart';
|
||||
$lang->icons['export'] = 'download-alt';
|
||||
|
||||
@@ -127,10 +127,11 @@ class datatableModel extends model
|
||||
{
|
||||
$fixed = $col->fixed == 'no' ? 'true': 'false';
|
||||
$width = is_numeric($col->width) ? "{$col->width}px" : $col->width;
|
||||
$sorter = (isset($col->sort) and $col->sort == 'no') ? '' : '{sorter:false}';
|
||||
$title = isset($col->name) ? "title='$col->name'" : '';
|
||||
if($id == 'id' and (int)$width < 90) $width = '90px';
|
||||
$width = $id != 'actions' ? "data-width='$width' style='width:$width'" : '';
|
||||
|
||||
echo "<th data-flex='$fixed' data-width='$width' style='width:$width' class='w-$id $sorter' $title>";
|
||||
echo "<th data-flex='$fixed' $width class='c-$id' $title>";
|
||||
if($id == 'actions')
|
||||
{
|
||||
echo $this->lang->actions;
|
||||
@@ -141,7 +142,9 @@ class datatableModel extends model
|
||||
}
|
||||
else
|
||||
{
|
||||
if($id == 'id') echo "<div class='checkbox-primary check-all' title='{$this->lang->selectAll}'><label></label>";
|
||||
common::printOrderLink($id, $orderBy, $vars, $col->title);
|
||||
if($id == 'id') echo "</div>";
|
||||
}
|
||||
echo '</th>';
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
?>
|
||||
<?php endforeach;?>
|
||||
<div class="input-control has-icon-right space">
|
||||
<input type="text" required="" class="form-control form-date" id="todoDate" name="date">
|
||||
<?php echo html::input('date', $date,"class='form-control form-date' onchange='changeDate(this.value)' autocomplete='off'");?>
|
||||
<label for="inputPasswordExample1" class="input-control-icon-right"><i class="icon icon-delay"></i></label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user