Skip to content

Commit 8be3dab

Browse files
author
matograine
committed
create modal for certification checklist
1 parent b5fbefc commit 8be3dab

File tree

2 files changed

+97
-0
lines changed

2 files changed

+97
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<div class="col col-80">
2+
<div class="ion-text text-wrap" ng-bind-html="check.question | translate"></div>
3+
</div>
4+
<div class="col text-right">
5+
<div class="ion-text" style="text-transform: uppercase;">
6+
<b ng-if="check.answer" translate>COMMON.BTN_YES</b>
7+
<b ng-if="!check.answer" translate>COMMON.BTN_NO</b>
8+
</div>
9+
</div>
10+
<div class="col float-left">
11+
<label class="toggle toggle-royal">
12+
<input type="checkbox" ng-model="check.answer">
13+
<div class="track">
14+
<div class="handle"></div>
15+
</div>
16+
</label>
17+
</div>
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
<ion-modal-view class="modal-full-height">
2+
3+
<!-- TOP BAR -->
4+
<ion-header-bar class="bar-positive">
5+
6+
<button class="button button-clear visible-xs"
7+
ng-if="!slides.slider.activeIndex"
8+
ng-click="closeModal()" translate>COMMON.BTN_CANCEL
9+
</button>
10+
<button class="button button-icon button-clear icon ion-ios-arrow-back buttons header-item"
11+
ng-click="doPrev()"
12+
ng-if="slides.slider.activeIndex && slideBehavior.hasPreviousButton">
13+
</button>
14+
<button class="button button-icon button-clear icon ion-ios-help-outline visible-xs"
15+
ng-if="slideBehavior.helpAnchor"
16+
ng-click="showHelpModal(slideBehavior.helpAnchor)">
17+
</button>
18+
19+
<h1 class="title" translate>ACCOUNT.CERTIFICATION_MODAL.CHECKLIST_TITLE</h1>
20+
21+
<!-- next -->
22+
<button class="button button-clear icon-right visible-xs"
23+
ng-if="slideBehavior.hasNextButton"
24+
ng-click="doNext()">
25+
<span translate>COMMON.BTN_NEXT</span>
26+
<i class="icon ion-ios-arrow-right"></i>
27+
</button>
28+
<!-- accept -->
29+
<button class="button button-clear icon-right visible-xs"
30+
ng-class="{'button-text-stable': !isLicenseRead}"
31+
ng-if="slideBehavior.hasAcceptButton"
32+
ng-click="isLicenseRead ? doNext() : undefined">
33+
<span translate>ACCOUNT.NEW.BTN_ACCEPT</span>
34+
<i class="icon ion-ios-arrow-right"></i>
35+
</button>
36+
<!-- send -->
37+
<button class="button button-clear icon-right visible-xs"
38+
ng-if="slideBehavior.hasSendButton"
39+
ng-click="doNewAccount()">
40+
<i class="icon ion-android-send"></i>
41+
</button>
42+
</ion-header-bar>
43+
44+
45+
<!-- CONTENT -->
46+
<ion-content class="has-header" scroll="true">
47+
48+
<div class="padding text-center" ><b>{{ identity.uid }} - {{ identity.pubkey }}</b></div>
49+
50+
<div class="padding" translate>ACCOUNT.CERTIFICATION_MODAL.INFOS</div>
51+
52+
<div class="card padding">
53+
<div class="row nowrap row-center"
54+
ng-repeat="check in cert_checklist"
55+
ng-include="::'templates/wot/item_checklist_certification.html'">
56+
</div>
57+
</div>
58+
59+
60+
<div class="padding text-right">
61+
62+
<button class="button button-clear button-dark ink hidden-xs" ng-click="closeModal()" type="button" translate>
63+
COMMON.BTN_CANCEL
64+
</button>
65+
66+
<button class="button button-stable icon-right ink"
67+
ng-if="formData.licenseUrl"
68+
ng-click="showLicenseModal()">
69+
<i class="icon ion-document-text"></i>&nbsp;
70+
{{'CURRENCY.VIEW.BTN_SHOW_LICENSE' | translate}}
71+
</button>
72+
73+
<button class="button button-positive icon-right ion-chevron-right ink" ng-click="verifyAnswers()"
74+
type="button" translate>
75+
ACCOUNT.CERTIFICATION_MODAL.BTN_ALL_CHECK
76+
</button>
77+
78+
</div>
79+
</ion-content>
80+
</ion-modal-view>

0 commit comments

Comments
 (0)