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

9 lines
347 B
Plaintext

= hidden_field_tag 'hook[name]', @hook.name
- send("#{@hook.name}_fields").each do |field, type|
.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