Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -semantic_form_for @user, :url => admin_save_user_path do |form|
- -form.inputs :name => "Użytkownik" do
- =form.input :pesel, :label => "Pesel"
- =form.input :login, :label => "Login"
- =form.input :email, :label => "Email"
- =form.input :password, :label => "Hasło", :as => :string, :input_html => {:value => @random_password}
- =form.input :password_confirmation, :label => "Powtórka hasła", :as => :string, :input_html => {:value => @random_password}
- -form.inputs :name => "Profil", :for => @user.profile do |profile_form|
- = profile_form.input :full_name, :as => :string
- -form.buttons do
- =form.commit_button "Dodaj użytkownika"
Add Comment
Please, Sign In to add comment