Skip to content
Highrise style Edit on Click
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
assets/javascripts
lib
LICENSE
README.textile
init.rb
install.rb

README.textile

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

Something went wrong with that request. Please try again.