forked from saurabh/orbit4-5
16 lines
537 B
Plaintext
16 lines
537 B
Plaintext
<%= form_for @page, url: {action: "update"},:class =>"form-horizontal", remote: true do |f| %>
|
|
<% if params[:type] == "page" %>
|
|
<%= render "form", {:f=> f} %>
|
|
<% elsif params[:type] == "link" %>
|
|
<%= render "form_link", {:f=> f} %>
|
|
<% end %>
|
|
<div class="control-group">
|
|
<div class="controls">
|
|
<% if params[:type] == "page" %>
|
|
<%= f.submit "Update Page", :class=>"btn btn-primary" %>
|
|
<% elsif params[:type] == "link" %>
|
|
<%= f.submit "Update Link", :class=>"btn btn-primary" %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
<% end %> |