summaryrefslogtreecommitdiffstats
path: root/toolkit/components/cookie/content/cookieAcceptDialog.xul
blob: 99fd92c0c9755a4dfc75a018b183b67665b96fae (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
<?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/" type="text/css"?>

<!DOCTYPE dialog SYSTEM "chrome://cookie/locale/cookieAcceptDialog.dtd">

<!-- use a overlay te be able to put the accept/deny buttons not on the bottom -->
<?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>

<!-- use buttons="disclosure" to hide ok/cancel buttons. Those are added manually later -->
<dialog id="cookieAcceptDialog"
    acceptLabel="&button.allow.label;"
    acceptKey="&button.allow.accesskey;"
    extra1Label="&button.session.label;"
    extra1Key="&button.session.accesskey;"
    cancelLabel="&button.deny.label;"
    cancelKey="&button.deny.accesskey;"
    onload="onload();"
    ondialogaccept="return doOKButton();"
    title="&dialog.title;"
    buttons="disclosure"
    aria-describedby="dialog-header"
    xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

  <script src="cookieAcceptDialog.js" type="application/javascript"/>
  <stringbundle id="cookieBundle"
                src="chrome://cookie/locale/cookieAcceptDialog.properties"/>
 
  <vbox>
    <hbox>
      <hbox align="start">
        <image id="infoicon" class="spaced alert-icon"/>
      </hbox>

      <vbox flex="1">
        <!-- text -->
        <vbox id="dialogtextbox">
          <description id="dialog-header" class="header"/>
        </vbox>

        <hbox id="checkboxContainer">
          <checkbox id="persistDomainAcceptance"
                    label="&dialog.remember.label;" 
                    accesskey="&dialog.remember.accesskey;"
                    persist="checked"/>
        </hbox>
      </vbox>

    </hbox>

    <hbox>
      <button id="disclosureButton" dlgtype="disclosure" class="exit-dialog" 
              oncommand="showhideinfo();"/>
      <spacer flex="1"/>
      <hbox id="okCancelButtonsRight"/>
    </hbox>

    <vbox id="infobox" hidden="true" persist="hidden">
      <separator class="groove"/>
      <grid flex="1">
        <columns>
          <column/>
          <column flex="1"/>
        </columns>
        <rows>

          <row align="center">
            <hbox align="center" pack="end">
              <label value="&props.name.label;" control="ifl_name"/>
            </hbox>
            <textbox id="ifl_name" readonly="true" class="plain"/>
          </row>

          <row align="center">
            <hbox align="center" pack="end">
              <label value="&props.value.label;" control="ifl_value"/>
            </hbox>
            <textbox id="ifl_value" readonly="true" class="plain"/>
          </row>

          <row align="center">
            <hbox align="center" pack="end">
              <label id="ifl_isDomain" value="&props.domain.label;" control="ifl_host"/>
            </hbox>
            <textbox id="ifl_host" readonly="true" class="plain"/>
          </row>

          <row align="center">
            <hbox align="center" pack="end">
              <label value="&props.path.label;" control="ifl_path"/>
            </hbox>
            <textbox id="ifl_path" readonly="true" class="plain"/>
          </row>

          <row align="center">
            <hbox align="center" pack="end">
              <label value="&props.secure.label;" control="ifl_isSecure"/>
            </hbox>
            <textbox id="ifl_isSecure" readonly="true" class="plain"/>
          </row>

          <row align="center">
            <hbox align="center" pack="end">
              <label value="&props.expires.label;" control="ifl_expires"/>
            </hbox>
            <textbox id="ifl_expires" readonly="true" class="plain"/>
          </row>

        </rows>
      </grid>
    </vbox>
  </vbox>
</dialog>