2013-04-14 16:46:56 +01:00
|
|
|
= hidden_field_tag 'hook[name]', @hook.name
|
2013-04-15 11:04:47 +01:00
|
|
|
- Hook::FIELDS[@hook.name.to_sym].each do |field, type|
|
2013-04-15 10:25:40 +01:00
|
|
|
.leftlist= t("activerecord.attributes.hook.data.#{field}")
|
2013-04-14 16:46:56 +01:00
|
|
|
.rightlist
|
|
|
|
- if type == :boolean
|
|
|
|
= check_box_tag "hook[data][#{field}]", @hook.data[field], 1
|
|
|
|
- else
|
|
|
|
= text_field_tag "hook[data][#{field}]", @hook.data[field]
|
|
|
|
.both
|