welcome.html 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <div id="welcome">
  2. <div class="center-block text-center welcome">
  3. <div ng-if="(ctrl.state === 'connecting' || ctrl.state === 'waiting') && ctrl.mode === 'scan'" class="scan">
  4. <div class="ios-only-warning" ng-if="ctrl.browser.safari">
  5. <img src="img/safari.svg" alt="Safari">
  6. <p><strong translate>common.NOTE</strong> <span translate>welcome.SAFARI</span></p>
  7. </div>
  8. <p class="instructions" translate>welcome.PLEASE_SCAN</p>
  9. <qrcode version="{{ ctrl.qrCode.version }}"
  10. id="connecting-code"
  11. error-correction-level="{{ ctrl.qrCode.errorCorrectionLevel }}"
  12. size="{{ ctrl.qrCode.size }}" data="{{ ctrl.qrCode.data }}"></qrcode>
  13. <div class="password-entry">
  14. <label>
  15. <p translate>welcome.CHOOSE_PASSWORD</p>
  16. <form autocomplete="off">
  17. <md-input-container md-no-float class="md-block">
  18. <input type="password"
  19. ng-model="ctrl.password"
  20. aria-label="Password"
  21. translate-attr="{'placeholder': 'welcome.PASSWORD', 'aria-label': 'welcome.PASSWORD'}"
  22. autocomplete="new-password">
  23. </md-input-container>
  24. </form>
  25. </label>
  26. </div>
  27. </div>
  28. <div ng-if="(ctrl.state === 'new' || ctrl.state === 'connecting') && ctrl.mode === 'unlock'" class="unlock">
  29. <h2 class="instructions" translate>welcome.PLEASE_UNLOCK</h2>
  30. <div class="password-entry">
  31. <label>
  32. <p translate>welcome.ENTER_PASSWORD</p>
  33. <form ng-submit="ctrl.unlockConfirm()">
  34. <md-input-container md-no-float class="md-block">
  35. <input type="password"
  36. ng-model="ctrl.password"
  37. ng-disabled="ctrl.formLocked"
  38. autofocus
  39. aria-label="Password"
  40. translate-attr="{'placeholder': 'welcome.PASSWORD', 'aria-label': 'welcome.PASSWORD'}"
  41. autocomplete="current-password">
  42. </md-input-container>
  43. <md-button type="submit" class="md-raised md-primary"><span translate>welcome.BTN_RECONNECT</span></md-button>
  44. </form>
  45. <p>
  46. <span translate>welcome.ALTERNATIVELY</span>
  47. <a href="#" ng-click="ctrl.deleteSession()" translate>welcome.FORGET_SESSION</a>.
  48. </p>
  49. </label>
  50. </div>
  51. </div>
  52. <div ng-if="ctrl.showLoadingIndicator">
  53. <h2 class="instructions" translate>welcome.CONNECTING</h2>
  54. <div class="loading">
  55. <md-progress-circular md-mode="determinate" value="{{ ctrl.progress }}" md-diameter="250">
  56. </md-progress-circular>
  57. <div class="info">
  58. <p class="percentage">{{ ctrl.progress }}%</p>
  59. <p ng-if="ctrl.state === 'push'" translate>welcome.WAITING_FOR_PUSH</p>
  60. <p ng-if="ctrl.state === 'peer_handshake'" translate>welcome.CONNECTING_TO_APP</p>
  61. <p ng-if="ctrl.state === 'loading' || ctrl.state === 'done'" translate>welcome.LOADING_INITIAL_DATA</p>
  62. <div class="troubleshoot" ng-if="ctrl.slowConnect">
  63. <h3 translate>troubleshooting.SLOW_CONNECT</h3>
  64. <ul>
  65. <li>
  66. <i class="material-icons md-dark md-14">help</i>
  67. <span translate>troubleshooting.PHONE_ONLINE</span>
  68. </li>
  69. <li ng-if="ctrl.state === 'push'">
  70. <i class="material-icons md-dark md-14">help</i>
  71. <span translate>troubleshooting.APP_STARTED</span>
  72. </li>
  73. <li ng-if="ctrl.state === 'push'">
  74. <i class="material-icons md-dark md-14">help</i>
  75. <span translate>troubleshooting.WEBCLIENT_ENABLED</span>
  76. </li>
  77. <li ng-if="ctrl.state === 'push'">
  78. <i class="material-icons md-dark md-14">help</i>
  79. <span translate>troubleshooting.SESSION_DELETED</span>
  80. </li>
  81. <li ng-if="ctrl.state === 'peer_handshake'">
  82. <i class="material-icons md-dark md-14">help</i>
  83. <span translate>troubleshooting.PLUGIN</span>
  84. </li>
  85. <li ng-if="ctrl.state === 'peer_handshake'">
  86. <i class="material-icons md-dark md-14">help</i>
  87. <span translate>troubleshooting.ADBLOCKER</span>
  88. </li>
  89. </ul>
  90. <md-button class="md-raised md-primary reload-btn" ng-click="ctrl.deleteSession()" ng-if="ctrl.state === 'push'">
  91. <span translate>welcome.FORGET_SESSION_BTN</span>
  92. </md-button>
  93. <md-button class="md-raised md-primary reload-btn" ng-click="ctrl.reload()">
  94. <i class="material-icons">refresh</i> <span translate>welcome.RELOAD</span>
  95. </md-button>
  96. </div>
  97. </div>
  98. </div>
  99. </div>
  100. <div class="manual-start" ng-if="ctrl.state === 'manual_start'">
  101. <h2 class="instructions" translate>welcome.MANUAL_START</h2>
  102. <p translate>welcome.MANUAL_START_TEXT1</p>
  103. <i class="illustration material-icons md-dark md-96">phone_android</i>
  104. <p translate>welcome.MANUAL_START_TEXT2</p>
  105. <ol>
  106. <li translate>welcome.MANUAL_START_STEP1</li>
  107. <li translate>welcome.MANUAL_START_STEP2</li>
  108. <li translate>welcome.MANUAL_START_STEP3</li>
  109. </ol>
  110. </div>
  111. <div class="already-connected" ng-if="ctrl.state === 'already_connected'">
  112. <h2 class="instructions" translate>welcome.ALREADY_CONNECTED</h2>
  113. <i class="illustration material-icons md-dark md-96">phonelink_ring</i>
  114. <p translate>welcome.ALREADY_CONNECTED_DETAILS</p>
  115. <br>
  116. <md-button class="md-raised md-primary" ng-click="ctrl.reload()">
  117. <i class="material-icons">refresh</i> <span translate>welcome.RELOAD</span>
  118. </md-button>
  119. </div>
  120. <div ng-if="ctrl.state === 'closed'">
  121. <p class="state error">
  122. <strong><span translate>common.ERROR</span>:</strong> <span translate>connecting.CONNECTION_CLOSED</span><br>
  123. <span translate>welcome.PLEASE_RELOAD</span>
  124. </p>
  125. <br>
  126. <md-button class="md-raised md-primary" ng-click="ctrl.reload()">
  127. <i class="material-icons">refresh</i> <span translate>welcome.RELOAD</span>
  128. </md-button>
  129. </div>
  130. <div ng-if="ctrl.state === 'reconnect_failed'">
  131. <p class="state error">
  132. <strong><span translate>common.ERROR</span>:</strong> <span translate>connecting.RECONNECT_FAILED</span><br>
  133. <span translate>welcome.PLEASE_RELOAD</span>
  134. </p>
  135. <br>
  136. <md-button class="md-raised md-primary" ng-click="ctrl.reload()">
  137. <i class="material-icons">refresh</i> <span translate>welcome.RELOAD</span>
  138. </md-button>
  139. </div>
  140. </div>
  141. </div>