<h3><%=l(:label_first_page_made)%></h3>

<%= form_tag(:controller => 'admin', :action => 'first_page_made') do %>
    <p style="margin-left:60px;padding-right: 20px;">
      <label for='web_title'><%= l(:label_web_title) %>:</label>
      <%= text_field_tag 'web_title', params[:wbe_title],:value => @first_page.web_title, :size => 30,:style => "font-size:small;width:490px;margin-left:10px;" %>
    </p>
    <%= render 'tab_partial' %>
    <h4><%=l(:label_project_first_page)%></h4>
    <p style="margin-left:60px;padding-right: 20px;">
      <label for='attachments_fields'>&nbsp;&nbsp;&nbsp;<%= l(:label_site_image) %>:</label>
     </p>
    <div style="margin-left: 82px;" id="avatar">
        <%= render :partial=>"avatar/avatar_form",:style => "display:inline",:locals=> {source:@first_page} %>
    </div>
    <p style="margin-left:60px;padding-right: 20px;">
      <label for='image_width' style="vertical-align: top">&nbsp;&nbsp;&nbsp;<%= l(:label_image_width)%>:</label>
      <%= text_field_tag  'image_width', params[:label_image_width],:value => @first_page.image_width,:size => 30,:style => "font-size:small;width:490px;margin-left:10px;" %>
    </p>
    <p style="margin-left:60px;padding-right: 20px;">
      <label for='image_height' style="vertical-align: top">&nbsp;&nbsp;&nbsp;<%= l(:label_imgae_height)%>:</label>
      <%= text_field_tag  'image_height', params[:label_imgae_height], :value => @first_page.image_height,:size => 30,:style => "font-size:small;width:490px;margin-left:10px;" %>
    </p>
    <p style="margin-left:60px;padding-right: 20px;">
      <label for='title'>&nbsp;&nbsp;&nbsp;<%= l(:label_show_course) %>:</label>
      <select name="show_course" id="show_course" style="font-size:small;width:497px;margin-left:10px;display: inline">
        <option value="1" <%= "selected=selected" if @first_page.show_course == 1 %>><%= l(:general_text_yes) %></option>
        <option value="2" <%= "selected=selected" if @first_page.show_course == 2 %>><%= l(:general_text_no) %></option>
      </select>
      </p>
    <p style="margin-left:60px;padding-right: 20px;">
      <label for='title'>&nbsp;&nbsp;&nbsp;<%= l(:label_show_contest) %>:</label>
      <select name="show_contest" id="show_contest" style="font-size:small;width:497px;margin-left:10px;display: inline">
        <option value="1" <%= "selected=selected" if @first_page.show_contest == 1 %>><%= l(:general_text_yes) %></option>
        <option value="2" <%= "selected=selected" if @first_page.show_contest == 2 %>><%= l(:general_text_no) %></option>
      </select>
    </p>
    <p style="margin-left:60px;padding-right: 20px;">
      <label for='sort_type' style="vertical-align: top">&nbsp;&nbsp;&nbsp;<%= l(:label_sort_type)%>:</label>
      <select name="sort_type" id="sort_type" style="font-size:small;width:497px;margin-left:80px;">
        <option value="1" <%= "selected=selected" if @first_page.sort_type == 1 %>><%= l(:label_sort_by_active) %></option>
        <option value="2" <%= "selected=selected" if @first_page.sort_type == 2 %>><%= l(:label_sort_by_influence) %></option>
        <option value="0" <%= "selected=selected" if @first_page.sort_type == 0 %>><%= l(:label_sort_by_time) %></option>
      </select>
    </p>
    <p style="margin-left:60px;padding-right: 20px;">
      <label for='description' style="vertical-align: top">&nbsp;&nbsp;&nbsp;<%= l(:label_site_description)%>:</label>
      <!-- <#%= text_area_tag 'description',@first_page.description,:rows => 8, :size => 30,:style => "font-size:small;width:490px;margin-left:10px;" %> -->
      <%= text_area 'first_page', 'description', :value => @first_page.description,:cols => 80, :rows => 15, :class => 'wiki-edit' %>
      <%= wikitoolbar_for 'first_page_description' %>
    </p>


      <%= submit_tag l(:button_save), :class => "small", :name => nil %>
<% end %>
<div>



</div>