Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Messaging and Profile Editting #4

Open
jguinta opened this issue Apr 16, 2014 · 5 comments
Open

Messaging and Profile Editting #4

jguinta opened this issue Apr 16, 2014 · 5 comments
Assignees

Comments

@jguinta
Copy link
Collaborator

jguinta commented Apr 16, 2014

I'm going to work on the communications interface and editing an existing profile (for both docs and patients)

@jguinta jguinta self-assigned this Apr 16, 2014
@jguinta
Copy link
Collaborator Author

jguinta commented Apr 18, 2014

So for editting profiles, i'm planning to have essentially the same modal pop as before but with the form already filled out with the existing profile information. Does anyone know how to pre-populate the fields? I've tried a number of different ways but not having any luck. An example would be awesome.

@abhijit-murthy
Copy link
Collaborator

Maybe adding a value attribute to each input control? You can pass on the data from php as json, then in jQuery you can use $.attr() to set the values.

@charlieding
Copy link
Owner

You would use jquery
$("#elementid").val("fillertexthere");

Sent from my iPhone

On Apr 17, 2014, at 11:09 PM, abhijit-murthy [email protected] wrote:

Maybe adding a value attribute to each input control? You can pass on the data from php as json, then in jQuery you can use $.attr() to set the values.


Reply to this email directly or view it on GitHub.

@jguinta
Copy link
Collaborator Author

jguinta commented Apr 20, 2014

Committed profile editing files. I also changed cases of _SESSION['userId'] to use 'username' (login used one case and register used the other - this will keep it consistent).

We need to make availability a multivariable item. No idea how to do this, but needs to be done for both the initial Doctor Profile creation and the update. I'll try to do it tomorrow if no one else does.

Will finish the majority of the communications interface tomorrow.

@jguinta
Copy link
Collaborator Author

jguinta commented Apr 21, 2014

Added inbox functionality to both patients and doctors.

Tomorrow I will enable message sending as well as the '# of unread messages' notification.

Still need to make availability more than a singular item.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants