Sha256: 9ae1bb4210637d04f4fb5610baa3fdbff70c3cdf7b9fe8d24715f1f4ff60444c
Contents?: true
Size: 880 Bytes
Versions: 11
Compression:
Stored size: 880 Bytes
Contents
%h1== Editing '#{@route.to_s}' Page = simple_form_for @route, :url => route_path(@route) do |f| = render :partial => "form", :locals => { :f => f } %p= f.input :parent_id, :collection => @routes, :as => :select, :label => "Parent Route", :prompt => "--- Choose Route ---" - unless @data_set_template.to_s.blank? = f.simple_fields_for :data_set, @data_set_obj do |ff| - attributes_for(@data_set_template).each do |attribute| = form_field_formatter(ff, attribute) - relations_for(@data_set_template, :ignore => ["route"]).each do |relation| .input.relation %label= relation.titlecase = relation_field_formatter(f, relation) %p = f.submit "Update Page" | = link_to "Delete Route", route_path(@route), :method => :delete, :confirm => "You sure you want to remove this route?"
Version data entries
11 entries across 11 versions & 1 rubygems