Hi, I’m trying to create a customized sign-up form for my application. There are a couple of different things I want to do:
The users can registered under a few pre-defined locations (places of work in the case of this application). These are set by the administrator. Upon user registration, I would like the user to be able to choose his place of work from a dropdown menu. The locationId will be saved in the users profile (should I be doing something different?). So basically I want to have a dropdown listing the locations (defined by the admin) that the user chooses and then the locationId is saved to the user.
There are various levels of permission the application. Most users will be regular users but there are also administrators and managers. When the user registers, I want to predefine that they are a regular user. Then I want to base what they see based on their permission level. How should I lookup the logged in user’s permission level in the application? How do I predefine the user to a certain permission level upon creation.
This leads me to my second question. How should I create the managers and administrators necessary? I don’t want this access granted once I create them.
Thank you for any help ahead of time. I really appreciate it.
That might be necessary if you plan on doing a lot of extra stuff when people sign-in/sign-up, however I would start looking into the packages I linked above
There is not really a whole lot I want to in the sign-up and sign-in. The only thing I want to do is add a dropdown menu of the locations so that the user can register. How do I achieve this with the accounts-ui package?
You probably have to call the methods manually, and then create a function that allows you to pick a location for your users when then sign up, also remember put this into your template.
Ok I got it to work. Here is the updated code. The only problem is how do I add the location field as a dropdown instead of a radio button? I tried to do some google searches, but I can’t find anything on the topic.
I tried that config from github and it was saving ok, so probably console debug your data function
And i also added “select” option, but I did not disabled that click catching behaviour of original package. So it close that loginButton template every time u click elsewhere than element which have overriden event.
So it is unusable for now, will have a look later.
package shock:accounts-ui-bootstrap-3
The only problem I have is that when I click on the dropdown menu, the drop down menu closes…I tried to mess around with it, but I couldn’t find where this action was occurring. It happened with radio buttons as well.