Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
Update table.blade.php
Browse files Browse the repository at this point in the history
Fixing #1618
  • Loading branch information
fherryfherry authored Jan 6, 2021
1 parent 626e109 commit d2870f1
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/views/default/table.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ function checkWidth() {
swal({
title: "{{cbLang("confirmation_title")}}",
text: "{{cbLang("alert_bulk_action_button")}} " + title + " ?",
text: "{{cbLang("alert_bulk_action_button")}} " + title + "
",
type: "warning",
showCancelButton: true,
confirmButtonColor: "#008D4C",
Expand Down Expand Up @@ -65,8 +66,8 @@ function () {
$colname = $col['label'];
$name = $col['name'];
$field = $col['field_with'];
$width = ($col['width']) ?: "auto";
$style = ($col['style']) ?: "";
$width = (isset($col['width'])) ?$col['width']: "auto";
$style = (isset($col['style'])) ?$col['style']: "";
$mainpath = trim(CRUDBooster::mainpath(), '/').$build_query;
echo "<th width='$width' $style>";
if (isset($sort_column[$field])) {
Expand Down Expand Up @@ -95,7 +96,7 @@ function () {

@if($button_table_action)
@if(CRUDBooster::isUpdate() || CRUDBooster::isDelete() || CRUDBooster::isRead())
<th width='{{$button_action_width?:"auto"}}' style="text-align:right">{{cbLang("action_label")}}</th>
<th width='{{ isset($button_action_width)? $button_action_width :"auto"}}' style="text-align:right">{{cbLang("action_label")}}</th>
@endif
@endif
</tr>
Expand Down Expand Up @@ -161,8 +162,8 @@ function () {
foreach ($columns as $col) {
if ($col['visible'] === FALSE) continue;
$colname = $col['label'];
$width = ($col['width']) ?: "auto";
$style = ($col['style']) ?: "";
$width = (isset($col['width'])) ?$col['width']: "auto";
$style = (isset($col['style'])) ? $col['style']: "";
echo "<th width='$width' $style>$colname</th>";
}
?>
Expand Down Expand Up @@ -414,7 +415,7 @@ class='filter-value-between form-control {{ (in_array($col["type_data"],["date",
<button class="btn btn-primary btn-submit" type="submit">{{cbLang("button_submit")}}</button>
</div>
{!! CRUDBooster::getUrlParameters(['filter_column','lasturl']) !!}
<input type="hidden" name="lasturl" value="{{Request::get('lasturl')?:Request::fullUrl()}}">
<input type="hidden" name="lasturl" value="{{Request::get('lasturl')?Request::get('lasturl'):Request::fullUrl()}}">
</form>
</div>
<!-- /.modal-content -->
Expand Down

0 comments on commit d2870f1

Please sign in to comment.