添加备注

This commit is contained in:
fanqiang 2013-08-04 10:59:25 +08:00
parent 23fc4b8589
commit 7949e1166c
16 changed files with 17 additions and 2 deletions

View File

@ -1,3 +1,5 @@
# fq
class BidsController < ApplicationController
before_filter :find_bid, :only => [:show, :show_project, :create, :destroy, :more, :back, :add]

View File

@ -1,3 +1,4 @@
# fq
module BidsHelper
def render_notes(bid, journal, options={})
content = ''

View File

@ -1,3 +1,4 @@
## fq
class BidingProject < ActiveRecord::Base
attr_accessible :bid_id, :project_id, :user_id, :description

View File

@ -1,3 +1,4 @@
# fq
class JournalsForMessage < ActiveRecord::Base
attr_accessible :jour_id, :jour_type, :notes, :reply_id, :status, :user_id
attr_accessor :indice

View File

@ -1,3 +1,4 @@
# fq
class MessagesForUser < ActiveRecord::Base
attr_accessible :message, :messager_id, :user_id
belongs_to :user

View File

@ -1,3 +1,4 @@
# fq
class WatchersOfProjects < ActiveRecord::Base
attr_accessible :project_id, :user_id
belongs_to :project

View File

@ -1,3 +1,4 @@
# fq
class WatchersOfUser < ActiveRecord::Base
attr_accessible :user_id, :watcher_id
belongs_to :user

View File

@ -1,3 +1,4 @@
<!-- 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>

View File

@ -1,4 +1,4 @@
<!-- fq -->
<%= form_for('bid_message', :remote => true, :method => :post,
:url => {:controller => 'bids',
:action => 'create',

View File

@ -1,3 +1,4 @@
<!-- fq -->
<script type="text/javascript" language="javascript">
function clearInfo(id) {
$('#'+id).val('');

View File

@ -1,3 +1,4 @@
<!-- fq -->
<% @bidding_project.each do |b_project|%>
<table width="90%" border="0" align='center'>
<tr>

View File

@ -1,3 +1,4 @@
<!-- fq -->
<div id="put-bid-form" style="display: none">
<%= render :partial => 'new_bid' %>
</div>

View File

@ -1,4 +1,4 @@
<!-- fq -->
<table width="660px" border="0" align="center">
<tr>
<td width="50" valign="top"><%= link_to image_tag(url_to_avatar(@bid.author), :class => "avatar"), user_path(@bid.author), :class => "avatar" %></td>

View File

@ -1,3 +1,4 @@
<!-- fq -->
<div class="contextual">
<div class='icon icon-add' style="margin-right: 30px;">
<%= toggle_link l(:button_bidding), 'put-bid-form', {:focus => 'project_id'} %>

View File

@ -1,3 +1,4 @@
<!-- fq -->
<% if jour.size >0 %>
<% remove_allowed = (User.current.id == jour.first.user_id) %>
<% journals = jour.reverse%>

View File

@ -1,3 +1,4 @@
<!-- fq -->
<h3 class="title"><%= l(:label_leave_message_to, :name => "user") %></h3>
<%= form_for("new_form", :remote => true, :url => {:controller => 'words',