Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Commit

Permalink
Put the title and blurb on the same line in the asset submission form
Browse files Browse the repository at this point in the history
This saves vertical real estate on wide enough displays.
  • Loading branch information
Calinou committed Dec 24, 2019
1 parent 6a2424d commit bb8225d
Showing 1 changed file with 26 additions and 20 deletions.
46 changes: 26 additions & 20 deletions resources/views/asset/create.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,27 +29,33 @@
{{-- Use a two-column display on wide screens to reduce the need for scrolling --}}
<section class="flex flex-wrap mt-8 -mx-6">
<section class="w-full lg:w-1/2 px-6">
@component('components/form-input', [
'name' => 'title',
'value' => $editing ? $asset->title : null,
'label' => __('Asset name'),
'placeholder' => __('My Own Asset'),
'required' => true,
'autofocus' => true,
'maxlength' => 50,
'autocomplete' => 'off',
])
@endcomponent
<div class="lg:flex">
<div class="lg:mr-2 lg:w-1/2">
@component('components/form-input', [
'name' => 'title',
'value' => $editing ? $asset->title : null,
'label' => __('Asset name'),
'placeholder' => __('My Own Asset'),
'required' => true,
'autofocus' => true,
'maxlength' => 50,
'autocomplete' => 'off',
])
@endcomponent
</div>

@component('components/form-input', [
'name' => 'blurb',
'value' => $editing ? $asset->blurb : null,
'label' => __('Blurb'),
'placeholder' => __('One-line description of the asset'),
'maxlength' => 60,
'autocomplete' => 'off',
])
@endcomponent
<div class="lg:ml-2 lg:w-1/2">
@component('components/form-input', [
'name' => 'blurb',
'value' => $editing ? $asset->blurb : null,
'label' => __('Blurb'),
'placeholder' => __('One-line description of the asset'),
'maxlength' => 60,
'autocomplete' => 'off',
])
@endcomponent
</div>
</div>

@component('components/form-input', [
'type' => 'textarea',
Expand Down

0 comments on commit bb8225d

Please sign in to comment.