socialforge/app/views/bids/_new.html.erb

85 lines
2.6 KiB
Plaintext
Raw Normal View History

2013-08-04 10:59:25 +08:00
<!-- fq -->
2013-08-06 21:43:06 +08:00
<style>
input[type="submit"].bid_btn {
vertical-align: middle;
width: 60px;
height: 30px;
line-height: 18px;
font-size: 14px;
2013-08-12 17:30:31 +08:00
color: rgb(0, 0, 0);
background: url("../images/button/bg103.jpg") no-repeat scroll left top transparent;
2013-08-06 21:43:06 +08:00
padding: 0px 0px 4px 0px;
border-radius: 2px;
2013-08-09 16:26:26 +08:00
border: 1px solid rgb(148, 148, 148);
box-shadow: none;
text-shadow: none;
margin-top: -10px;
/*margin-right: -4px;*/
2013-08-06 21:43:06 +08:00
}
input[type="button"].bid_btn {
width: 60px;
height: 30px;
line-height: 18px;
font-size: 14px;
2013-08-12 17:30:31 +08:00
color: rgb(0, 0, 0);
background: url("../images/button/bg103.jpg") no-repeat scroll left top transparent;
2013-08-06 21:43:06 +08:00
padding: 0px 0px 4px 0px;
border-radius: 2px;
2013-08-09 16:26:26 +08:00
border: 1px solid rgb(148, 148, 148);
box-shadow: none;
text-shadow: none;
margin-top: -10px;
margin-right: -2px;
2013-08-06 21:43:06 +08:00
}
textarea:focus {
border: #d5dee9 1px solid;
}
</style>
<script type="text/javascript" language="javascript">
2013-08-09 16:26:26 +08:00
function clearInfo(id, content) {
var text = $('#' + id);
if (text.val() == content) {
$('#' + id).val('');
}
}
2013-08-09 16:26:26 +08:00
function showInfo(id, content) {
var text = $('#' + id);
if (text.val() == '') {
$('#' + id).val(content);
}
}
</script>
2013-08-09 16:26:26 +08:00
<%= form_for('bid_message', :remote => true, :method => :post,
:url => {:controller => 'bids',
:action => 'create',
:id => bid,
:sta => sta}) do |f|%>
2013-08-15 09:54:08 +08:00
<div id = 'pre_show'>
<%= render :partial => 'pre_show', :locals => {:content => @content} %>
</div>
2013-08-09 16:26:26 +08:00
<% if User.current.logged? %>
2013-08-06 21:43:06 +08:00
<table border="0" width="525px" align="center" >
<tr>
2013-08-09 16:26:26 +08:00
<td><%= f.text_area 'message', :rows => 3, :cols => 65, :value => "#{l(:label_my_respond)}", :onfocus => "clearInfo('bid_message_message', '#{l(:label_my_respond)}')", :onblur => "showInfo('bid_message_message', '#{l(:label_my_respond)}')", :style => "resize: none;", :class => 'noline'%></td>
</tr>
</table>
2013-08-09 16:26:26 +08:00
<%= f.text_field :reference_user_id, :style=>"display:none"%>
<table border="0" width="525px" align="center">
<tr>
<td align="right"> <%= submit_tag l(:button_leave_meassge), :name => nil , :class => "bid_btn", :onmouseout => "this.style.backgroundPosition = 'left top'", :onmouseover => "this.style.backgroundPosition = 'left -31px'"%>
<%= submit_tag l(:button_clear), :name => nil, :onclick => "clearMessage('bid_message_message');", :type => 'button', :class => "bid_btn", :onmouseout => "this.style.backgroundPosition = 'left top'", :onmouseover => "this.style.backgroundPosition = 'left -31px'" %> </td>
2013-08-09 16:26:26 +08:00
</tr>
</table>
<% else %>
<div style="font-size: 14px;margin:10px;">
<%= l(:label_user_login_tips) %>
<%= link_to l(:label_user_login_new), signin_path %>
</div>
<% end %>
2013-08-01 10:33:49 +08:00
<% end %>