-
Notifications
You must be signed in to change notification settings - Fork 0
Config
tanthammar edited this page Sep 4, 2020
·
1 revision
Publishing files is optional.
php artisan vendor:publish --tag=form-config
config/tall-forms.php
return [
//note that the word dummymodel is auto replaced with the lower case value of --model option in the make command
'form-title' => "trans('global.create').' '.trans('crud.dummymodel.title_singular')",
//A Laravel 7 blade component to wrap your form if $spaMode = true, see documentation
'spa-layout' => 'tall-forms::spa-layout',
//form buttons translations
'saved' => 'global.saved',
'delete' => 'global.delete',
'save-and-stay' => 'global.save',
'save-go-back' => 'global.save_go_back',
'message-updated-success' => 'messages.updated_success',
'are-u-sure' => 'global.areYouSure',
//notification trait popup bg colors
'positive' => 'bg-green-500',
'negative' => 'bg-red-500',
'info' => 'bg-blue-500',
'warning' => 'bg-orange-500',
'default' => 'bg-teal-500',
//text colors
'text-positive' => 'text-aurora-green',
'text-negative' => 'text-aurora-red',
'text-info' => 'text-frost-dimmed',
'text-warning' => 'text-orange-800',
'text-primary' => 'text-teal-800',
//button component classes
'button-info' => 'text-white bg-frost-dimmed hover:bg-frost-blue focus:border-blue-700 focus:shadow-outline-blue active:bg-frost-dimmed',
'button-positive' => 'text-white bg-aurora-green hover:bg-green-500 focus:border-green-600 focus:shadow-outline-green active:bg-aurora-green',
'button-negative' => 'text-red-100 bg-aurora-red hover:bg-red-500 focus:border-red-600 focus:shadow-outline-red active:bg-aurora-red',
'button-warning' => 'text-orange-100 bg-aurora-orange hover:bg-orange-600 focus:border-orange-700 focus:shadow-outline-orange active:bg-orange-700',
'button-primary' => 'text-blue-100 bg-night-lighter hover:bg-night-dark focus:border-night-light focus:shadow-outline-blue active:bg-night-dark',
//icons
'arrow-up-icon' => 'light/arrow-up', //used as @svg('light/arrow-up', 'classes')
'arrow-down-icon' => 'light/arrow-down',
'trash-icon' => 'light/trash-alt',
'plus-icon' => 'light/plus-circle',
'file-icon' => 'light/', //used as @svg('light/{$mime_type}', 'classes')
'file-upload' => 'light/upload', //prefix icon for file upload field
//Default label-, field-width for inline form layout
'field-width' => 'sm:w-3/4 md:w-4/5',
'label-width' => 'sm:w-1/4 md:w-1/5',
//Column span classes for the fields ->colspan() method
'col-span-classes' => [
'1' => 'sm:col-span-1',
'2' => 'sm:col-span-2',
'3' => 'sm:col-span-3',
'4' => 'sm:col-span-4',
'5' => 'sm:col-span-5',
'6' => 'sm:col-span-6',
],
//File upload default validation message
'upload-file-error' => 'messages.file_upload_error',
];
If you publish the views you are on your own and it will be hard to maintain them to match this package frequent updates. Each field has a lot of styling options that hopefully covers your needs, if not - please post a feature request or PR. If you decide to publish the views it would be a good idea to watch this package for changes.
php artisan vendor:publish --tag=form-views