|
|
@ -1,3 +1,13 @@
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
function switchTab(ProTag) {
|
|
|
|
|
|
|
|
var display_index = 3 - ProTag;
|
|
|
|
|
|
|
|
document.getElementById("tab" + ProTag).className = "selected";
|
|
|
|
|
|
|
|
document.getElementById("tab" + display_index).className = "";
|
|
|
|
|
|
|
|
document.getElementById("content" + ProTag).style.display = "";
|
|
|
|
|
|
|
|
document.getElementById("content" + display_index).style.display = "none";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<p style="font-weight: bold; color: rgb(237,137,36)" xmlns="http://www.w3.org/1999/html"> <%=h l(:label_new_homework)%> </p>
|
|
|
|
<p style="font-weight: bold; color: rgb(237,137,36)" xmlns="http://www.w3.org/1999/html"> <%=h l(:label_new_homework)%> </p>
|
|
|
|
<div class="box">
|
|
|
|
<div class="box">
|
|
|
|
<%= form_for('new_form', :method => :post,
|
|
|
|
<%= form_for('new_form', :method => :post,
|
|
|
@ -6,26 +16,30 @@
|
|
|
|
:user_id => User.current.id,
|
|
|
|
:user_id => User.current.id,
|
|
|
|
:bid_id => @bid
|
|
|
|
:bid_id => @bid
|
|
|
|
}) do |f|%>
|
|
|
|
}) do |f|%>
|
|
|
|
<p style=" padding: 3px 0 3px 0;padding-left: 50px; clear:left;">
|
|
|
|
|
|
|
|
<strong>标 题:</strong>
|
|
|
|
<div class="tabs">
|
|
|
|
<%= f.text_field "name", :required => true, :size => 60, :style => "width:490px;" %>
|
|
|
|
<ul>
|
|
|
|
</p>
|
|
|
|
<li>
|
|
|
|
<p style=" padding: 3px 0 3px 0;padding-left: 50px; clear:left;">
|
|
|
|
<a id = "tab1" href="#" class = "selected" onclick="switchTab(1);this.blur();return false;">
|
|
|
|
<strong style="vertical-align: top">描 述:</strong>
|
|
|
|
<%= l(:label_information_plural) %>
|
|
|
|
<span style="margin-left:-10px;padding-right: 20px;">
|
|
|
|
</a>
|
|
|
|
<%= f.text_area "description", :rows => 8, :class => 'wiki-edit', :style => "font-size:small;width:490px;margin-left:10px;" %>
|
|
|
|
</li>
|
|
|
|
</span>
|
|
|
|
<li>
|
|
|
|
</p>
|
|
|
|
<a id="tab2" href="#" onclick="switchTab(2); this.blur(); return false;">
|
|
|
|
<p style="padding-left: 60px">
|
|
|
|
<%= l(:label_member_plural) %>
|
|
|
|
<fieldset style="text-align: left;">
|
|
|
|
</a>
|
|
|
|
<legend>
|
|
|
|
</li>
|
|
|
|
<%= l(:label_attachment_plural) %>
|
|
|
|
</ul>
|
|
|
|
</legend>
|
|
|
|
</div>
|
|
|
|
<p style=" padding: 3px 0 3px 0;padding-left: 50px; clear:left;">
|
|
|
|
|
|
|
|
<%= render :partial => 'attachments/form' %>
|
|
|
|
<div id="content1">
|
|
|
|
</p>
|
|
|
|
<%= render :partial => "new_homework",:locals => {:f => f} %>
|
|
|
|
</fieldset>
|
|
|
|
</div>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
|
<div id="content2">
|
|
|
|
|
|
|
|
<%= render :partial => "homework_member" %>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<p style="padding-left: 60px;padding-top: 10px;">
|
|
|
|
<p style="padding-left: 60px;padding-top: 10px;">
|
|
|
|
<span >
|
|
|
|
<span >
|
|
|
|
<%= submit_tag t(:label_button_ok), :sta => 0, :class => "enterprise"%>
|
|
|
|
<%= submit_tag t(:label_button_ok), :sta => 0, :class => "enterprise"%>
|
|
|
|