2013-11-19 15:15:54 +08:00
|
|
|
<!-- added by bai -->
|
|
|
|
<h3><%=l(:label_settings)%></h3>
|
|
|
|
<script type="text/javascript" language="javascript">
|
|
|
|
function show(id, id_t, label_reward, label_money, label_credit, label_content) {
|
|
|
|
var text = $('#' + id);
|
|
|
|
var text_t = $('#' + id_t);
|
|
|
|
if (text.val() == 0) {
|
|
|
|
text_t.attr("placeholder", label_reward);
|
|
|
|
}
|
|
|
|
if (text.val() == 1) {
|
|
|
|
text_t.attr("placeholder", label_money);
|
|
|
|
}
|
|
|
|
if (text.val() == 3) {
|
|
|
|
text_t.attr("placeholder", label_credit);
|
|
|
|
}
|
|
|
|
if (text.val() == 2) {
|
|
|
|
text_t.attr("placeholder", label_content);
|
|
|
|
}
|
|
|
|
return content;
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<%= error_messages_for 'bid' %>
|
|
|
|
|
2013-11-19 16:08:55 +08:00
|
|
|
<%= labelled_form_for @bid, :url => {:controller => 'bids', :action => 'update_contest'} do |f| %>
|
2013-11-19 15:15:54 +08:00
|
|
|
<div class="box tabular">
|
|
|
|
<%= render :partial => 'form_contest', :locals => { :f => f } %>
|
|
|
|
</div>
|
|
|
|
<%= submit_tag l(:button_create) %>
|
|
|
|
<%= javascript_tag "$('#bid_name').focus();" %>
|
|
|
|
<% end %>
|