From 78bc458e84607939bbb7657665800f34a616705f Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Sun, 2 Nov 2014 12:58:09 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E5=8C=BF=E8=AF=84=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E5=BC=B9=E5=87=BA=E6=8F=90=E7=A4=BA=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=202.=E5=A2=9E=E5=8A=A0=E6=96=B0=E5=A2=9E=E4=BD=9C=E4=B8=9A?= =?UTF-8?q?=E9=9D=99=E6=80=81=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/bids/_homework.html.erb | 2 +- .../homework_attach/_praise_alert.html.erb | 4 +- app/views/homework_attach/new.html.erb | 162 +++++++++++++----- app/views/homework_attach/show.js.erb | 1 + public/stylesheets/css.css | 10 +- 5 files changed, 124 insertions(+), 55 deletions(-) diff --git a/app/views/bids/_homework.html.erb b/app/views/bids/_homework.html.erb index d6f53aaf2..0b38d07d9 100644 --- a/app/views/bids/_homework.html.erb +++ b/app/views/bids/_homework.html.erb @@ -32,7 +32,7 @@ <% if !@is_teacher && @homework_list.count > 0%> $('#ajax-modal').html('<%= escape_javascript(render :partial => 'homework_attach/praise_alert') %>'); showModal('ajax-modal', '480px'); - $('#ajax-modal').css('height','250px'); + $('#ajax-modal').css('height','240px'); <% end %> } diff --git a/app/views/homework_attach/_praise_alert.html.erb b/app/views/homework_attach/_praise_alert.html.erb index fc20b15b5..477615751 100644 --- a/app/views/homework_attach/_praise_alert.html.erb +++ b/app/views/homework_attach/_praise_alert.html.erb @@ -10,9 +10,9 @@
- <%=h l(:label_new_homework)%> -
+ + + + +- 标 题 *: - <%= f.text_field "name", :required => true, :size => 60, :style => "width:490px;", :maxlength => 254 %> -
-- - 提交项目 : - - <%= f.select :project_id,options_for_select(user_projects_option), {},{:style => "width:490px;"} %> - <%= link_to '创建项目', new_project_path(course: 0, project_type: 0), :target => '_blank' %> -
- 提交项目可以为空 -
- -- - 描 述 : - - - <%= f.text_area "description", :rows => 8, :class => 'wiki-edit', :style => "font-size:small;width:490px;margin-left:10px;", :maxlength => 5000 %> - -
--