Skip to content

intinno/highrise-edit-on-click

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Highrise Style Edit On Click

If there are many input fields in a form, the form page clutters up.

This plugin makes input fields editable on click as mentioned here.

Each input field will have a blank state and an editable state.

Features

  • Support for text input, text area and select fields
  • Supports helpers from form builders

Installation

If you have not installed this plugin using script/plugin install script,
then copy assets/javascripts/edit_on_click.js file to your public/javascripts folder.
To load this file with your Rails app simply add the following line to your layout:

<%= javascript_include_tag 'edit_on_click'%>

If you have installed this as a plugin in redmine, then javascripts will be automatically
copied to your public/plugin_assets/highrise-edit-on-click/javascripts folder
To load this file with your Rails app simply add the following line to your layout:

<%= javascript_include_tag 'edit_on_click', :plugin => "highrise-edit-on-click" %>

Examples

If you are using form builders then use:

<%= f.eoc_text_field :attribute_name, :alt_text => "text-for-blank-state" %>
<%= f.eoc_text_area :attribute_name, :alt_text => "text-for-blank-state" %>
<%= f.eoc_select :attribute_name, choices, :alt_text => "text-for-blank-state", {} %>

You can also use it like:

<%= eoc_text_field object_name, :attribute_name, :alt_text => "text-for-blank-state" %>
<%= eoc_text_area object_name, :attribute_name, :alt_text => "text-for-blank-state" %>
<%= eoc_select object_name, :attribute_name, choices, :alt_text => "text-for-blank-state", {} %>

Warnings

  • Tested in Firefox 3 and Google Chrome

Copyright © 2009 Udit Sajjanhar

About

Highrise style Edit on Click

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages