Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Small view improvements in creating new user
- Loading branch information
Showing
3 changed files
with
18 additions
and
12 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
<h1>Stwórz nowe konto</h1> | ||
<% @user.password = @user.password_confirmation = nil %> | ||
<%= error_messages_for :user %> | ||
<% form_for :user, :html => {:class => 'style2'}, :url => users_path do |f| -%> | ||
<p> | ||
<%= f.label :login, 'Login' %> | ||
<%= f.text_field :login %></p> | ||
<%= error_messages_for :user, :message => nil %> | ||
<p> | ||
<%= f.label :login, 'Login' %> | ||
<%= f.text_field :login %></p> | ||
|
||
<p><%= f.label :email, 'Email' %> | ||
<%= f.text_field :email %></p> | ||
<p><%= f.label :email, 'Email' %> | ||
<%= f.text_field :email %></p> | ||
|
||
<p><%= f.label :password, 'Hasło' %> | ||
<%= f.password_field :password %></p> | ||
<p><%= f.label :password, 'Hasło' %> | ||
<%= f.password_field :password %></p> | ||
|
||
<p><%= f.label :password_confirmation, 'Potwierdź hasło' %> | ||
<%= f.password_field :password_confirmation %></p> | ||
<p><%= f.label :password_confirmation, 'Potwierdź hasło' %> | ||
<%= f.password_field :password_confirmation %></p> | ||
|
||
<p><%= submit_tag 'Zarejestruj mnie' %></p> | ||
<p><%= submit_tag 'Zarejestruj mnie' %></p> | ||
<% end -%> |
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