Created
April 11, 2017 12:38
-
-
Save Evanto/d586e756b87bb617ee704156db761b3f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
форма во вью: | |
<div class="col-md-12"> | |
<%= form_for @page do |f| %> | |
<%= f.label :hours %> | |
<%= f.select :hours, options_for_select([['5 am'], ['6 am'], ['7 am'], ['8 am'], | |
['9 am'], ['10 am'], ['11 am'], ['12 noon'], ['13 pm'], ['14 pm'], ['15 pm'], | |
['16 pm'], ['17 pm'], ['18 pm'], ['19 pm'], ['20 pm'], ['21 pm'], ['22 pm'], | |
['23 pm'], ['12 midnight'], ['1 am'], ['2 am'], ['3 am'], ['4 am']]) %> | |
<%= f.select :hours, (1..24).to_a %> | |
<%= f.label :minutes %> | |
<%= f.select :minutes, options_for_select([['00'], ['05'], ['10'], ['15'], ['20'], | |
['25'], ['30'], ['35'], ['40'], ['45'], ['50'], ['55']]) %> | |
<%= f.submit "Submit" %> | |
<% end %> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment