<%= formFor(user, {action: profileUpdatePath(), method: "POST"}) { %> <%= f.InputTag("preferences.ID", {name:"preferences.ID", value: user.Preferences.ID, type:"hidden" }) %> <%= f.InputTag("preferences.OwnerID", {name:"preferences.OwnerID", value: user.ID, type:"hidden" }) %>

Nicknames are acceptable

<%= f.InputTag("Name", {name:"Name", value: user.Name, placeholder:"Your Name", autocomplete:"off", hide_label: true }) %>
<%= f.InputTag("Email", {name:"Email", value: user.Email, placeholder:"Your email address", autocomplete:"off", hide_label: true}) %>
<% let hour_of_day_options = [ { "1 AM": 1 }, { "2 AM": 2 }, { "3 AM": 3 }, { "4 AM": 4 }, { "5 AM": 5 }, { "6 AM": 6 }, { "7 AM": 7 }, { "8 AM": 8 }, { "9 AM": 9 }, { "10 AM": 10 }, { "11 AM": 11 }, { "Noon": 12 }, { "1 PM": 13 }, { "2 PM": 14 }, { "3 PM": 15 }, { "4 PM": 16 }, { "5 PM": 17 }, { "6 PM": 18 }, { "7 PM": 19 }, { "8 PM": 20 }, { "9 PM": 21 }, { "10 PM": 22 }, { "11 PM": 23 }, { "Midnight": 23 } ] %> <%= f.SelectTag("preferences.email_hour_of_day", {options: hour_of_day_options, value: user.Preferences.EmailHourOfDay, hide_label:"true"}) %>
<% let time_zone_utf_offset_options = [ {"(GMT -12:00) Eniwetok, Kwajalein": "-12"}, {"(GMT -11:00) Midway Island, Samoa": "-11"}, {"(GMT -10:00) Hawaii": "-10"}, {"(GMT -9:00) Alaska": "-9"}, {"(GMT -8:00) Pacific Time (US & Canada)": "-8"}, {"(GMT -7:00) Mountain Time (US & Canada)": "-7"}, {"(GMT -6:00) Central Time (US & Canada), Mexico City": "-6"}, {"(GMT -5:00) Eastern Time (US & Canada), Bogota, Lima": "-5"}, {"(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz": "-4"}, {"(GMT -3:00) Brazil, Buenos Aires, Georgetown": "-3"}, {"(GMT -2:00) Mid-Atlantic": "-2"}, {"(GMT -1:00) Azores, Cape Verde Islands": "-1"}, {"(GMT) Western Europe Time, London, Lisbon, Casablanca": 0}, {"(GMT +1:00) Brussels, Copenhagen, Madrid, Paris": 1}, {"(GMT +2:00) Kaliningrad, South Africa": 2}, {"(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg": 3}, {"(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi": 4}, {"(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent": 5}, {"(GMT +6:00) Almaty, Dhaka, Colombo": 6}, {"(GMT +7:00) Bangkok, Hanoi, Jakarta": 7}, {"(GMT +8:00) Beijing, Perth, Singapore, Hong Kong": 8}, {"(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk": 9}, {"(GMT +10:00) Eastern Australia, Guam, Vladivostok": 10}, {"(GMT +11:00) Magadan, Solomon Islands, New Caledonia": 11}, {"(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka": 12}, {"(GMT +13:00) Apia, Nukualofa": 13}, {"(GMT +14:00) Line Islands, Tokelau": 14} ] %> <%= f.SelectTag("preferences.time_zone_utc_offset", {options: time_zone_utf_offset_options, value: user.Preferences.TimeZoneUtcOffset, hide_label:"true"}) %>
<% } %>
<%= formFor(user, {action: profileChangepasswordPath(), method: "POST"}) { %>
<%= f.InputTag("Password", {name:"Password", placeholder: "Your desired password", autocomplete:"off", hide_label: true, type:"password"}) %>
<%= f.InputTag("PasswordConfirmation", {name:"PasswordConfirmation", placeholder: "Your desired password", autocomplete:"off", hide_label: true, type:"password"}) %>
<% } %>