- <%= f.text_area 'message', :rows => 4, :cols => 65, :value => "我要反馈", :required => true, :style => "resize: none;" %> |
-
+ <%= f.text_area 'message', :rows => 4, :cols => 65, :value => "我要反馈", :required => true, :style => "resize: none;", :class => 'noline'%> |
+
+
+
+ <%= text_field_tag 'bid_title', "为你的需求起个名字~~", :class => 'noline', :required => true, :onfocus => "clearInfo('bid_title')"%> |
+
+
+ |
+
+
+ <%= text_area_tag 'bid_description', "说出你的需求>找到威客来帮你>支付担保金让威客开始工作 >验收付款并评价", :class => 'noline', :required => true, :style => "resize: none;", :rows => 8,
+ :onfocus => "clearInfo('bid_description')" %> |
+
+
+ |
+
+
+ <%= text_field_tag 'bid_budget', "支付担保金额", :class => 'noline', :required => true, :onfocus => "clearInfo('bid_budget')"%> |
+
+
+ |
+
+
+ <%= text_field_tag 'bid_deadline', "投资时限 yyyy-mm-dd", :class => 'noline', :required => true, :onfocus => "clearInfo('bid_deadline')"%> |
+
+
+
- <%= link_to("新建需求", {:controller => 'bids', :action => 'new_bid'}, :class => 'icon icon-add', :style => "margin-right: 100px;") %>
+
+ <%= render :partial => 'new_bid' %>
-
-需求列表 |
+
+
+ 需求列表 |
+
+
+ <%= toggle_link l(:button_bidding), 'put-bid-form', {:focus => 'project_id'} %>
+ |
<% @bids.each do |bid|%>
-
+
<%= link_to image_tag(url_to_avatar(bid.author), :class => 'avatar'), :class => "avatar" %> |
@@ -20,9 +25,9 @@
悬赏:¥<%= bid.budget%> |
- (<%= bid.biding_projects.count%>)应标 |
- (<%= bid.commit %>)反馈 |
- (<%= bid.watcher_users.count%>)关注 |
+ (<%= link_to bid.biding_projects.count, project_for_bid_path(bid)%>)应标 |
+ (<%= link_to bid.commit, respond_path(bid)%>)反馈 |
+ (<%= link_to bid.watcher_users.count, respond_path(bid)%>)关注 |
|
<%= format_time bid.created_at %> |
@@ -40,5 +45,4 @@
-
<% end %>
diff --git a/app/views/bids/new_bid.html.erb b/app/views/bids/new_bid.html.erb
deleted file mode 100644
index bfda90733..000000000
--- a/app/views/bids/new_bid.html.erb
+++ /dev/null
@@ -1,14 +0,0 @@
-
-<%= form_tag({:controller => 'bids',
- :action => 'index',
- :remote => true,
- :method => :post,
- :id => 'new-bid-form'}) do %>
-
需求名称:<%= text_field_tag 'bid_title' %>
-
需求描述:
-
<%= text_area_tag 'bid_description' %>
-
投资预算:<%= text_field_tag 'bid_budget' %>
-
投资时限:<%= text_field_tag 'bid_deadline' %>
- <%= submit_tag l(:button_submit) %>
- <%end%>
-
diff --git a/app/views/bids/show_project.html.erb b/app/views/bids/show_project.html.erb
index 8a5d13f99..7f06cd1b7 100644
--- a/app/views/bids/show_project.html.erb
+++ b/app/views/bids/show_project.html.erb
@@ -1,28 +1,33 @@
- <%= toggle_link "我要应标", 'put-bid-form', {:focus => 'project_id'} %>
+ <%= toggle_link l(:button_bidding), 'put-bid-form', {:focus => 'project_id'} %>