Sha256: 5b9c73b9bc7da9331a95afad7e33a169ab8b0b16b558d10890c022df4aca0467

Contents?: true

Size: 746 Bytes

Versions: 4

Compression:

Stored size: 746 Bytes

Contents


<%= bootstrap_form_for :link, :url => "./", :method => (@link ? :put : :post),:html => {:id => "edit-link-form",:class => 'form-horizontal'} do |f| %>
  
  <fieldset>
    <legend>Link</legend>
    <%= f.text_field :name %>
    <%= f.text_field :url, :label => "URL" %>  
  </fieldset>
  
  
  <%= f.actions do %>
    <%= f.submit(:include_cancel => false, :value => (@link ? 'Save' : "Create"), :class => "btn btn-primary") %>
    <%= button_tag  'Cancel', :onclick => "document.location = '#{edit_menu_path(@menu)}'; return false;", :class => 'btn' %>
    <% if @link %>
      <%= link_to 'Remove', menu_link_path(@menu,@link), :confirm => 'Are you sure?',:class => 'btn btn-warning', :method => :delete %>
    <% end %>
  <% end %>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
burp_cms-1.7.1 app/views/burp/links/edit.html.erb
burp_cms-1.7.0 app/views/burp/links/edit.html.erb
burp_cms-1.6.0 app/views/burp/links/edit.html.erb
burp_cms-1.5.13 app/views/burp/links/edit.html.erb