elthran / BookingSystem

A working booking/calendar system for clients to take orders and create a schedule
0 stars 0 forks source link

Models: Forms #7

Open elthran opened 6 years ago

elthran commented 6 years ago

I need help creating the forms on the website. Each form simply needs to know which data fields and any requirements. I will create all the forms in Python in the back-end and pass them to html so we dont need to worry about any verification. Example:

This one is likely simple (I already created this) Home Page -> Login Form

Home Page -> New Business Form

New Business PageRedirect -> New Business Form2

If you try to log in with a new account (such as the one created above), then you are redirected to this:

New Business Setup -> Setup Business Form

Let me know how to layout the form or I'll mainly be copying bookedin. I won't be doing any CSS or JS yet, just simply creating the form fields on the backend and validators for them, so they will throw the eventually javascript the appropriate errors and wont let any invalid data into the database. That way we can run the site and create businesses and users, it will just all look very shit. Anything you want added to ythe forms or any other forms you want, let me know.

melissachang9 commented 6 years ago

sorry when you're referring to forms, which forms exactly?

melissachang9 commented 6 years ago

Are you strictly talking about the form you would complete upon setting up an account?

Home Page -> New Business Form

name (Your real name? Does this matter? Is it required?) Yes, you'd most likely be using your real name business name (Any formatting requirements?) No formatting requirements (probably no special characters?) email (yours or business?) It doesn't matter. Whichever makes sense to the owner. terms ands ervices checkbox? Yes

melissachang9 commented 6 years ago

New Business PageRedirect -> New Business Form2

password (minimum length? any other requirements?) No other requirements, although I have no clue with regards to security so I'll defer to your judgement on this. confirm password? Yes

elthran commented 6 years ago

A form will be any time I request information from the user. They will need to type information out. Maybe their login form, their registration form. I need to know all the fields in each form and how to validate them (what is required).

melissachang9 commented 6 years ago

Ok, let’s try to break it down into sections then so we don’t miss anything Melissa Chang

On Jun 6, 2018, at 11:27 PM, Elthran notifications@github.com wrote:

A form will be any time I request information from the user. They will need to type information out. Maybe their login form, their registration form. I need to know all the fields in each form and how to validate them (what is required).

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/elthran/BookingSystem/issues/7#issuecomment-395307594, or mute the thread https://github.com/notifications/unsubscribe-auth/Alf7CIoA1_Kc7KIK5bhwsaYpwrxkxjnGks5t6MfMgaJpZM4UaHYB.

melissachang9 commented 6 years ago

New Business Setup -> Setup Business Form

Type of business (does this have a drop-down select? can you type in fields that arent in the dropdown?) Yes, you can type in fields that aren't in the drop down.

List of services (name/length/price), which are optional? is length a dropdown menu of minutes? etc. Who performs service (is this simply a name/email field? do you want this to link to users in the database?

Services should include: Name, Description, Price, Duration (dropdown but also able to manually input), Lead time (how much notice is needed to book an appointment), Break Time, Payment or Deposit Required, Auto Refund option if client cancels, Private or Public (certain services can only be seen internally)

Services will be linked to Employees (Users). I'm not sure what the best way to do this is.

should the client be able to click the name and see more info about the employee such as picture?) Additional info about each employee that was added (anything you want here let me know or i will follow the bookedin

When booking, I'd like the client to see the service and the employees, including their name and picture, who are available to provide that service. They are then able to click on that person to book them for the service. There could also be a link that says "More Info" to take you to that person's bio. Please refer to JaneApp to see how they do it: https://hartwelltherapy.janeapp.com

Business pictures (let me know what you want. can they have multiple pictures? one picture and one logo? etc. do these need to be verified by us before they go live on the site? image size? default width/height? the more complicated you want this the harder it will be since im new to this part. but let me know what you want and ill get it to work).

I think one business picture is sufficient and would assume it would be the logo. These do not need to be verified. Logo should probably have default width/heigh.

I would like to create a calendar that is integrated into the website though instead of the way BookedIN does it by creating it's own link that takes you away from the user's site. Should have the option of both. Again, refer to JaneApp to see an example: https://hartwelltherapy.janeapp.com

elthran commented 6 years ago

Ok great. And for forms, I will clarify (a) this is purely back-end. I want to set up form validation so every field in each form is validated on the back-end and no corrupt/missing/invalid data is ever entered into the database. this will just set up every possible field in each form and what data will be accepted, and (b) this has nothing to do with how the form will look, if you want to use javascript or anything, its just for me to create a working back-end model.

I'm currently working on how to integrate a built-in calendar system like JaneApp and wil create a separate issue to discuss that.