choose_calendar.rhtml

来自「A Hotel Management System based on Ruby 」· RHTML 代码 · 共 40 行

RHTML
40
字号

<%= form_remote_tag(:update => "update_div", 
                    :url => {:action => :show_calendar, :controller => 'contract'},
                    :before => %(Element.show('spinner1')),
                    :success => %(Element.hide('spinner1'))) %>

<p><b>Month:</b>

  <select name="month">
   <% (1 .. 12).each do |month| %>
       <option value="<%= month %>">
	   
         <%= month %>
       </option>
   <% end %>
  </select>
  
  <b>Year:</b>

  <select name="year">
   <% (::Time.now.year .. ::Time.now.year+5).each do |year| %>
       <option value="<%= year %>">
	   
         <%= year %>
       </option>
   <% end %>
  </select>
  
  <b>Property:</b>
  <select name="property_id">
   <% @properties.each do |property| %>
       <option value="<%= property.id %>">
         <%= property.name %>
       </option>
   <% end %>
  </select>
  
  <%= submit_tag 'Go' %>
<%= end_form_tag %>
<%= image_tag 'spinner.gif', :id => 'spinner1', :style => 'display:none' %>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?