Advertisement
Guest User

Untitled

a guest
Aug 9th, 2015
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.34 KB | None | 0 0
  1. render: function () {
  2. $("#pageloading").show();
  3. this.$el.html(
  4. **'<div class="row" id="test_page">' +
  5. '<div class="col-xs-12">' +
  6. '<div class="panel">' +
  7. '<div class="panel-heading">' +
  8. '<div class="row">' +
  9. '<div class="col-xs-4">' +
  10. 'SECTION <span id="section"> A </span>' +
  11. '</div>' +
  12. '<div class="col-xs-4">' +
  13. 'QUESTIONS : <span id="quesNo"> </span>' +
  14. '</div>' +
  15. '<div class="col-xs-4">' +
  16. 'Time Remaining : <span id="timer"></span>' +
  17. '</div>' +
  18. '</div>' +
  19. '</div>' +
  20. '<div class="panel-body" style="max-height: 425px; overflow-y: scroll; padding: 25px;">' +
  21. '<div class="row">' +
  22. '<div class="col-xs-12">' +
  23. '<div class="panel-group" id="test_questions"></div>' +
  24. '</div>' +
  25. '</div>' +
  26. '<!-- /.row (nested) -->' +
  27. '</div>' +
  28. '<!-- /.panel-body -->' +
  29. '<div class="panel-footer">' +
  30. '<div class="row">' +
  31. '<div class="col-xs-3 pull-right">' +
  32. '<button id="back_section" type="reset" class="btn btn-default">PREVIOUS</button>' +
  33. '<button id="next_section" type="submit" class="btn btn-default pull-right" style="margin-right: 30%;">NEXT</button>' +
  34. '<button id="submit_test" type="submit" class="btn btn-default pull-right" style="margin-right: 30%;">Submit</button>' +
  35. '</div>' +
  36. '</div>' +
  37. '</div>' +
  38. '</div>' +
  39. '<!-- /.panel -->' +
  40. '</div>' +
  41. '<!-- /.col-xs-12 -->' +
  42. '</div>' +
  43. '<div class="modal fade" id="instructions_page" tabindex="-1" role="dialog" aria-labelledby="instructions_page" aria-hidden="true" data-backdrop="static" style="margin-top:2%">' +
  44. '<div class="modal-dialog" style="width: 80%;">' +
  45. '<div class="modal-content">' +
  46. '<div class="modal-header">' +
  47. '<h4>Instructions <div class="btn goToLastPage"><i class="fa fa-reply-all"></i> Back</div></h4>'+
  48. '</div>' +
  49. '<div class="modal-body">' +
  50. '<div class="panel-body" style="text-align: justify; padding:0 100px">' +
  51. '<div class="row">' +
  52. '<div class="col-xs-12">' +
  53. '<i class="fa fa-hand-o-right col-xs-1"></i><h5 class="col-xs-11"> Once the self-assessment is completed and respondents have been assigned in all the various categories, an email will be triggered to the reporting manager informing him/her of the same.</h5>'+
  54. '<i class="fa fa-hand-o-right col-xs-1"></i><h5 class="col-xs-11"> In case the reporting manager would like to add or delete any respondents, he/she can send a mail directly to you (participant).</h5>'+
  55. '<i class="fa fa-hand-o-right col-xs-1"></i><h5 class="col-xs-11"> Auto mailers shall be sent to all the respondents selected by the participants with the link to input their responses.</h5>'+
  56. '<i class="fa fa-hand-o-right col-xs-1"></i><h5 class="col-xs-11"> We request all participants to please pro-actively follow up with the respondents whom they have selected for completion of responses.</h5>'+
  57. '<i class="fa fa-hand-o-right col-xs-1"></i><h5 class="col-xs-11"> The report, based on the responses received will consist of overall summary report based on the average scores in all the different categories.</h5>'+
  58. '<i class="fa fa-hand-o-right col-xs-1"></i><h5 class="col-xs-11"> The feedback is anonymous (except from the Direct Manager) and the recipient will receive a 'collated' report showing all the feedback segregated as Direct Manager, Direct Reportee(s), Peers and Stakeholders. The qualitative comments will be provided as is to the recipient. In case the total number of responses across any category is <= 2, the responses will be clubbed together to retain anonymity. Please feel free to reach '+' <a href="mailto:amruta.p@exidelife.in"> amruta.p@exidelife.in </a> '+' in case of any clarifications.</h5>'+
  59. '</div>' +
  60. '</div>' +
  61. '</div>' +
  62. '</div>' +
  63. '<div class="modal-footer">' +
  64. '<div class="startTopicTest btn btn-default"> Test Start </div>' +
  65. '</div>' +
  66. '</div>' +
  67. '</div>' +
  68. '</div>'**
  69. );
  70.  
  71. Backbone.ajax({
  72. dataType: "json",
  73. url: "topictestquestion",
  74. data: "",
  75. type: "POST",
  76. beforeSend: function(xhr) {
  77. xhr.setRequestHeader(header, token);
  78. },
  79.  
  80. mockTestBegin: function() {
  81. $("#pageloading").show();
  82. this.$el.html(
  83. '<div class="row" id="test_page">' +
  84. '<div class="col-xs-12">' +
  85. '<div class="panel">' +
  86. '<div class="panel-heading">' +
  87. '<div class="row">' +
  88. '<div class="col-xs-4">' +
  89. 'SECTION <span id="section"> A </span>' +
  90. '</div>' +
  91. '<div class="col-xs-4">' +
  92. 'QUESTIONS : <span id="quesNo"></span>' +
  93. '</div>' +
  94. '<div class="col-xs-4">' +
  95. 'Time Remaining : <span id="timer"></span>' +
  96. '</div>' +
  97. '</div>' +
  98. '</div>' +
  99. '<div class="panel-body" style="max-height: 425px; overflow-y: scroll; padding: 25px;">' +
  100. '<div class="row">' +
  101. '<div class="col-xs-12">' +
  102. '<div class="panel-group" id="test_questions"></div>' +
  103. '</div>' +
  104. '</div>' +
  105. '<!-- /.row (nested) -->' +
  106. '</div>' +
  107. '<!-- /.panel-body -->' +
  108. '<div class="panel-footer">' +
  109. '<div class="row">' +
  110. '<button id="mok_submit" type="submit" class="btn btn-danger pull-right" style="margin-right: 3%;">EXIT</button>' +
  111. '<button id="preview_test" type="submit" class="btn btn-default pull-right" style="margin-right: 30%;">PREVIEW</button>' +
  112. '<div class="col-xs-3 pull-right">' +
  113. '<button id="back_section" type="reset" class="btn btn-default">PREVIOUS</button>' +
  114. '<button id="next_section" type="submit" class="btn btn-default pull-right" style="margin-right: 30%;">NEXT</button>' +
  115. '</div>' +
  116. '</div>' +
  117. '</div>' +
  118. '</div>' +
  119. '<!-- /.panel -->' +
  120. '</div>' +
  121. '<!-- /.col-xs-12 -->' +
  122. '</div>' +
  123. '<div class="modal fade" id="preview-mock" tabindex="-1" role="dialog" aria-labelledby="preview-mock" aria-hidden="true" data-backdrop="static" style="margin-top:2%">' +
  124. '<div class="modal-dialog" style="width: 80%;">' +
  125. '<div class="modal-content">' +
  126. '<div class="modal-header">' +
  127. '<h1 class="page-header"> Questions Numbers </h1>'+
  128. '</div>' +
  129. '<div class="modal-body">' +
  130. '<div class="panel-body" style="text-align: justify; padding:0 100px">' +
  131. '<div class="row">' +
  132. '<div class="col-xs-12" id="preview-quession">' +
  133. '</div>' +
  134. '</div>' +
  135. '</div>' +
  136. '</div>' +
  137. '<div class="modal-footer">' +
  138. '<button id="mok_submit" type="submit" class="btn btn-default">Submit</button>' +
  139. '</div>' +
  140. '</div>' +
  141. '</div>' +
  142. '</div>' +
  143. '<div class="modal fade" id="instructions_page" tabindex="-1" role="dialog" aria-labelledby="instructions_page" aria-hidden="true" data-backdrop="static" style="margin-top:2%">' +
  144. '<div class="modal-dialog" style="width: 80%;">' +
  145. '<div class="modal-content">' +
  146. '<div class="modal-header">' +
  147. '<h4>Instructions <div class="btn goToLastPage"><i class="fa fa-reply-all"></i> Back</div></h4>'+
  148. '</div>' +
  149. '<div class="modal-body">' +
  150. '<div class="panel-body" style="text-align: justify; padding:0 100px">' +
  151. '<div class="row">' +
  152. '<div class="col-xs-12">' +
  153. '<i class="fa fa-hand-o-right col-xs-1"></i><h5 class="col-xs-11"> Once the self-assessment is completed and respondents have been assigned in all the various categories, an email will be triggered to the reporting manager informing him/her of the same.</h5>'+
  154. '<i class="fa fa-hand-o-right col-xs-1"></i><h5 class="col-xs-11"> In case the reporting manager would like to add or delete any respondents, he/she can send a mail directly to you (participant).</h5>'+
  155. '<i class="fa fa-hand-o-right col-xs-1"></i><h5 class="col-xs-11"> Auto mailers shall be sent to all the respondents selected by the participants with the link to input their responses.</h5>'+
  156. '<i class="fa fa-hand-o-right col-xs-1"></i><h5 class="col-xs-11"> We request all participants to please pro-actively follow up with the respondents whom they have selected for completion of responses.</h5>'+
  157. '<i class="fa fa-hand-o-right col-xs-1"></i><h5 class="col-xs-11"> The report, based on the responses received will consist of overall summary report based on the average scores in all the different categories.</h5>'+
  158. '<i class="fa fa-hand-o-right col-xs-1"></i><h5 class="col-xs-11"> The feedback is anonymous (except from the Direct Manager) and the recipient will receive a 'collated' report showing all the feedback segregated as Direct Manager, Direct Reportee(s), Peers and Stakeholders. The qualitative comments will be provided as is to the recipient. In case the total number of responses across any category is <= 2, the responses will be clubbed together to retain anonymity. Please feel free to reach '+' <a href="mailto:amruta.p@exidelife.in"> amruta.p@exidelife.in </a> '+' in case of any clarifications.</h5>'+
  159. '</div>' +
  160. '</div>' +
  161. '</div>' +
  162. '</div>' +
  163. '<div class="modal-footer">' +
  164. '<div class="startMockTest btn btn-default"> Test Start </div>' +
  165. '</div>' +
  166. '</div>' +
  167. '</div>' +
  168. '</div>'
  169. );
  170.  
  171. Backbone.ajax({
  172. dataType: "json",
  173. url: "mok-testquestion",
  174. data: "",
  175. type: "POST",
  176. beforeSend: function(xhr) {
  177. xhr.setRequestHeader(header, token);
  178. },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement