summaryrefslogtreecommitdiffstats
path: root/comm/mail/components/preferences/receipts.xhtml
blob: 32f8a7237df085b07b1f333e1fbb66feeb483fb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<?xml version="1.0"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<?xml-stylesheet href="chrome://global/skin/global.css"?>

<!DOCTYPE window>

<window
  type="child"
  xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  xmlns:html="http://www.w3.org/1999/xhtml"
  data-l10n-id="receipts-dialog-window"
  onload="enableDisableAllowedReceipts();"
>
  <dialog id="ReturnReceiptsDialog" dlgbuttons="accept,cancel">
    <script src="chrome://global/content/preferencesBindings.js" />
    <script src="chrome://messenger/content/preferences/receipts.js" />

    <linkset>
      <html:link rel="localization" href="messenger/preferences/receipts.ftl" />
    </linkset>

    <vbox id="returnReceiptSettings" align="start">
      <checkbox
        id="alwaysRequest"
        data-l10n-id="return-receipt-checkbox-control"
        preference="mail.receipt.request_return_receipt_on"
      />
    </vbox>

    <separator class="thin" />
    <separator class="groove" />
    <separator class="thin" />

    <label control="receiptFolder" data-l10n-id="receipt-arrive-label" />
    <radiogroup
      id="receiptFolder"
      class="indent"
      preference="mail.incorporate.return_receipt"
    >
      <radio value="0" data-l10n-id="receipt-leave-radio-control" />
      <radio value="1" data-l10n-id="receipt-move-radio-control" />
    </radiogroup>

    <separator class="thin" />
    <separator class="groove" />
    <separator class="thin" />

    <label control="receiptSend" data-l10n-id="receipt-request-label" />
    <radiogroup
      id="receiptSend"
      class="indent"
      preference="mail.mdn.report.enabled"
      oncommand="enableDisableAllowedReceipts();"
    >
      <radio value="false" data-l10n-id="receipt-return-never-radio-control" />
      <radio value="true" data-l10n-id="receipt-return-some-radio-control" />

      <vbox class="indent">
        <hbox align="center">
          <hbox flex="1">
            <label
              id="notInToCcLabel"
              data-l10n-id="receipt-not-to-cc-label"
              control="notInToCcPref"
            />
          </hbox>
          <menulist
            id="notInToCcPref"
            preference="mail.mdn.report.not_in_to_cc"
          >
            <menupopup>
              <menuitem value="0" data-l10n-id="receipt-send-never-label" />
              <menuitem value="1" data-l10n-id="receipt-send-always-label" />
              <menuitem value="2" data-l10n-id="receipt-send-ask-label" />
            </menupopup>
          </menulist>
        </hbox>
        <hbox align="center">
          <hbox flex="1">
            <label
              id="outsideDomainLabel"
              data-l10n-id="sender-outside-domain-label"
              control="outsideDomainPref"
            />
          </hbox>
          <menulist
            id="outsideDomainPref"
            preference="mail.mdn.report.outside_domain"
          >
            <menupopup>
              <menuitem value="0" data-l10n-id="receipt-send-never-label" />
              <menuitem value="1" data-l10n-id="receipt-send-always-label" />
              <menuitem value="2" data-l10n-id="receipt-send-ask-label" />
            </menupopup>
          </menulist>
        </hbox>
        <hbox align="center">
          <hbox flex="1">
            <label
              id="otherCasesLabel"
              data-l10n-id="other-cases-text-label"
              control="otherCasesPref"
            />
          </hbox>
          <menulist id="otherCasesPref" preference="mail.mdn.report.other">
            <menupopup>
              <menuitem value="0" data-l10n-id="receipt-send-never-label" />
              <menuitem value="1" data-l10n-id="receipt-send-always-label" />
              <menuitem value="2" data-l10n-id="receipt-send-ask-label" />
            </menupopup>
          </menulist>
        </hbox>
      </vbox>
    </radiogroup>
    <separator />
  </dialog>
</window>