electrum-bitcoinprivate/gui/kivy/uix/ui_screens/invoice.kv

72 lines
2.4 KiB
Plaintext
Raw Normal View History

2016-02-11 02:40:23 -08:00
#:import Decimal decimal.Decimal
2016-02-11 02:40:23 -08:00
Popup:
id: popup
is_invoice: True
amount: 0
requestor: ''
exp: ''
description: ''
status: ''
signature: ''
title: _('Invoice') if popup.is_invoice else _('Request')
2016-02-17 09:04:34 -08:00
tx_hash: ''
2016-02-15 04:49:33 -08:00
BoxLayout:
orientation: 'vertical'
ScrollView:
GridLayout:
cols: 1
height: self.minimum_height
size_hint_y: None
2016-02-17 20:35:01 -08:00
padding: '10dp'
spacing: '10dp'
GridLayout:
2016-02-17 20:35:01 -08:00
cols: 1
size_hint_y: None
height: self.minimum_height
spacing: '10dp'
2016-02-17 20:35:01 -08:00
BoxLabel:
text: (_('Status') if popup.amount or popup.is_invoice else _('Amount received')) if root.status else ''
value: root.status
BoxLabel:
text: _('Amount') if root.amount else ''
2016-02-17 20:35:01 -08:00
value: app.format_amount_and_units(root.amount) if root.amount else ''
BoxLabel:
text: _('Requestor') if popup.is_invoice else _('Address')
value: root.requestor
BoxLabel:
text: _('Signature') if root.signature else ''
2016-02-17 20:35:01 -08:00
value: root.signature
BoxLabel:
text: _('Expiration') if root.exp else ''
2016-02-17 20:35:01 -08:00
value: root.exp
BoxLabel:
text: _('Description') if root.description else ''
2016-02-17 20:35:01 -08:00
value: root.description
TopLabel:
text: _('Outputs') if popup.is_invoice else ''
OutputList:
id: output_list
TopLabel:
2016-02-17 09:04:34 -08:00
text: _('Transaction ID') if popup.tx_hash else ''
TxHashLabel:
2016-02-18 04:53:23 -08:00
data: popup.tx_hash
name: _('Transaction ID')
2016-02-15 04:49:33 -08:00
Widget:
size_hint: 1, 0.1
2016-02-15 04:49:33 -08:00
BoxLayout:
size_hint: 1, None
height: '48dp'
Widget:
size_hint: 0.5, None
height: '48dp'
Button:
size_hint: 0.5, None
2016-02-11 02:40:23 -08:00
height: '48dp'
2016-02-15 04:49:33 -08:00
text: _('Close')
on_release: popup.dismiss()