@@ -432,20 +432,20 @@ <h4 class="title m0">
432
432
< i class ="icon-wallet size-18 " style ="margin-right: -3px;vertical-align: baseline; "> </ i >
433
433
</ a >
434
434
</ div >
435
- < div ng-if ="home.deviceAddressIsKnown() " style ="font-size: 11px; font-weight: bold; margin-top: -1.5rem; margin-bottom: 1.5rem ; ">
435
+ < div ng-if ="home.deviceAddressIsKnown() " style ="font-size: 11px; font-weight: bold; margin-top: -1.5rem; margin-bottom: 1rem ; ">
436
436
< a ng-click ="home.openBindModal() ">
437
- < span ng-if ="!home.binding " translate > Bind the payment to a condition</ span >
438
- < span ng-if ="home.binding " translate > This payment is bound to a condition</ span >
437
+ < span ng-if ="!home.binding " translate > Bind the payment to a condition... </ span >
438
+ < span ng-if ="home.binding " translate > This payment is bound to a condition... </ span >
439
439
</ a >
440
440
</ div >
441
- < div ng-if ="!index.arrBalances[index.assetIndex].is_private && !home.blockUx && !home.lockAddress && home.canSendExternalPayment() " style ="font-size: 11px; font-weight: bold; margin-top: -1.5rem; margin-bottom: 1.5rem ; float: right; ">
441
+ < div ng-if ="!index.arrBalances[index.assetIndex].is_private && !home.blockUx && !home.lockAddress && home.canSendExternalPayment() " style ="font-size: 11px; font-weight: bold; margin-top: -1.5rem; margin-bottom: 1rem ; float: right; ">
442
442
< a ng-click ="home.lockAmount = home.send_multiple = !home.send_multiple " class ="text-gray " style ="border-bottom: 1px dashed grey; ">
443
443
< span ng-if ="home.send_multiple " translate > switch to single address</ span >
444
444
< span ng-if ="!home.send_multiple " translate ng-click ="home.resetForm(sendPaymentForm) "> switch to multi-address</ span >
445
445
</ a >
446
446
</ div >
447
447
< div id ="binding-drop " class ="f-dropdown " data-dropdown-content style ="padding: 10px; " translate > To bind the payment to a condition, please click the peer's address in chat</ div >
448
- < div ng-if ="!home.deviceAddressIsKnown() " style ="font-size: 11px; font-weight: bold; margin-top: -1.5rem; margin-bottom: 1.5rem ">
448
+ < div ng-if ="!home.deviceAddressIsKnown() " style ="font-size: 11px; font-weight: bold; margin-top: -1.5rem; margin-bottom: 1rem ">
449
449
< a dropdown-toggle ="#binding-drop " data-options ="align:top ">
450
450
< span translate class ="text-gray "> Bind the payment to a condition</ span >
451
451
</ a >
@@ -477,6 +477,30 @@ <h4 class="title m0">
477
477
</ div >
478
478
</ div >
479
479
480
+ < div class ="row " ng-if ="home.feedvaluespairs.length === 0 ">
481
+ < div class ="large-12 columns m30b ">
482
+ < a style ="font-size: 11px; font-weight: bold; margin-top: -1.5rem; margin-bottom: 1rem; " ng-click ="home.feedvaluespairs.push({}) " translate > Also send data...</ a >
483
+ </ div >
484
+ </ div >
485
+
486
+ < div class ="row " ng-if ="home.feedvaluespairs.length > 0 ">
487
+ < div class ="large-12 columns m30b m10t ">
488
+ < label translate > Data to be posted with the payment:</ label >
489
+ < div >
490
+ < span ng-repeat ="pair in home.feedvaluespairs ">
491
+ < input type ="text " ng-model ="pair.name " placeholder ="{{'Field'|translate}} " class ="datafeed_input " ng-required ="true " ng-maxlength ="64 " maxlength ="64 " >
492
+ < input type ="text " ng-model ="pair.value " placeholder ="{{'Value'|translate}} " class ="datafeed_input " ng-required ="true " ng-maxlength ="64 " maxlength ="64 ">
493
+ < a ng-show ="$last " ng-click ="home.feedvaluespairs.splice(home.feedvaluespairs.length-1) "> < i class ="fi-minus size-18 m10r " style ="vertical-align: middle; "> </ i > </ a >
494
+ </ span >
495
+ < div class ="clear "> </ div >
496
+ < a ng-click ="home.feedvaluespairs.push({}) " style ="padding:10px 0; " ng-show ="home.feedvaluespairs.length < 20 ">
497
+ < i class ="fi-plus size-18 m10r " style ="vertical-align: middle; "> </ i >
498
+ < span class ="text-close size-12 " translate > Add fields</ span >
499
+ </ a >
500
+ </ div >
501
+ </ div >
502
+ </ div >
503
+
480
504
< div class ="" ng-show ="index.m < index.n && index.m > 1 ">
481
505
< div class ="large-12 medium-12 ">
482
506
< label >
@@ -518,7 +542,7 @@ <h4 class="title m0">
518
542
</ div >
519
543
< div ng-show ="home.shownForm=='data' && index.isSingleAddress ">
520
544
< div class ="large-12 large-centered columns ">
521
- < form name ="sendDataForm " ng-submit ="home.submitData() " ng-disabled ="home.blockUx || home.onGoingProcess " novalidate ng-init ="home.feedvaluespairs=[{}] ">
545
+ < form name ="sendDataForm " ng-submit ="home.submitData() " ng-disabled ="home.blockUx || home.onGoingProcess " novalidate dont- ng-init ="home.feedvaluespairs=[{}] ">
522
546
< div class ="box-notification " ng-show ="home.error " ng-click ="home.resetError() ">
523
547
< span class ="text-warning ">
524
548
{{home.error|translate}}
0 commit comments