2014-07-23 17:10:02 -03:00
< div class = "join" ng-controller = "JoinController" >
< div data-alert class = "loading-screen" ng-show = "loading && !failure" >
< i class = "size-60 fi-bitcoin-circle icon-rotate spinner" > < / i >
2014-09-05 16:58:28 -03:00
< span translate > Authenticating and looking for peers...< / span >
2014-07-23 17:10:02 -03:00
< / div >
< div class = "row" ng-show = "!loading" >
< div class = "large-4 columns logo-setup" >
2014-08-20 15:32:09 -03:00
< img src = "img/logo-negative-beta.svg" alt = "Copay" width = "146" height = "59" >
2014-08-05 11:52:51 -03:00
< div ng-include = "'views/includes/version.html'" > < / div >
2014-07-23 17:10:02 -03:00
< / div >
< div class = "large-8 columns line-dashed-setup-v" >
< div class = "box-setup" >
2014-09-05 16:58:28 -03:00
< h1 translate class = "text-primary line-sidebar-b" > Join a Wallet in Creation< / h1 >
2014-07-23 17:10:02 -03:00
< form name = "joinForm" ng-submit = "join(joinForm)" novalidate >
2014-07-31 21:58:35 -03:00
2014-09-05 16:58:28 -03:00
< label for = "connectionId" > < span translate > Wallet Secret< / span >
< small translate class = "has-error" ng-show = "joinForm.connectionId.$invalid
2014-07-31 21:58:35 -03:00
& & !joinForm.connectionId.$pristine">Wallet Secret is not valid!< / small >
2014-09-05 16:58:28 -03:00
< small translate data-options = "disable_for_touch:true"
2014-07-31 21:58:35 -03:00
ng-show="joinForm.connectionId.$pristine" class="has-tip
text-gray" tooltip="Paste wallet secret here" >Required< / small >
< / label >
2014-08-05 15:38:11 -03:00
< div class = "row collapse" >
2014-08-08 10:36:25 -03:00
< div class = "large-10 medium-10 small-10 columns" >
2014-09-05 16:58:28 -03:00
< input id = "connectionId" type = "text" class = "small-9 columns"
placeholder="{{'Paste wallet secret here'|translate}}" name="connectionId" ng-model="connectionId" wallet-secret required>
2014-08-05 15:38:11 -03:00
< / div >
2014-09-10 10:37:09 -03:00
< div class = "small-2 columns" ng-hide = "showScanner || disableScanner" >
2014-08-05 15:38:11 -03:00
< a class = "postfix button primary" ng-click = "openScanner()" > < i class = "fi-camera" > < / i > < / a >
< / div >
< div class = "small-2 columns" ng-show = "showScanner" >
< a class = "postfix button warning" ng-click = "cancelScanner()" > < i class = "fi-x" > < / i > < / a >
< / div >
2014-07-30 02:55:59 -03:00
< / div >
< div id = "scanner" class = "row" ng-if = "showScanner" >
< div class = "text-centered" >
< canvas id = "qr-canvas" width = "200" height = "150" > < / canvas >
< div ng-show = "isMobile" >
< div id = "file-input-wrapper" class = "btn btn-primary" >
< span class = "pull-left text-centered" >
< i class = "glyphicon glyphicon-refresh icon-rotate" > < / i >
2014-09-05 16:58:28 -03:00
< span translate > Get QR code< / span >
2014-07-30 02:55:59 -03:00
< / span >
< input id = "qrcode-camera" type = "file" capture = "camera" accept = "image/*" >
< / div >
< / div >
< div ng-hide = "isMobile" >
< video id = "qrcode-scanner-video" width = "300" height = "225" ng-hide = "isMobile" > < / video >
< / div >
< / div >
< / div >
2014-09-05 16:58:28 -03:00
< label translate for = "joinPassword" > User information< / label >
< input id = "joinPassword" type = "text" class = "form-control"
placeholder="{{'Your name (optional)'|translate}}" name="nickname" ng-model="nickname">
2014-07-23 17:10:02 -03:00
< input type = "password" class = "form-control"
2014-09-05 16:58:28 -03:00
placeholder="{{'Choose your password'|translate}}" name="joinPassword"
2014-07-23 17:10:02 -03:00
ng-model="$parent.joinPassword"
check-strength="passwordStrength"
tooltip-html-unsafe="Password strength:
< i > {{passwordStrength}}< / i > < br / > < span class = 'size-12' > Tip: Use lower and uppercase,
2014-07-31 17:54:33 -03:00
numbers and symbols< / span > " tooltip-trigger="focus"
2014-08-01 15:16:07 -03:00
tooltip-placement="top" required>
2014-07-23 17:10:02 -03:00
2014-09-12 10:24:27 -03:00
< small translate class = "is-valid" ng-show = "joinForm.joinPasswordConfirm.$dirty && joinForm.$invalid" > Please enter the same password you entered above< / small >
2014-07-23 17:10:02 -03:00
< input type = "password"
2014-09-05 16:58:28 -03:00
placeholder="{{'Repeat password'|translate}}"
2014-07-23 17:10:02 -03:00
name="joinPasswordConfirm"
ng-model="joinPasswordConfirm"
match="joinPassword" required>
2014-09-11 13:01:22 -03:00
< a class = "expand small left" ng-click = "hideAdv=!hideAdv" >
2014-09-05 16:58:28 -03:00
< span translate ng-hide = "!hideAdv" > Show< / span >
< span translate ng-hide = "hideAdv" > Hide< / span >
< span translate > advanced options< / span >
2014-08-21 11:56:02 -04:00
< / a >
< div ng-hide = "hideAdv" >
< p >
< input type = "text"
2014-09-05 16:58:28 -03:00
placeholder="{{'Private Key (Hex)'|translate}}"
2014-08-21 11:56:02 -04:00
name="private"
ng-model="$parent.private"
>
< / div >
2014-08-20 18:00:33 -04:00
2014-07-23 17:10:02 -03:00
< div class = "text-right" >
2014-09-05 16:58:28 -03:00
< a href = "#!/" class = "back-button text-primary m20r" > « < span translate > Back< / span > < / a >
2014-09-09 16:45:58 -03:00
< button translate type = "submit" class = "button primary m0" ng-disabled = "joinForm.$invalid || loading" > Join< / button >
2014-07-23 17:10:02 -03:00
< / div >
2014-08-21 11:56:02 -04:00
2014-07-23 17:10:02 -03:00
< / form >
< / div >
< / div >
< / div > <!-- End !loading -->
< / div >