diff --git a/app/views/bids/_homework.html.erb b/app/views/bids/_homework.html.erb index f4bd9a1eb..7bd290ecf 100644 --- a/app/views/bids/_homework.html.erb +++ b/app/views/bids/_homework.html.erb @@ -8,7 +8,7 @@ <%= submit_tag l(:button_create) %> <% end %> -<% if User.current.logged? && (!Member.where('user_id = ? and project_id = ?', User.current.id, @bid.courses.first.id).first.nil? && (Member.where('user_id = ? and project_id = ?', User.current.id, @bid.courses.first.id).first.roles&Role.where('id = ? or id = ?', 5, 7)).size >0) %> +<% if User.current.logged? && (!Member.where('user_id = ? and project_id = ?', User.current.id, @bid.courses.first.id).first.nil? && (Member.where('user_id = ? and project_id = ?', User.current.id, @bid.courses.first.id).first.roles&Role.where('id = ? or id = ?', 10, 7)).size >0) %>
<%= l(:label_homework_project) %>(<%= bidding_project.count%>) |
- <% if User.current.logged? && (!Member.where('user_id = ? and project_id = ?', User.current.id, @bid.courses.first.id).first.nil? && (Member.where('user_id = ? and project_id = ?', User.current.id, @bid.courses.first.id).first.roles&Role.where('id = ? or id = ?', 5, 7)).size >0) %>
+ <% if User.current.logged? && (!Member.where('user_id = ? and project_id = ?', User.current.id, @bid.courses.first.id).first.nil? && (Member.where('user_id = ? and project_id = ?', User.current.id, @bid.courses.first.id).first.roles&Role.where('id = ? or id = ?', 10, 7)).size >0) %>
<%= toggle_link l(:label_commit_homework), 'put-bid-form' %>
diff --git a/app/views/bids/show.html.erb b/app/views/bids/show.html.erb
index 88d21d3a0..22cc1dcd4 100644
--- a/app/views/bids/show.html.erb
+++ b/app/views/bids/show.html.erb
@@ -13,7 +13,7 @@
<%= l(:label_call_bonus) %> <%= l(:label_RMB_sign) %><%= @bid.budget%>
|
- <% elsif @bid.reward_type == 2%>
+ <% elsif @bid.reward_type == 2%>
<%= l(:label_bids_reward_method) %>
diff --git a/app/views/bids/show_project.html.erb b/app/views/bids/show_project.html.erb
index 05e9771d0..7e015e712 100644
--- a/app/views/bids/show_project.html.erb
+++ b/app/views/bids/show_project.html.erb
@@ -92,11 +92,11 @@
<% end %>
- <%= submit_tag l(:button_add), :name => nil , :class => "btn_bid",
+ <%= submit_tag l(:button_add), :name => nil , :class => "enterprise",
:onmouseout => "this.style.backgroundPosition = 'left top'",
:onmouseover => "this.style.backgroundPosition = 'left -30px'"%>
<%= submit_tag l(:button_cancel), :name => nil, :onclick => "cancel();",
- :type => 'button', :class => "btn_bid", :onmouseout => "this.style.backgroundPosition = 'left top'",
+ :type => 'button', :class => "enterprise", :onmouseout => "this.style.backgroundPosition = 'left top'",
:onmouseover => "this.style.backgroundPosition = 'left -30px'" %>
|
+
+ <%= l(:label_project_overview) %>
+
+
+
+ <% if @bid.description.size>0 %>
+
+
+
+ <% else %>
+
+ <% end %>
+
+ <%= l(:label_create_time) %>:<%= format_time(@bid.created_on) %>
+
+
-
- <%= l(:label_tag) %>
-
+
|