|
|
|
@ -5,14 +5,7 @@
|
|
|
|
|
<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>
|
|
|
|
|
<li><%= link_to l(:label_web_footer_page),{:action => 'web_footer_made'} %></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<%= render 'tab_partial' %>
|
|
|
|
|
|
|
|
|
|
<h4><%=l(:label_contest_first_page)%></h4>
|
|
|
|
|
<p style="margin-left:60px;padding-right: 20px;">
|
|
|
|
@ -38,26 +31,7 @@
|
|
|
|
|
<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>
|
|
|
|
|
<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">
|
|
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
<%= text_area 'contest_notification', 'content', :value => @notification.content,:cols => 80, :rows => 15, :class => 'wiki-edit' %>
|
|
|
|
|
<%= wikitoolbar_for 'contest_notification_content' %>
|
|
|
|
|
<!-- <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> -->
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<%= submit_tag l(:button_save), :class => "small", :name => nil %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div>
|
|
|
|
|