Katello/katello — pull request #1066 by tstrachota (2012-11-14 22:02:03+00:00)
Title: ui - helper method for rendering editables

Support for rendering jquery.jeditable fields.
Instead of writing complete html code for the field and the label
it allows to use 'editable' form helper.

Usage:
```ruby
= kt_form_for @record, :data_url => record_path(@record) do |form|
= form.editable :name, :label => _("Name:")

= kt_form_for @record do |form|
= form.editable :name, :data_url => record_path_1(@record)
= form.editable :surname, :data_url => record_path_2(@record)

= kt_form_for @record, :data_url => record_path(@record) do |form|
= form.editable :name do
#Some custom value
```
Options:
```ruby
:label #- label text
:editable #- boolean flag, switches possibility to edit the field
:class #- additional custom css class
:help #- help string
:type #- editable type, eg. edit_textarea, edit_number. Default is edit_panel_element
:tag #- options passed directly to the element
```