Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

feat: simple user creation form#543

Merged
mssola merged 1 commit intoSUSE:masterfrom
salzig:feat_create_user
Nov 11, 2015
Merged

feat: simple user creation form#543
mssola merged 1 commit intoSUSE:masterfrom
salzig:feat_create_user

Conversation

@salzig
Copy link
Copy Markdown
Contributor

@salzig salzig commented Nov 8, 2015

feat: simple user creation form

first steps for #283 and #179

@salzig salzig force-pushed the feat_create_user branch 3 times, most recently from 2c87cca to 5abd90d Compare November 8, 2015 20:36
Comment thread app/views/admin/users/new.html.slim Outdated
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use f.email_field instead.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch, will change that later.

@mssola
Copy link
Copy Markdown
Collaborator

mssola commented Nov 9, 2015

Awesome :) !

I have one issue though. When the admin makes a mistake, it gets displayed like this:

form

In order to get it properly, you have to change in the line 20 of the app/controllers/admin/users_controller.rb file:

render "new"

to:

redirect_to new_admin_user_path, alert: @user.errors.full_messages

Then it will look like this:

form2

Besides that, everything looks ok to me. I'll update the related issue with a checklist of the steps to get this feature implemented. Thanks for stepping in!

@mssola mssola mentioned this pull request Nov 9, 2015
@salzig
Copy link
Copy Markdown
Contributor Author

salzig commented Nov 9, 2015

bildschirmfoto 2015-11-09 um 23 46 19

@mssola
Copy link
Copy Markdown
Collaborator

mssola commented Nov 10, 2015

LGTM. Could you squash it into a single commit?

@salzig
Copy link
Copy Markdown
Contributor Author

salzig commented Nov 10, 2015

Sure, will do that later.

Signed-off-by: Ben Rexin <ben@rexin.at>
@salzig
Copy link
Copy Markdown
Contributor Author

salzig commented Nov 10, 2015

done.

mssola added a commit that referenced this pull request Nov 11, 2015
feat: simple user creation form
@mssola mssola merged commit 412aa02 into SUSE:master Nov 11, 2015
@mssola
Copy link
Copy Markdown
Collaborator

mssola commented Nov 11, 2015

@salzig thanks!

@salzig salzig deleted the feat_create_user branch November 11, 2015 10:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants