Development

plugins/ddAccesibleFormPlugin (diff)

You must first sign up to be able to contribute.

Changes from Version 1 of plugins/ddAccesibleFormPlugin

Show
Ignore:
Author:
davedash (IP: 24.6.153.78)
Timestamp:
01/22/08 07:29:34 (10 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • plugins/ddAccesibleFormPlugin

    v0 v1  
     1== Introduction == 
     2 
     3This plugin allows you to make  
     4[http://alistapart.com/articles/prettyaccessibleforms prettier accessible forms]. 
     5 
     6Very simply it provides a helper with a function, `accessible_form_tag()`  
     7which acts just like `form_tag()` but adds a stylesheet and some javascript.   
     8The result is nicely structured forms using semantic markup. 
     9 
     10== Installation == 
     11 
     12This plugin is only available via svn.  If you would like to make this a pear  
     13package please contact the maintainer (Dave Dash). 
     14 
     15{{{ 
     16cd plugins/ 
     17svn co http://svn.symfony-forge.com/plugins/ddAccessibleFormPlugin ddAccessibleFormPlugin 
     18}}} 
     19 
     20Then create the proper symlink: 
     21 
     22{{{ 
     23cd web/ 
     24ln -s ../plugins/ddAccessibleFormPlugin/web ddAccessibleFormPlugin 
     25}}} 
     26 
     27== Javascript == 
     28 
     29The `cmxform.js` forces `label` tags to use the `inline-box` display style.   
     30It currently depends on the `jquery` javascript library.  A copy of  
     31`jquery.js` is bundled and will be used unless overridden by the  
     32`SF_JQUERY_WEB_DIR` setting. 
     33 
     34Alternately you may use the Yahoo User Interface library.  For this to work, 
     35set `SF_JS_LIB` to `yui` and set `SF_YUI_WEB_DIR` to the proper location. 
     36If you are using hosted YUI, you can have a setting like so in your  
     37`settings.yml`: 
     38 
     39{{{ 
     40    yui_web_dir:            http://yui.yahooapis.com/2.4.1/build/ 
     41}}} 
     42 
     43It's not recommended to mix multiple libraries.  If you use dojo, moo tools or  
     44prototype, it might be wise to create an alternate `cmxform.js` for your  
     45platform.  If you create such a package please let the maintainer (Dave Dash) 
     46know and he'll gladly include it in this plugin. 
     47 
     48== Maintenance/Authors == 
     49 
     50This plugin is currently maintained by Dave Dash @  
     51[http://spindrop.us/ spindrop.us].  If you'd like to contribute please contact 
     52him with patches. 
     53 
     54== Changelog == 
     55 
     562008-01-07  Updated README 
     572008-01-21  Added YUI support, cleaned up jQuery code. 
     58 
     59== Todo == 
     60 
     61* Impliment in moo tools 
     62* Impliment in Prototype 
     63* Create PEAR package 
     64* Impliment in dojo