添加备注

exceptionHandle
fanqiang 12 years ago
parent 23fc4b8589
commit 7949e1166c

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

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

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

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

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

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

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

@ -1,3 +1,4 @@
<!-- fq -->
<table width="500px" border="0" style="padding-left: 10px; margin-bottom: 15px; padding-top: 10px;"> <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 width="100px" class="font_lighter" style="font-size: 16px;">需求列表</td>
<td> <td>

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

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

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

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

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

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

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

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

Loading…
Cancel
Save