2014-07-11 11:41:54 +08:00
|
|
|
<h3><%=l(:label_first_page_made)%></h3>
|
|
|
|
|
2014-07-22 15:59:35 +08:00
|
|
|
<%= form_tag(:controller => 'admin', :action => 'contest_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'} %></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'} , :class => 'selected'%></li>
|
2014-10-13 17:38:59 +08:00
|
|
|
<li><%= link_to l(:label_web_footer_page),{:action => 'web_footer_made'} %></li>
|
2014-07-11 11:41:54 +08:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h4><%=l(:label_contest_first_page)%></h4>
|
|
|
|
<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-11 11:41:54 +08:00
|
|
|
<%= render :partial=>"avatar/avatar_form",:style => "display:inline",:locals=> {source:@contest_page} %>
|
|
|
|
</div>
|
2014-07-25 16:05:33 +08:00
|
|
|
<p style="margin-left:60px;padding-right: 20px;">
|
|
|
|
<label for='image_width' style="vertical-align: top"> <%= l(:label_image_width)%>:</label>
|
|
|
|
<%= text_field_tag 'image_width', params[:label_image_width],:value => @contest_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"> <%= l(:label_imgae_height)%>:</label>
|
|
|
|
<%= text_field_tag 'image_height', params[:label_imgae_height], :value => @contest_page.image_height,:size => 30,:style => "font-size:small;width:490px;margin-left:10px;" %>
|
|
|
|
</p>
|
2014-07-11 11:41:54 +08:00
|
|
|
<p style="margin-left:60px;padding-right: 20px;">
|
|
|
|
<label for='contest_title'> <%= l(:label_site_title) %>:</label>
|
|
|
|
<%= text_field_tag 'contest_title', params[:label_site_title], :value => @contest_page.title,:size => 30,:style => "font-size:small;width:490px;margin-left:10px;" %>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p style="margin-left:60px;padding-right: 20px;">
|
|
|
|
<label for='contest_description' style="vertical-align: top"> <%= l(:label_site_description)%>:</label>
|
|
|
|
<%= text_area_tag 'contest_description',@contest_page.description,:rows => 8, :size => 30,:style => "font-size:small;width:490px;margin-left:10px;" %>
|
|
|
|
</p>
|
2014-07-22 15:59:35 +08:00
|
|
|
<p style="margin-left:60px;padding-right: 20px;">
|
|
|
|
<label> <%= link_to l(:label_notification), '#',
|
|
|
|
:onclick => '$("#notification").slideToggle(400); ' %></label>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<div style="margin-left:60px;padding-right: 20px;" id="notification">
|
2014-07-23 17:56:15 +08:00
|
|
|
|
|
|
|
<label for='contest_notification_title'> <%= l(:label_contest_notification_title) %>:</label>
|
|
|
|
<p style="margin-left:70px;padding-right: 20px;">
|
|
|
|
<%= text_field_tag 'contest_notification_title', params[:label_contest_notification_title], :value => @notification.title,:size => 30,:style => "font-size:small;width:490px;margin-left:10px;" %>
|
|
|
|
</p>
|
|
|
|
<label for='contest_notification' style="vertical-align: top"> <%= l(:label_contest_notification_content)%>:</label>
|
2014-07-23 09:24:26 +08:00
|
|
|
<%= text_area 'contest_notification', 'content', :value => @notification.content,:cols => 80, :rows => 15, :class => 'wiki-edit' %>
|
|
|
|
<%= wikitoolbar_for 'contest_notification_content' %>
|
2014-07-23 17:56:15 +08:00
|
|
|
<!-- <script src="/javascripts/ckeditor/ckeditor.js?1404953555" type="text/javascript"></script>
|
|
|
|
|
|
|
|
<p><#%= text_area 'contest_notification', 'content', :value => @notification.content,:required => true, :size => 80,:class => 'wiki-edit', id: 'editor01' %></p>
|
|
|
|
<script type="text/javascript">var ckeditor=CKEDITOR.replace('editor01');</script> -->
|
|
|
|
|
2014-07-22 15:59:35 +08:00
|
|
|
</div>
|
2014-07-11 11:41:54 +08:00
|
|
|
<%= submit_tag l(:button_save), :class => "small", :name => nil %>
|
|
|
|
<% end %>
|
|
|
|
<div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|