rosa-build/app/views/projects/hooks/_form.html.haml

9 lines
350 B
Plaintext
Raw Normal View History

= hidden_field_tag 'hook[name]', @hook.name
- 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}")
.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