toolkit/components/cookie/content/cookieAcceptDialog.xul

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

     1 <?xml version="1.0"?>
     3 <!-- This Source Code Form is subject to the terms of the Mozilla Public
     4    - License, v. 2.0. If a copy of the MPL was not distributed with this
     5    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
     7 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
     9 <!DOCTYPE dialog SYSTEM "chrome://cookie/locale/cookieAcceptDialog.dtd">
    11 <!-- use a overlay te be able to put the accept/deny buttons not on the bottom -->
    12 <?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
    14 <!-- use buttons="disclosure" to hide ok/cancel buttons. Those are added manually later -->
    15 <dialog id="cookieAcceptDialog"
    16     acceptLabel="&button.allow.label;"
    17     acceptKey="&button.allow.accesskey;"
    18     extra1Label="&button.session.label;"
    19     extra1Key="&button.session.accesskey;"
    20     cancelLabel="&button.deny.label;"
    21     cancelKey="&button.deny.accesskey;"
    22     onload="onload();"
    23     ondialogaccept="return doOKButton();"
    24     title="&dialog.title;"
    25     buttons="disclosure"
    26     aria-describedby="dialog-header"
    27     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
    29   <script src="cookieAcceptDialog.js" type="application/javascript"/>
    30   <stringbundle id="cookieBundle"
    31                 src="chrome://cookie/locale/cookieAcceptDialog.properties"/>
    33   <vbox>
    34     <hbox>
    35       <hbox align="start">
    36         <image id="infoicon" class="spaced alert-icon"/>
    37       </hbox>
    39       <vbox flex="1">
    40         <!-- text -->
    41         <vbox id="dialogtextbox">
    42           <description id="dialog-header" class="header"/>
    43         </vbox>
    45         <hbox id="checkboxContainer">
    46           <checkbox id="persistDomainAcceptance"
    47                     label="&dialog.remember.label;" 
    48                     accesskey="&dialog.remember.accesskey;"
    49                     persist="checked"/>
    50         </hbox>
    51       </vbox>
    53     </hbox>
    55     <hbox>
    56       <button id="disclosureButton" dlgtype="disclosure" class="exit-dialog" 
    57               oncommand="showhideinfo();"/>
    58       <spacer flex="1"/>
    59       <hbox id="okCancelButtonsRight"/>
    60     </hbox>
    62     <vbox id="infobox" hidden="true" persist="hidden">
    63       <separator class="groove"/>
    64       <grid flex="1">
    65         <columns>
    66           <column/>
    67           <column flex="1"/>
    68         </columns>
    69         <rows>
    71           <row align="center">
    72             <hbox align="center" pack="end">
    73               <label value="&props.name.label;" control="ifl_name"/>
    74             </hbox>
    75             <textbox id="ifl_name" readonly="true" class="plain"/>
    76           </row>
    78           <row align="center">
    79             <hbox align="center" pack="end">
    80               <label value="&props.value.label;" control="ifl_value"/>
    81             </hbox>
    82             <textbox id="ifl_value" readonly="true" class="plain"/>
    83           </row>
    85           <row align="center">
    86             <hbox align="center" pack="end">
    87               <label id="ifl_isDomain" value="&props.domain.label;" control="ifl_host"/>
    88             </hbox>
    89             <textbox id="ifl_host" readonly="true" class="plain"/>
    90           </row>
    92           <row align="center">
    93             <hbox align="center" pack="end">
    94               <label value="&props.path.label;" control="ifl_path"/>
    95             </hbox>
    96             <textbox id="ifl_path" readonly="true" class="plain"/>
    97           </row>
    99           <row align="center">
   100             <hbox align="center" pack="end">
   101               <label value="&props.secure.label;" control="ifl_isSecure"/>
   102             </hbox>
   103             <textbox id="ifl_isSecure" readonly="true" class="plain"/>
   104           </row>
   106           <row align="center">
   107             <hbox align="center" pack="end">
   108               <label value="&props.expires.label;" control="ifl_expires"/>
   109             </hbox>
   110             <textbox id="ifl_expires" readonly="true" class="plain"/>
   111           </row>
   113         </rows>
   114       </grid>
   115     </vbox>
   116   </vbox>
   117 </dialog>

mercurial