Skip to content

Commit

Permalink
Bootstrap 4
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebacker committed May 8, 2018
1 parent 308dc72 commit 261ce74
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
14 changes: 9 additions & 5 deletions src/resources/views/admin/_form.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,22 @@

@include('core::admin._image-fieldset', ['field' => 'image'])

{!! BootForm::hidden('homepage')->value(0) !!}
{!! BootForm::checkbox(__('Homepage'), 'homepage') !!}
<div class="form-group">
{!! BootForm::hidden('homepage')->value(0) !!}
{!! BootForm::checkbox(__('Homepage'), 'homepage') !!}
</div>

<div class="row">
<div class="col-sm-2 form-group @if ($errors->has('position'))has-error @endif">
<div class="col-sm-2">
{!! BootForm::text(__('Position'), 'position')->type('number')->min(1)->required() !!}
</div>
</div>

@include('core::form._title-and-slug')
{!! TranslatableBootForm::hidden('status')->value(0) !!}
{!! TranslatableBootForm::checkbox(__('Published'), 'status') !!}
<div class="form-group">
{!! TranslatableBootForm::hidden('status')->value(0) !!}
{!! TranslatableBootForm::checkbox(__('Published'), 'status') !!}
</div>
{!! TranslatableBootForm::text(__('Website'), 'website') !!}
{!! TranslatableBootForm::textarea(__('Summary'), 'summary')->rows(4) !!}
{!! TranslatableBootForm::textarea(__('Body'), 'body')->addClass('ckeditor') !!}
8 changes: 4 additions & 4 deletions src/resources/views/admin/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<div class="table-responsive">

<table st-persist="partnersTable" st-table="displayedModels" st-safe-src="models" st-order st-filter class="table table-condensed table-main">
<table st-persist="partnersTable" st-table="displayedModels" st-safe-src="models" st-order st-filter class="table table-main">
<thead>
<tr>
<th class="delete"></th>
Expand All @@ -33,10 +33,10 @@
<tr>
<td colspan="6"></td>
<td>
<input st-search="title_translated" class="form-control input-sm" placeholder="@lang('Filter')…" type="text">
<input st-search="title_translated" class="form-control form-control-sm" placeholder="@lang('Filter')…" type="text">
</td>
<td>
<input st-search="website_translated" class="form-control input-sm" placeholder="@lang('Filter')…" type="text">
<input st-search="website_translated" class="form-control form-control-sm" placeholder="@lang('Filter')…" type="text">
</td>
</tr>
</thead>
Expand All @@ -54,7 +54,7 @@
<img ng-src="@{{ model.thumb }}" alt="">
</td>
<td>
<input class="form-control input-sm" min="0" type="number" name="position" ng-model="model.position" ng-change="update(model, 'position')">
<input class="form-control form-control-sm" min="0" type="number" name="position" ng-model="model.position" ng-change="update(model, 'position')">
</td>
<td>@{{ model.homepage }}</td>
<td>@{{ model.title_translated }}</td>
Expand Down

0 comments on commit 261ce74

Please sign in to comment.