2017 © Pedro Peláez
 

library inuitcss

inuit.css helpers and pagination for Laravel 4

image

wingsline/inuitcss

inuit.css helpers and pagination for Laravel 4

  • Thursday, January 29, 2015
  • by wingsline
  • Repository
  • 1 Watchers
  • 11 Stars
  • 121 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Wingsline/inuitcss

inuit.css html, form helpers and pagination for Laravel 4, (*1)

Requirements

  • PHP 5.3+
  • Laravel 4.1

Installation

Wingsline/inuitcss is available on Packagist (wingsline/inuitcss) and as such installable via Composer., (*2)

If you do not use Composer, you can grab the code from GitHub, and use any PSR-0 compatible autoloader (e.g. the Symfony2 ClassLoader component) to load Wingsline/Inuitcss classes., (*3)

Form elements

In order to use inuitcss styled form elements replace the following alias in the app/config/app.php:, (*4)

'Form'            => 'Illuminate\Support\Facades\Form'

with, (*5)

'Form'            => 'Wingsline\Inuitcss\Facades\Form'

So when in example you call Form::text() a text field will be generated, BUT the text field will have the text-input class added to it automatically., (*6)

Currently the following elements will have the text-input added to it:, (*7)

  • Form::text()
  • Form::password()
  • Form::email()
  • Form::textarea()

Also there is a Form::extraHelp() available to add help text displayed after a field when that field is in focus (see forms):, (*8)

Form::extraHelp('.edu emails only')

Highlight label in case of a validation error

You can also highlight a label of an input element when a validation error occurs. Simply add the $errors from the view into the Form::open()., (*9)

Form::open(array('errors' => $errors))

The default css class is error, but if you want to change that add the errors like this:, (*10)

Form::open(array('errors' => array($errors, 'mycustomclass')))

Pagination

After installation add the Wingsline/InuitcssServiceProvider to the config/app.php's service providers:, (*11)

'Wingsline\Inuitcss\InuitcssServiceProvider'

then change the config/view.php pagination value to one of the following views:, (*12)

slider:

Show the most links with text labels, (*13)

'pagination' => 'inuitcss::pagination.slider'

slider, (*14)

simpleslider:

Shows the slider pagination except the first and last page links, (*15)

'pagination' => 'inuitcss::pagination.simpleslider'

simpleslider, (*16)

slidernotext:

Shows the slider but without text labels, (*17)

'pagination' => 'inuitcss::pagination.slidernotext'

slidernotext, (*18)

simple

Just the basic previous and next links., (*19)

'pagination' => 'inuitcss::pagination.simple'

simpleslider, (*20)

Language

The language keys for the pagination (app/lang/en/pagination.php) should look similar to this:, (*21)

<?php 

return array(

    'previous' => '&lsaquo; Previous',

    'next'     => 'Next &rsaquo;',

    'first'    => 'First',

    'last'     => 'Last',

);

License

Wingsline/Inuitcss is open-sourced software license under the MIT license, (*22)

The Versions

29/01 2015

0.9

0.9.0.0

inuit.css helpers and pagination for Laravel 4

  Sources   Download

MIT

The Requires

 

by Arpad Olasz

07/03 2014

dev-master

9999999-dev

inuit.css helpers and pagination for Laravel 4.1

  Sources   Download

MIT

The Requires

 

by Arpad Olasz

07/03 2014

dev-develop

dev-develop

inuit.css helpers and pagination for Laravel 4.1

  Sources   Download

MIT

The Requires

 

by Arpad Olasz

07/03 2014

1.0

1.0.0.0

inuit.css helpers and pagination for Laravel 4.1

  Sources   Download

MIT

The Requires

 

by Arpad Olasz