<%= simple_form_for([:admin,@site]) do |f| %> <%= render "/shared/error_messages", target: @site %>
<%= t("common.edit") %> <%= f.input :name %> <%= f.input :url, input_html: { class: "xxlarge" }, placeholder: "http://" %> <%= f.input :desc, as: :text, input_html: { class: "xxlarge", rows: "3" } %> <%= f.input :site_node_id, collection: SiteNode.all.collect { |t| [t.name, t.id] }, include_blank: false %>
<%= f.submit '保存', class: "btn btn-primary", 'data-disable-with' => '保存中...' %> or <%= link_to '取消', admin_sites_path %>
<% end %>