@@ -8,28 +8,28 @@ <h1 translate ng-show="txs.length != 0">Send Proposals</h1>
88 < div ng-show ="txs.length != 0 " class ="large-12 line-dashed " style ="padding: 0; "> </ div >
99
1010 < h1 > {{title|translate}}</ h1 >
11- < div class ="large-6 columns ">
11+ < div class ="row collapse m0 ">
12+ < div class ="large-7 columns ">
1213 < form name ="sendForm " ng-submit ="submitForm(sendForm) " novalidate >
13- < div class ="row ">
14+ < div class ="row collapse ">
1415 < div class ="large-12 columns ">
1516 < div class ="row collapse ">
16- < label for ="address "> To address
17- < small ng-hide ="!sendForm.address.$pristine || address "> required</ small >
18- < small class ="is-valid " ng-show ="!sendForm.address.$invalid && address "> valid!</ small >
19- < small class ="has-error " ng-show ="sendForm.address.$invalid && address ">
20- not valid</ small >
17+ < label for ="address "> < span translate > To address</ span >
18+ < small translate ng-hide ="!sendForm.address.$pristine || address "> required</ small >
19+ < small translate class ="is-valid " ng-show ="!sendForm.address.$invalid && address "> valid!</ small >
20+ < small translate class ="has-error " ng-show ="sendForm.address.$invalid && address "> not valid</ small >
2121 </ label >
2222 < div class ="small-10 columns ">
2323 < input type ="text " id ="address " name ="address " ng-disabled ="loading || !!$root.merchant "
24- placeholder ="Send to " ng-model ="address " ng-change ="onChanged() " valid-address required >
24+ placeholder ="{{' Send to'|translate}} " ng-model ="address " ng-change ="onChanged() " valid-address required >
2525 < small class ="icon-input " ng-show ="!sendForm.address.$invalid && address "> < i class ="fi-check "> </ i > </ small >
2626 < small class ="icon-input " ng-show ="sendForm.address.$invalid && address "> < i class ="fi-x "> </ i > </ small >
2727 </ div >
28- < div class ="small-2 columns " ng-hide ="showScanner ">
28+ < div class ="small-2 columns " ng-hide ="showScanner || disableScanner ">
2929 < a class ="postfix button black " ng-click ="openScanner() "> < i class ="fi-camera "> </ i > </ a >
3030 </ div >
3131 < div class ="small-2 columns " ng-show ="showScanner ">
32- < a class ="postfix button warning " ng-click ="cancelScanner() "> Cancel</ a >
32+ < a translate class ="postfix button warning " ng-click ="cancelScanner() "> Cancel</ a >
3333 </ div >
3434 </ div >
3535 < div id ="scanner " class ="row " ng-if ="showScanner ">
@@ -39,7 +39,7 @@ <h1>{{title|translate}}</h1>
3939 < div id ="file-input-wrapper " class ="btn btn-primary ">
4040 < span class ="pull-left text-centered ">
4141 < i class ="glyphicon glyphicon-refresh icon-rotate "> </ i >
42- Get QR code
42+ < span translate > Get QR code</ span >
4343 </ span >
4444 < input id ="qrcode-camera " type ="file " capture ="camera " accept ="image/* ">
4545 </ div >
@@ -52,30 +52,33 @@ <h1>{{title|translate}}</h1>
5252 </ div >
5353 </ div >
5454
55- < div class ="row ">
56- < div class ="large-6 medium-6 columns ">
55+ < div class ="row collapse ">
56+ < div class ="large-5 medium-5 columns ">
5757 < div class ="row collapse ">
58- < label for ="amount "> Amount
59- < small ng-hide ="!sendForm.amount.$pristine "> required</ small >
60- < small class ="is-valid " ng-show ="!sendForm.amount.$invalid && !sendForm.amount.$pristine "> Valid</ small >
61- < small class ="has-error " ng-show ="sendForm.amount.$invalid && !sendForm.amount.$pristine && !notEnoughAmount ">
62- Not valid
58+ < label for ="amount "> < span translate > Amount</ span >
59+ < small translate ng-hide ="!sendForm.amount.$pristine "> required</ small >
60+ < small translate class ="is-valid "
61+ ng-show ="!sendForm.amount.$invalid &&
62+ !sendForm.amount.$pristine "> valid!</ small >
63+ < small translate class ="has-error "
64+ ng-show ="sendForm.amount.$invalid &&
65+ !sendForm.amount.$pristine && !notEnoughAmount "> not valid
6366 </ small >
64- < small ng-show ="notEnoughAmount " class ="has-error "> Insufficient funds</ small >
67+ < small translate ng-show ="notEnoughAmount " class ="has-error "> Insufficient funds</ small >
6568 </ label >
6669 < div class ="small-9 columns ">
6770 < input type ="number " id ="amount "
6871 ng-disabled ="loading || ($root.merchant && +$root.merchant.total > 0) || $root.merchantError "
69- name ="amount " placeholder ="Amount " ng-model ="amount "
72+ name ="amount " placeholder ="{{' Amount'|translate}} " ng-model ="amount "
7073 min ="{{minAmount}} " max ="10000000000 " enough-amount required
7174 autocomplete ="off "
7275 >
7376 < small class ="icon-input " ng-show ="!sendForm.amount.$invalid && amount "> < i class ="fi-check "> </ i > </ small >
7477 < small class ="icon-input " ng-show ="sendForm.amount.$invalid && !sendForm.amount.$pristine && !notEnoughAmount "> < i class ="fi-x "> </ i > </ small >
75- < a class ="small input-note " title ="Send all funds "
78+ < a class ="small input-note " title ="{{' Send all funds'|translate}} "
7679 ng-show ="$root.availableBalance > 0 && (!$root.merchant || +$root.merchant.total === 0) "
7780 ng-click ="topAmount(sendForm) ">
78- Use all funds ({{getAvailableAmount()}} {{$root.unitName}})
81+ < span translate > Use all funds</ span > ({{getAvailableAmount()}} {{$root.unitName}})
7982 </ a >
8083 </ div >
8184 < div class ="small-3 columns ">
@@ -85,11 +88,11 @@ <h1>{{title|translate}}</h1>
8588 </ div >
8689 < div class ="large-6 medium-6 columns ">
8790 < div class ="row collapse ">
88- < label for ="alternative "> Amount in {{ alternativeName }} </ label >
91+ < label for ="alternative "> < span translate > Amount in</ span > {{ alternativeName }} </ label >
8992 < div class ="small-9 columns ">
9093 < input type ="number " id ="alternative_amount "
9194 ng-disabled ="loading || !isRateAvailable || ($root.merchant && +$root.merchant.total > 0) || $root.merchantError "
92- name ="alternative " placeholder ="Amount " ng-model ="alternative "
95+ name ="alternative " placeholder ="{{' Amount'|translate}} " ng-model ="alternative "
9396 required
9497 autocomplete ="off "
9598 >
@@ -101,22 +104,22 @@ <h1>{{title|translate}}</h1>
101104 </ div >
102105 </ div >
103106
104- < div class ="row " ng-show ="wallet.isShared() ">
107+ < div class ="row collapse " ng-show ="wallet.isShared() ">
105108 < div class ="large-12 columns ">
106109 < div class ="row collapse ">
107- < label for ="comment "> Note
108- < small ng-hide ="!sendForm.comment.$pristine "> optional</ small >
109- < small class ="has-error " ng-show ="sendForm.comment.$invalid && !sendForm.comment.$pristine "> too long!</ small >
110+ < label for ="comment "> < span translate > Note</ span >
111+ < small translate ng-hide ="!sendForm.comment.$pristine "> optional</ small >
112+ < small translate class ="has-error " ng-show ="sendForm.comment.$invalid && !sendForm.comment.$pristine "> too long!</ small >
110113 </ label >
111114 < div class ="large-12 columns ">
112115 < textarea id ="comment " ng-disabled ="loading "
113- name ="comment " placeholder ="Leave a private message to your copayers " ng-model ="commentText " ng-maxlength ="100 "> </ textarea >
116+ name ="comment " placeholder ="{{' Leave a private message to your copayers'|translate}} " ng-model ="commentText " ng-maxlength ="100 "> </ textarea >
114117 </ div >
115118 </ div >
116119 </ div >
117120 </ div >
118121
119- < div class ="row ">
122+ < div class ="row collapse ">
120123 < div class ="large-5 medium-3 small-4 columns ">
121124 < button type ="submit " class ="button primary expand text-center " ng-disabled ="sendForm.$invalid || loading ">
122125 Send
@@ -125,15 +128,16 @@ <h1>{{title|translate}}</h1>
125128 </ div >
126129 </ form >
127130 </ div >
131+ </ div > <!-- end of row -->
128132
129133 < div class ="large-6 columns show-for-large-up " ng-show ="!!$root.merchant ">
130134 < div class ="send-note ">
131- < h6 > Send to</ h6 >
135+ < h6 translate > Send to</ h6 >
132136 < p class ="text-gray " ng-class ="{'hidden': sendForm.address.$invalid || !address} "
133137 title ="{{$root.merchant.request_url}} ">
134138 {{$root.merchant.domain}}
135139 </ p >
136- < h6 > Total amount for this transaction:</ h6 >
140+ < h6 translate > Total amount for this transaction:</ h6 >
137141 < p class ="text-gray " ng-class ="{'hidden': sendForm.amount.$invalid || !amount > 0} ">
138142 < b > {{amount + defaultFee |noFractionNumber}}</ b > {{$root.unitName}}
139143 < small ng-if ="isRateAvailable ">
@@ -145,24 +149,24 @@ <h6>Total amount for this transaction:</h6>
145149 </ small >
146150 </ p >
147151 < div ng-show ="wallet.isShared() ">
148- < h6 > Note</ h6 >
152+ < h6 translate > Note</ h6 >
149153 < p ng-class ="{'hidden': !commentText} "> {{commentText}}</ p >
150154 </ div >
151155 < div ng-show ="!!$root.merchant ">
152- < h6 > Merchant Data:</ h6 >
156+ < h6 translate > Merchant Data:</ h6 >
153157 < p class ="text-gray ">
154158 Note: This is a payment protocol transaction.
155159 </ p >
156- < h6 > Server Says:</ h6 >
160+ < h6 translate > Server Says:</ h6 >
157161 < p class ="text-gray ">
158162 {{$root.merchant.pr.pd.memo}}
159163 </ p >
160- < h6 > Certificate:</ h6 >
164+ < h6 translate > Certificate:</ h6 >
161165 < p class ="text-gray ">
162166 < span ng-show ="!!$root.merchant.pr.ca "> {{$root.merchant.pr.ca}}</ span >
163167 < span ng-show ="!$root.merchant.pr.ca " style ="color:red;weight:bold; "> Untrusted</ span >
164168 </ p >
165- < h6 > Payment Expiration:</ h6 >
169+ < h6 translate > Payment Expiration:</ h6 >
166170 < p class ="text-gray ">
167171 {{$root.merchant.expiration}}
168172 </ p >
@@ -172,7 +176,7 @@ <h6>Payment Expiration:</h6>
172176
173177 < div class ="large-12 columns line-dashed ">
174178 < h2 translate > Address Book</ h2 >
175- < p translate class ="text-gray " ng-hide ="showAddressBook() "> Empty. Create an alias for your addresses</ p >
179+ < p translate class ="text-gray m15b " ng-hide ="showAddressBook() "> Empty. Create an alias for your addresses</ p >
176180 < table class ="large-12 medium-12 small-12 " ng-show ="showAddressBook() ">
177181 < thead >
178182 < tr >
0 commit comments