2014-07-10 17:38:04 +08:00
|
|
|
<h3><%=l(:label_first_page_made)%></h3>
|
|
|
|
|
|
|
|
<%= form_tag(:controller => 'admin', :action => 'first_page_made') do %>
|
2014-07-11 11:41:54 +08:00
|
|
|
<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>
|
|
|
|
<div class="tabs">
|
|
|
|
<ul>
|
|
|
|
<li><%= link_to l(:label_project_first_page), {:action => 'first_page_made'}, :class => 'selected' %></li>
|
|
|
|
<li><%= link_to l(:label_course_first_page), {:action => 'course_page_made'} %></li>
|
|
|
|
<li><%= link_to l(:label_contest_first_page), {:action => 'contest_page_made'} %></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<h4><%=l(:label_project_first_page)%></h4>
|
2014-07-10 17:38:04 +08:00
|
|
|
<p style="margin-left:60px;padding-right: 20px;">
|
|
|
|
<label for='attachments_fields'> <%= l(:label_site_image) %>:</label>
|
|
|
|
</p>
|
2014-07-15 16:13:50 +08:00
|
|
|
<div style="margin-left: 82px;" id="avatar">
|
2014-07-10 17:38:04 +08:00
|
|
|
<%= render :partial=>"avatar/avatar_form",:style => "display:inline",:locals=> {source:@first_page} %>
|
|
|
|
</div>
|
2014-07-11 11:41:54 +08:00
|
|
|
|
2014-07-10 17:38:04 +08:00
|
|
|
<p style="margin-left:60px;padding-right: 20px;">
|
|
|
|
<label for='title'> <%= l(:label_site_title) %>:</label>
|
|
|
|
<%= text_field_tag 'title', params[:label_site_title], :value => @first_page.title,:size => 30,:style => "font-size:small;width:490px;margin-left:10px;" %>
|
|
|
|
</p>
|
|
|
|
<p style="margin-left:60px;padding-right: 20px;">
|
|
|
|
<label for='description' style="vertical-align: top"> <%= 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;" %>
|
|
|
|
</p>
|
2014-07-16 14:22:12 +08:00
|
|
|
<p style="margin-left:60px;padding-right: 20px;">
|
|
|
|
<label for='sort_type' style="vertical-align: top"> <%= l(:label_sort_type)%>:</label>
|
|
|
|
<select name="sort_type" id="sort_type" style="font-size:small;width:496px;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>
|
2014-07-11 11:41:54 +08:00
|
|
|
|
2014-07-10 17:38:04 +08:00
|
|
|
<%= submit_tag l(:button_save), :class => "small", :name => nil %>
|
|
|
|
<% end %>
|
|
|
|
<div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|