-
-
Notifications
You must be signed in to change notification settings - Fork 58
Show contractors #32
Comments
How do you insert users (employees) on this script? I can't seem to fix this. |
@RubenAmaroPT You can go to |
@Aldaviva Thank you for replying, however I didn't type correctly what was my problem, the problem is that when I entered the admin page, It would just show me a blank screen with a add button on the left. I guess I'm going to try creating the server on linux and see the results. If the error mantains I will reply back. Thank you. |
Ah ok. You should be able to click Add and several form fields appear on the right side of the screen, along with a Save button. Are you seeing an error where the form doesn't appear when you click Add? If so, can you let me know what browser version you are using and any log messages you see in the console log? |
Well I tried to open the server again (still in Windows) and go to admin page and it shows me this: This is what shows to me when I click add new person. EDIT: Using Chrome Version 58.0.3029.110 (64-bit) |
Thanks for the screenshot. Looks like a bug in this project. Will open a separate issue to track it. |
Thank you for having the time to fix this. Good luck on finding and fixing that issue! |
Oh, by the way, I have my server already open in linux, is there any way of inserting users already? Because it isn't generating any database in my mongodb. |
You can manually insert a person into the {
"fullname": "Ben Hutchison",
"desk": 71,
"office": "mv3",
"email": "ben",
"title": "Sr. Software Engineer",
"tags": [
"eng"
],
"linkedInId": "in/aldaviva",
"mobilePhone": "123-456-7890",
"workPhone": "098-765-4321"
} |
Maybe I'm dumb but I just did what you tell me and gives me no results when I refresh the database. Image: http://prntscr.com/fan46z |
It looks like the document did get inserted. Can you click the
You should see all the field values of the object you passed to the |
I'm experiencing the same issue. Per the advice in this thread, I manually entered an employee into the "people" collection in the "floorplan" database, but I am still unable to see the employee by going to the website containing the map of the user's location, or have the option to add an employee on the admin site.
Based on the code, should I have directories on my server for "people" and "endpoints"? Or should these be pointing to the mongodb database? Here's what I see when looking at the site with the OC map: https://prnt.sc/gobzdv Here's what I see when looking at the admin site then trying to select "add person": https://prnt.sc/goc66k I appreciate any guidance. |
See #34 for the |
@Aldaviva Thanks for the quick fix and all of the work you've done for this project. Everything looks good for me now. |
The text was updated successfully, but these errors were encountered: