添加备注
This commit is contained in:
parent
23fc4b8589
commit
7949e1166c
|
@ -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 @@
|
|||
# fq
|
||||
module BidsHelper
|
||||
def render_notes(bid, journal, options={})
|
||||
content = ''
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
## fq
|
||||
class BidingProject < ActiveRecord::Base
|
||||
attr_accessible :bid_id, :project_id, :user_id, :description
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# fq
|
||||
class JournalsForMessage < ActiveRecord::Base
|
||||
attr_accessible :jour_id, :jour_type, :notes, :reply_id, :status, :user_id
|
||||
attr_accessor :indice
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# fq
|
||||
class MessagesForUser < ActiveRecord::Base
|
||||
attr_accessible :message, :messager_id, :user_id
|
||||
belongs_to :user
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# fq
|
||||
class WatchersOfProjects < ActiveRecord::Base
|
||||
attr_accessible :project_id, :user_id
|
||||
belongs_to :project
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# fq
|
||||
class WatchersOfUser < ActiveRecord::Base
|
||||
attr_accessible :user_id, :watcher_id
|
||||
belongs_to :user
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
<!-- fq -->
|
||||
<%= form_for('bid_message', :remote => true, :method => :post,
|
||||
:url => {:controller => 'bids',
|
||||
:action => 'create',
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!-- fq -->
|
||||
<script type="text/javascript" language="javascript">
|
||||
function clearInfo(id) {
|
||||
$('#'+id).val('');
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!-- fq -->
|
||||
<% @bidding_project.each do |b_project|%>
|
||||
<table width="90%" border="0" align='center'>
|
||||
<tr>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!-- fq -->
|
||||
<div id="put-bid-form" style="display: none">
|
||||
<%= render :partial => 'new_bid' %>
|
||||
</div>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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'} %>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!-- fq -->
|
||||
<% if jour.size >0 %>
|
||||
<% remove_allowed = (User.current.id == jour.first.user_id) %>
|
||||
<% journals = jour.reverse%>
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue