取消日期编辑框可手动输入的问题 #1045
This commit is contained in:
parent
1498f5c20b
commit
589c6d37db
|
@ -26,9 +26,9 @@
|
||||||
<p><%= f.text_field :name, :required => true, :size => 60, :style => "width:490px;", :maxlength => Bid::NAME_LENGTH_LIMIT %></p>
|
<p><%= f.text_field :name, :required => true, :size => 60, :style => "width:490px;", :maxlength => Bid::NAME_LENGTH_LIMIT %></p>
|
||||||
|
|
||||||
<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 %></p>
|
<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 %></p>
|
||||||
<!-- <p><%= select_tag 'bid_reward_type', "<option value = '0'>#{l(:label_choose_reward)}</option><option value = '1'>#{l(:label_money)}</option><option value = '3'>#{l(:label_bids_credit)}</option><option value = '2'>#{l(:label_reward_1)}</option>".html_safe,
|
<!-- <p><%#= select_tag 'bid_reward_type', "<option value = '0'>#{l(:label_choose_reward)}</option><option value = '1'>#{l(:label_money)}</option><option value = '3'>#{l(:label_bids_credit)}</option><option value = '2'>#{l(:label_reward_1)}</option>".html_safe,
|
||||||
:onChange => "show('bid_reward_type', 'bid_budget', '"+l(:label_bids_reward_what)+"','"+l(:label_bids_new_money)+"','"+l(:label_bids_new_credit)+"','"+l(:label_bids_new_content)+"')" %>
|
:onChange => "show('bid_reward_type', 'bid_budget', '"+l(:label_bids_reward_what)+"','"+l(:label_bids_new_money)+"','"+l(:label_bids_new_credit)+"','"+l(:label_bids_new_content)+"')" %>
|
||||||
<%= f.text_field :budget, :required => true, :size => 60, :style => "width:350px;", :placeholder => l(:label_bids_reward_what) %>
|
<%#= f.text_field :budget, :required => true, :size => 60, :style => "width:350px;", :placeholder => l(:label_bids_reward_what) %>
|
||||||
</p> -->
|
</p> -->
|
||||||
<p><%= f.text_field :deadline, :required => true, :size => 60, :style => "width:150px;" %><%= calendar_for('bid_deadline')%>
|
<p><%= f.text_field :deadline, :required => true, :size => 60, :style => "width:150px;" %><%= calendar_for('bid_deadline')%>
|
||||||
</p>
|
</p>
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
<%#= f.text_field :budget, :required => true, :size => 60, :style => "width:350px;", :placeholder => l(:label_bids_reward_what) %>
|
<%#= f.text_field :budget, :required => true, :size => 60, :style => "width:350px;", :placeholder => l(:label_bids_reward_what) %>
|
||||||
</p> -->
|
</p> -->
|
||||||
<% time = (Time.now + 3600 * 24).strftime('%Y-%m-%d') %>
|
<% time = (Time.now + 3600 * 24).strftime('%Y-%m-%d') %>
|
||||||
<p><%= f.text_field(:deadline, :required => true, :size => 60, :style => "width:150px;",:value => "#{time}") %><%= calendar_for('bid_deadline')%>
|
<p><%= f.text_field(:deadline, :required => true, :size => 60, :style => "width:150px;",:value => "#{time}",:readonly => "readonly") %><%= calendar_for('bid_deadline')%>
|
||||||
</p>
|
</p>
|
||||||
<p><%= f.select :is_evaluation, is_evaluation_option %>
|
<p><%= f.select :is_evaluation, is_evaluation_option %>
|
||||||
</p>
|
</p>
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
<!--[form:project]-->
|
<!--[form:project]-->
|
||||||
<p><%= l(:label_homeworks_form_new_description) %></p>
|
<p><%= l(:label_homeworks_form_new_description) %></p>
|
||||||
<!-- % unless @memo.parent_id %>
|
<!-- % unless @memo.parent_id %>
|
||||||
<% if @memo.safe_attribute? 'sticky' %>
|
<%# if @memo.safe_attribute? 'sticky' %>
|
||||||
<%= f.check_box :sticky %> <lable><%= l(:label_board_sticky) %></lable>
|
<%#= f.check_box :sticky %> <lable><%= l(:label_board_sticky) %></lable>
|
||||||
<% end %>
|
<%# end %>
|
||||||
<% if @memo.safe_attribute? 'locked' %>
|
<%# if @memo.safe_attribute? 'locked' %>
|
||||||
<%= f.check_box :locked %> <%= label_tag 'memo_locked', l(:label_board_locked) %>
|
<%#= f.check_box :locked %> <%#= label_tag 'memo_locked', l(:label_board_locked) %>
|
||||||
<% end %>
|
<%# end %>
|
||||||
<% end % -->
|
<%# end %> -->
|
||||||
<p><%= f.text_field :content, :required => true, :size => 60, :style => "width:150px;" %></p>
|
<p><%= f.text_field :content, :required => true, :size => 60, :style => "width:150px;" %></p>
|
||||||
<p><%= hidden_field_tag 'subject', ||=@memo.subject %>
|
<p><%= hidden_field_tag 'subject', ||=@memo.subject %>
|
Loading…
Reference in New Issue