A free open source IT asset/license management system
Added box dropdown for company (or anything else we need) in box blade component
snipe507cc927d875
diff --git a/resources/views/blade/box/index.blade.php b/resources/views/blade/box/index.blade.phpindex 8d89596cdc..c4b24c3870 100644--- a/resources/views/blade/box/index.blade.php+++ b/resources/views/blade/box/index.blade.php@@ -12,10 +12,14 @@@if ($header || $top_submit)<div class="box-header with-border">- @if ($top_submit)- {{-- Long-form pattern: title on the left, save button pulled- right. Title truncates with an ellipsis so a long- display_name can't push the save button off the row. --}}+ @if ($top_submit || isset($header_right))+ {{-- Two-column header shape: title on the left, a right-+ aligned control on the right. `top_submit` bakes in+ a Save button. The `header_right` slot lets you+ supply any other right-aligned control (filter+ dropdown, quick action, etc.). Title truncates with+ an ellipsis so a long display_name can't push the+ right-hand element off the row. --}}<div class="row"><div class="col-md-10">@if ($header)@@ -25,10 +29,16 @@@endif</div><div class="col-md-2">- <button type="submit" class="btn btn-success pull-right" name="submit">- <x-icon type="checkmark"/>- {{ trans('general.save') }}- </button>+ @if ($top_submit)+ <button type="submit" class="btn btn-success pull-right" name="submit">+ <x-icon type="checkmark"/>+ {{ trans('general.save') }}+ </button>+ @else+ <div class="pull-right">+ {{ $header_right }}+ </div>+ @endif</div></div>@else