socialforge/app/views/homework_attach/new.html.erb

79 lines
3.7 KiB
Plaintext
Raw Normal View History

<%= stylesheet_link_tag 'css', :media => 'all' %>
2015-01-31 14:28:02 +08:00
<div class="container" id="content">
<div class="Newwork">
<div id="tb_" class="tb_">
<ul>
2014-11-26 15:24:41 +08:00
<li id="tb_1" class="hovertab" onmouseover="x:HoverLi(1);" style="width: auto; padding:5px 10px 0;">
创建作品
</li>
2014-11-26 15:24:41 +08:00
<li class="N_top" style="width: 835px;">
<%= link_to(l(:label_project_new), {:controller => 'projects',
:action => 'new',
:course => 0,
:project_type => 0}) if User.current.allowed_to?(:add_project, nil, :global => true) %>
</li>
</ul>
</div>
<div class="dis" id="tbc_01">
<div class="N_con">
<%= form_for(HomeworkAttach.new, :method => :post,
:name => 'new_form',
:html => { :multipart => true },
:url => {:controller => 'homework_attach',
:action => 'create',
:user_id => User.current.id,
:bid_id => @bid
}) do |f|%>
<p>
<label>
<span class="c_red">
*
</span>
&nbsp;&nbsp;作品名称&nbsp;&nbsp;&nbsp;&nbsp;
</label>
<%= f.text_field "name", :required => true, :size => 60, :class => "w430 bo", :maxlength => 254, :placeholder => "作品名称", :onkeyup => "regexHomeworkCommonName();" %>
2014-11-04 16:27:34 +08:00
<span id="homework_attach_name_span"></span>
</p>
2015-04-27 15:29:09 +08:00
<p style="float:left;">
2014-11-26 15:24:41 +08:00
<label style="float:left;">
<span class="c_red">
*
</span>
2014-11-26 15:24:41 +08:00
&nbsp;&nbsp;作品描述&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</label>
<%= f.text_area "description", :class => "w620", :maxlength => 3000, :style => "width:430px", :placeholder => "最多3000个汉字", :onkeyup => "regexHomeworkCommonDescription();"%>
2015-04-27 15:29:09 +08:00
<p id="homework_attach_description_span" style="padding-left: 100px;"></p>
2015-01-10 17:27:08 +08:00
</p>
2015-04-27 15:29:09 +08:00
<div class="cl"></div>
<p style="float: left;">
&nbsp;&nbsp;&nbsp;添加附件&nbsp;&nbsp;&nbsp;&nbsp;
</p>
2015-04-27 15:29:09 +08:00
<div style="float: left;margin-left: 10px;">
<%= render :partial => 'attachments/form' %>
</div>
<div class="cl"></div>
<p>
<label>&nbsp;&nbsp;&nbsp;开发项目
<img src="/images/bid/pic_question.png" width="16" height="16"
title="项目是一种由用户创建的基于网络的协作空间,能够为个人或小组提供分布式的协同交流和资料管理等方面的支持。
项目托管平台http://forge.trustie.ne">
</label>
<%= f.select :project_id,options_for_select(user_projects_option), {},{:class => "w350 bo"} %>
</p>
<p>
<span style="float: left;">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>
<a href="javascript:" class="tijiao" onclick="submit_homework_form();">
<%= l(:label_button_ok) %>
</a>
<a href="javascript:history.back()" class="tijiao">取&nbsp;&nbsp;消</a>
<div class="cl"></div>
</p>
<% end %>
</div><!---创建作业内容结束-->
</div>
</div>
</div><!--新建作业结束-->