dont allow blank name submissions in modeling hub small form

This commit is contained in:
Emi Matchu 2014-04-16 11:11:15 -05:00
parent b429c30d3b
commit dd0a3cd350

View file

@ -66,7 +66,8 @@
= form_tag remote_load_pet_path, method: 'POST' do = form_tag remote_load_pet_path, method: 'POST' do
= hidden_field_tag 'impress_user', current_user.try(:id) = hidden_field_tag 'impress_user', current_user.try(:id)
= hidden_field_tag 'redirect', "#{root_url}\#{q}" = hidden_field_tag 'redirect', "#{root_url}\#{q}"
= pet_name_tag :placeholder => t('.modeling_hub.load_pet.placeholder') = pet_name_tag placeholder: t('.modeling_hub.load_pet.placeholder'),
required: true
= submit_tag t('.modeling_hub.load_pet.submit') = submit_tag t('.modeling_hub.load_pet.submit')
- localized_cache 'outfits#new latest_contribution' do - localized_cache 'outfits#new latest_contribution' do