<% content_for :head do %>
  <%= javascript_include_tag "admin/social" %>
<% end %>

<%=h flash[:notice] %>
<%=h flash[:error] %>
<%= error_messages_for :social %>
<p class="req"><span class="pnt">※</span>は必須入力です</p>
<table cellspacing="1" cellpadding="0" class="data" >
  <tr>
    <th>google +1</th>
    <td><%= check_box "social", "google" %></td>
  </tr>
  <tr>
    <th>Twitter</th>
    <td><%= check_box "social", "twitter", {:onclick => "changetwitter()", :id => "twitter"} %></td>
  </tr>
  <tr>
    <th>Twitterおすすめアカウント(@抜き)</th>
    <td><%= text_field "social", "twitter_user", :id => "twitter_user" %></td>
  </tr>
  <tr>
    <th>Facebook</th>
    <td><%= check_box "social", "facebook" %></td>
  </tr>
  <tr>
    <th>GREE</th>
    <td><%= check_box "social", "gree" %></td>
  </tr>
  <tr>
    <th>Evernote</th>
    <td><%= check_box "social", "evernote" %></td>
  </tr>
  <tr>
    <th>はてなブックマーク</th>
    <td><%= check_box "social", "hatena" %></td>
  </tr>
  <tr>
    <th>mixi チェック</th>
    <td><%= check_box "social", "mixi_check",{:onclick => "changemixi()", :id => "mixi_check"} %></td>
  </tr>
  <tr>
    <th>mixi イイネ！</th>
    <td><%= check_box "social", "mixi_like",{:onclick => "changemixi()", :id => "mixi_like"} %></td>
  </tr>
  <tr>
    <th>mixi 説明文</th>
    <td><%= text_field "social", "mixi_description", :id => "mixi_description" %></td>
  </tr>
  <tr>
    <th>mixi チェックキー</th>
    <td><%= text_field "social", "mixi_key", :id => "mixi_key" %></td>
  </tr>
</table>
<div class="btn_box">
  <%= submit_tag "この内容で登録する", :onclick => "return #{confirm_javascript_function("登録しても宜しいですか")}", :class=>"btn" %>
  <%= image_tag("btn_side.gif", :width => "6", :height => "34", :class => "btn_side") %>
</div>
