From 15b843b233b7e85008b2a7aa6abbd90182052bd3 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Sat, 15 Aug 2015 08:09:46 +0300 Subject: [PATCH] Beautify language selection --- lib/initfest/views/public/personal_profiles/_form.slim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/initfest/views/public/personal_profiles/_form.slim b/lib/initfest/views/public/personal_profiles/_form.slim index e9532b2..ac76542 100644 --- a/lib/initfest/views/public/personal_profiles/_form.slim +++ b/lib/initfest/views/public/personal_profiles/_form.slim @@ -23,7 +23,7 @@ h3.entry-title = t :login_data = simple_form_for(current_user, wrapper: :default, as: :user, url: registration_path(:user), html: { method: :put, multipart: true }) do |f| .form-inputs = f.input :email, required: true - = f.input :language, collection: I18n.available_locales, required: true + = f.input :language, as: :radio_buttons, collection: locale_collection, include_blank: false, wrapper: :default - if current_user.pending_reconfirmation? p