2013-08-20 16:32:45 +08:00
|
|
|
<!-- fq -->
|
2013-10-08 22:12:17 +08:00
|
|
|
<% else %>
|
2013-08-20 21:43:29 +08:00
|
|
|
<script type="text/javascript" language="javascript">
|
2013-08-22 20:38:54 +08:00
|
|
|
function show(id, id_t, label_reward, label_money, label_credit, label_content) {
|
2013-08-20 21:43:29 +08:00
|
|
|
var text = $('#' + id);
|
|
|
|
var text_t = $('#' + id_t);
|
|
|
|
if (text.val() == 0) {
|
2013-08-21 21:02:28 +08:00
|
|
|
text_t.attr("placeholder", label_reward);
|
2013-08-20 21:43:29 +08:00
|
|
|
}
|
|
|
|
if (text.val() == 1) {
|
2013-08-21 21:02:28 +08:00
|
|
|
text_t.attr("placeholder", label_money);
|
2013-08-20 21:43:29 +08:00
|
|
|
}
|
|
|
|
if (text.val() == 3) {
|
2013-08-22 20:38:54 +08:00
|
|
|
text_t.attr("placeholder", label_credit);
|
2013-08-20 21:43:29 +08:00
|
|
|
}
|
|
|
|
if (text.val() == 2) {
|
2013-08-21 21:02:28 +08:00
|
|
|
text_t.attr("placeholder", label_content);
|
2013-08-20 21:43:29 +08:00
|
|
|
}
|
|
|
|
return content;
|
|
|
|
}
|
|
|
|
</script>
|
2013-08-20 16:32:45 +08:00
|
|
|
<%= error_messages_for 'bid' %>
|
|
|
|
<!--[form:project]-->
|
2013-10-07 22:31:28 +08:00
|
|
|
<p style="width:500px;"><%= l(:label_bids_form_new_description) %></p>
|
2013-08-20 19:48:39 +08:00
|
|
|
<p><%= f.text_field :name, :required => true, :size => 60, :style => "width:490px;", :maxlength => Bid::NAME_LENGTH_LIMIT, :placeholder => "#{l(:label_requirement_name)}" %></p>
|
2013-08-20 16:32:45 +08:00
|
|
|
|
2013-08-20 19:48:39 +08:00
|
|
|
<p style="margin-left:-10px;padding-right: 20px;"><%= f.text_area :description, :rows => 8, :class => 'wiki-edit', :style => "font-size:small;width:490px;margin-left:10px;", :maxlength => Bid::DESCRIPTION_LENGTH_LIMIT, :placeholder => "#{l(:label_requirement_description)}" %></p>
|
2013-10-10 21:56:27 +08:00
|
|
|
<p><%= f.text_field :budget, :required => true, :size => 60, :style => "width:350px;", :placeholder => l(:label_bids_new_money) %>
|
2013-09-23 20:12:32 +08:00
|
|
|
|
|
|
|
<!-- 设置奖项设置的打开 关闭开关-->
|
|
|
|
|
2013-08-20 16:32:45 +08:00
|
|
|
</p>
|
2014-10-11 16:27:39 +08:00
|
|
|
<p><%= f.text_field :deadline, :required => true, :size => 60, :style => "width:150px;", :placeholder => "#{l(:label_deadline)}", :readonly => true %><%= calendar_for('bid_deadline')%>
|
2013-10-08 22:12:17 +08:00
|
|
|
</p>
|
|
|
|
|