58 lines
3.3 KiB
Plaintext
58 lines
3.3 KiB
Plaintext
<h3><%=l(:label_first_page_made)%></h3>
|
|
|
|
<%= form_tag(:controller => 'admin', :action => 'contest_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>
|
|
<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>
|
|
</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>
|
|
<div style="margin-left: 82px;" id="avatar">
|
|
<%= render :partial=>"avatar/avatar_form",:style => "display:inline",:locals=> {source:@contest_page} %>
|
|
</div>
|
|
<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>
|
|
<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>
|
|
|
|
|
|
|
|
</div> |