@ -1,3 +1,5 @@
# fq
class BidsController < ApplicationController
before_filter :find_bid, :only => [:show, :show_project, :create, :destroy, :more, :back, :add]
@ -1,3 +1,4 @@
module BidsHelper
def render_notes(bid, journal, options={})
content = ''
## fq
class BidingProject < ActiveRecord::Base
attr_accessible :bid_id, :project_id, :user_id, :description
class JournalsForMessage < ActiveRecord::Base
attr_accessible :jour_id, :jour_type, :notes, :reply_id, :status, :user_id
attr_accessor :indice
class MessagesForUser < ActiveRecord::Base
attr_accessible :message, :messager_id, :user_id
belongs_to :user
class WatchersOfProjects < ActiveRecord::Base
attr_accessible :project_id, :user_id
belongs_to :project
class WatchersOfUser < ActiveRecord::Base
attr_accessible :user_id, :watcher_id
<!-- fq -->
<table width="500px" border="0" style="padding-left: 10px; margin-bottom: 15px; padding-top: 10px;">
<td width="100px" class="font_lighter" style="font-size: 16px;">需求列表</td>
<td>
@ -1,4 +1,4 @@
<%= form_for('bid_message', :remote => true, :method => :post,
:url => {:controller => 'bids',
:action => 'create',
<script type="text/javascript" language="javascript">
function clearInfo(id) {
$('#'+id).val('');
<% @bidding_project.each do |b_project|%>
<table width="90%" border="0" align='center'>
<tr>
<div id="put-bid-form" style="display: none">
<%= render :partial => 'new_bid' %>
</div>
<table width="660px" border="0" align="center">
<td width="50" valign="top"><%= link_to image_tag(url_to_avatar(@bid.author), :class => "avatar"), user_path(@bid.author), :class => "avatar" %></td>
<div class="contextual">
<div class='icon icon-add' style="margin-right: 30px;">
<%= toggle_link l(:button_bidding), 'put-bid-form', {:focus => 'project_id'} %>
<% if jour.size >0 %>
<% remove_allowed = (User.current.id == jour.first.user_id) %>
<% journals = jour.reverse%>
<h3 class="title"><%= l(:label_leave_message_to, :name => "user") %></h3>
<%= form_for("new_form", :remote => true, :url => {:controller => 'words',