github github
  • Home
  • Pricing and Signup
  • Training
  • Gist
  • Blog
  • Login

draganbabic / uni-form

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 98
    • 6
  • Source
  • Commits
  • Network (6)
  • Downloads (0)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Switch Branches (1)
    • master ✓
  • Switch Tags (0)
  • Branch List
Sending Request…

Uni-Form is a framework that standardizes form markup and styles it with CSS giving you two most widely used layout options to choose from. Anyone can get nice looking, well structured, highly customizable, accessible and usable forms. To put it simply: it makes a developer's life a lot easier. Support → http://getsatisfaction.com/uni-form — Read more

  Cancel

http://sprawsm.com/uni-form/

  Cancel
  • HTTP
  • Git Read-Only

This URL has Read+Write access

#OKMsg -> #okMsg in one instance in style files 
Dragan Babic (author)
Fri Jul 16 01:48:06 -0700 2010
commit  0fefb6929d8e94b233f0
tree    e1a1ac85b870c1d1cb2b
parent  82be9ab2951d1ee74bb7
uni-form /
name age
history
message
file .DS_Store Mon Mar 29 10:27:44 -0700 2010 Adding files for the new site [Dragan Babic]
file .gitignore Fri May 14 08:05:28 -0700 2010 Fixed a path [Dragan Babic]
directory css/ Fri Jul 16 01:48:06 -0700 2010 #OKMsg -> #okMsg in one instance in style files [Dragan Babic]
file fauxform.html Fri Jul 09 07:20:25 -0700 2010 Adding an improved version of the jQuery plugin... [Dragan Babic]
directory img/ Wed Mar 31 10:33:59 -0700 2010 More work on the marketing site, cleaned up the... [Dragan Babic]
directory js/ Fri Jul 09 07:22:53 -0700 2010 Adding Toni to the contributors list within the... [Dragan Babic]
file readme Sat May 15 04:16:02 -0700 2010 Finished the readme [Dragan Babic]
readme
----------------------------------------------------------------------------------

   Copyright (c) 2010, Dragan Babic
   
   Permission is hereby granted, free of charge, to any person
   obtaining a copy of this software and associated documentation
   files (the "Software"), to deal in the Software without
   restriction, including without limitation the rights to use,
   copy, modify, merge, publish, distribute, sublicense, and/or sell
   copies of the Software, and to permit persons to whom the
   Software is furnished to do so, subject to the following
   conditions:
   
   The above copyright notice and this permission notice shall be
   included in all copies or substantial portions of the Software.
   
   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
   EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
   OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
   NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
   HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
   WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
   FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
   OTHER DEALINGS IN THE SOFTWARE.

----------------------------------------------------------------------------------

### What is Uni–Form 

Uni-Form is a framework that standardizes form markup and styles it with CSS 
giving you two most widely used layout options to choose from. Anyone can get nice 
looking, well structured, highly customizable, accessible and usable forms. To put 
it simply: it makes a developer's life a lot easier. 

----------------------------------------------------------------------------------

### How to Use? 

First thing you need to do is to link up the necessary files: 

    * Link up the main CSS file
    
      <link href="path/to/file/uni-form.css" media="all" rel="stylesheet"/>
    
    * Link up the Uni–Form style CSS file
      
      <link href="path/to/file/default.uni-form.css" media="all" rel="stylesheet"/>
    
    * Optionally you'll want to link up jQuery and Uni–Form jQuery files if you'd 
      like Uni–Form to highlight the form rows on focus (it's a usability aid): 
      
      <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js&gt;&lt;/script">
      <script src="path/to/file/uni-form.jquery.js" type="text/javascript"></script> 

Now that you're all set up, all you need to do is add form fields that are formatted
with Uni–Form markup so the CSS and JavaScript will get the “hooks” they need. These
chunks of code are called “units” and all available units can be found within the 
file called fauxform.html that is included in this package. 

Feel free to extend Uni–Form with units of your own and share. 

----------------------------------------------------------------------------------

### Styles 

As of v1.4 Uni–Form supports styles. These are separate CSS files that contain the
presentation aspect of your form (considering that uni-form.css) contains the 
layout. Style CSS files should be used to control how your form looks, spacing… 

Sharing styles is encouraged, and by default Uni–Form is shipped with three: 

    * Default
    * Blue 
    * Dark 
    
Consider these a starting point for making your own. 

----------------------------------------------------------------------------------

### Options and Layout Control 

Uni–Form by default has two form layouts: default and inline. This is controlled 
by adding (or removing) a CSS class .inlineLabels to the fieldset element. 

There is another option in regards to the layout and it concerns what is referred 
to as “multifields”. These are fields that contain multiple inputs per unit and 
are usually used for checkboxes and radio buttons. Each layout supports an 
alternate multifield layout. This is achieved by adding (or removing) a CSS class
.alternate to the ul element. 

----------------------------------------------------------------------------------

                          Give respect and get it back.

----------------------------------------------------------------------------------
Dedicated Server Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
  • Blog
  • Support
  • Training
  • Job Board
  • Shop
  • Contact
  • API
  • Status
  • © 2010 GitHub Inc. All rights reserved.
  • Terms of Service
  • Privacy
  • Security
  • English
  • Deutsch
  • Français
  • 日本語
  • Português (BR)
  • 中文
  • See all available languages

Your current locale selection: English. Choose another?

  • English
  • Afrikaans
  • Català
  • Čeština
  • Deutsch
  • Español
  • Français
  • Hrvatski
  • Indonesia
  • Italiano
  • 日本語
  • Nederlands
  • Norsk
  • Polski
  • Português (BR)
  • Српски
  • Svenska
  • 中文