Просмотр исходного кода

Adding version label in formPortal

Andrej Studen 3 лет назад
Родитель
Сommit
25612b2a82
1 измененных файлов с 8 добавлено и 3 удалено
  1. 8 3
      views/formPortal.html

+ 8 - 3
views/formPortal.html

@@ -20,6 +20,10 @@ height:120px;
 }
 </style>
 
+<table cellspacing="2" cellpadding="5" border="0">
+<tr><td>Version: </td><td><strong id="version">0.0</strong></td></tr>
+</table>
+
 <div id="formDiv">
 </div>
 
@@ -33,12 +37,13 @@ height:120px;
 <script type "text/javascript">
 window.onload=init;
 function init(){
-	let config=new Object();
 	config.document=document;
 	config.div="formDiv";
 	config.debugArea="formStatus";
-	print(config,"Starting");
+	config.role="crfEditor";
+	clear();
+	print("Starting");
 	config.participantField="PatientId";
-	generateFormArray(config);
+	generateFormArray();
 }
 </script>