File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,7 +31,8 @@ <h1>Demo Form - Patient's page</h1>
3131 </ div >
3232 < div class ="card " id ="card-content " >
3333 < form id ="form-history ">
34- < h2 class ="card-title "> Historical Data</ h2 >
34+ < h2 class ="card-title "> Questionnary: < span id ="card-questionnary-details-title "> </ span > </ h2 >
35+ < h3 class ="card-title "> Set: < span id ="card-questionnary-details-question-set "> Historical Data</ span > </ h3 >
3536 < div class ="form-group ">
3637 < div class ="input-group " id ="inputs-history ">
3738 <!-- HERE WILL GO THE INPUTS-->
Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ async function showFormList(formsInfo) {
4444 console . log ( '## showFormList' , formsInfo ) ;
4545
4646 // -- table
47- const table = document . getElementById ( 'questionnary-table' ) ;
4847 const tbody = document . getElementById ( 'questionnary-table' ) . getElementsByTagName ( 'tbody' ) [ 0 ] ; ;
4948
5049 // clear previous content
Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ window.onload = async (event) => {
1010 const { patientApiEndpoint, questionaryId } = getPatientApiEndpointAndFormId ( ) ;
1111 console . log ( '## patientApiEndpoint:' , patientApiEndpoint ) ;
1212 await patientLib . connect ( patientApiEndpoint , questionaryId ) ;
13+ // - form title
14+ const formTitle = document . getElementById ( 'card-questionnary-details-title' ) ;
15+ formTitle . innerHTML = patientLib . getFormTitle ( questionaryId ) ;
1316 // -- navigation
1417 document . getElementById ( 'nav-history' ) . onclick = ( ) => {
1518 document . location . href = 'patient-history.html' + patientLib . getNavigationQueryParams ( ) ;
Original file line number Diff line number Diff line change @@ -31,7 +31,8 @@ <h1>Demo Form - Patient's page</h1>
3131 </ div >
3232 < div class ="card " id ="card-content ">
3333 < form id ="form-profile ">
34- < h2 class ="card-title "> Profile</ h2 >
34+ < h2 class ="card-title "> Questionnary: < span id ="card-questionnary-details-title "> </ span > </ h2 >
35+ < h3 class ="card-title "> Set: < span id ="card-questionnary-details-question-set "> Profile</ span > </ h3 >
3536 < div class ="form-group ">
3637 < div class ="input-group " id ="inputs-profile ">
3738 <!-- HERE WILL GO THE INPUTS-->
You can’t perform that action at this time.
0 commit comments