Sha256: 7e43df8f925bce53b725dc2462b19a8f5eabfff90262db4c6ba1f5211bdfdb8c
Contents?: true
Size: 595 Bytes
Versions: 2
Compression:
Stored size: 595 Bytes
Contents
= simple_form_for(@<%= singular_name %>, :html => { :class => :form } ) do |f| .inputs <%- attributes.each do |attribute| -%> = f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %> <%- end -%> .group.navform.wat-cf %button.button{ :type => 'submit' } = image_tag "buttons/tick.png", :alt => t("core.save") = t "core.save" = link_to((@<%= singular_name %>.new_record? ? collection_path : resource_path(@<%= singular_name %>)), :class => "button") do = image_tag "buttons/cross.png", :alt => t("core.cancel") = t "core.cancel"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
core-generators-0.0.2 | lib/generators/core/scaffold/templates/views/haml/_form.html.haml |
core-generators-0.0.1 | lib/generators/core/scaffold/templates/views/haml/_form.html.haml |