bootstrap_form.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. use Watson\BootstrapForm\Type;
  3. return [
  4. /*
  5. |--------------------------------------------------------------------------
  6. | Form type
  7. |--------------------------------------------------------------------------
  8. |
  9. | Here you may specify the default form type for the open method. You have
  10. | the options of Type::HORIZONTAL, Type::VERTICAL and Type::INLINE.
  11. |
  12. */
  13. 'type' => Type::HORIZONTAL,
  14. /*
  15. |--------------------------------------------------------------------------
  16. | Horizontal form default sizing
  17. |--------------------------------------------------------------------------
  18. |
  19. | Here you may specify the default widths of the columns if you're using
  20. | the horizontal form type. You can use the Bootstrap grid classes as you
  21. | wish.
  22. |
  23. */
  24. 'left_column_class' => 'col-xs-12 col-sm-3 col-md-2',
  25. 'right_column_class' => 'col-xs-12 col-sm-9 col-md-10',
  26. 'left_column_offset_class' => 'col-sm-9 col-xs-12',
  27. /*
  28. |--------------------------------------------------------------------------
  29. | Error output
  30. |--------------------------------------------------------------------------
  31. |
  32. | Here you may specify the whether all the errors of an input should be
  33. | displayed or just the first one.
  34. |
  35. */
  36. 'show_all_errors' => false
  37. ];