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

wth - RMID functionalities part 3 #13

Merged
merged 1 commit into from Jan 19, 2017
Merged

Conversation

wtholt
Copy link

@wtholt wtholt commented Jan 13, 2017

Make AJAX request to RMID API to get short_title, long_title and pi_name
from entered RMID record. Fields are disabled upon successful request.
Implemented Gon gem to have access to our environment variables in our
assets. [#136746539]

@@ -29,7 +29,7 @@
.form-group.row
= pr_form.label :identity_id, t(:protocols)[:authorized_users][:primary_pi], class: 'col-lg-2 control-label required'
.col-lg-10
= pr_form.text_field :identity_id, placeholder: t(:constants)[:prompts][:search_for_user], class: 'form-control'
= pr_form.text_field :identity_id, placeholder: t(:constants)[:prompts][:search_for_user], class: 'form-control rm-id-dependent'

Choose a reason for hiding this comment

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

Needs to be added to the same partial in the dashboard
app/views/dashboard/protocols/form/_project_roles_fields.html.haml

@@ -30,18 +30,18 @@
= form.label :research_master_id, class: 'col-lg-2 control-label rm-id' do
= link_to t(:protocols)[:studies][:information][:research_master_id], RESEARCH_MASTER_LINK
.col-lg-10
= form.text_field :research_master_id, class: 'form-control'
= form.text_field :research_master_id, class: 'form-control research-master-field'

Choose a reason for hiding this comment

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

Ditto
app/views/dashboard/protocols/form/study_form_sections/_study_information.html.haml

Make AJAX request to RMID API to get short_title, long_title and pi_name
from entered RMID record. Fields are disabled upon successful request.
Implemented Gon gem to have access to our environment variables in our
assets. [#136746539]
@jleonardw9 jleonardw9 merged commit ebb89bc into master Jan 19, 2017
@jleonardw9 jleonardw9 deleted the rmid-functionalities-part-3 branch January 19, 2017 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants