toolkit/mozapps/extensions/content/newaddon.xul
author Dave Townsend <dtownsend@oxymoronical.com>
Wed, 24 Feb 2016 08:46:41 -0800
changeset 324073 a93848ae81dda184b7583759dde71ce653f25d93
parent 98983 f4157e8c410708d76703f19e4dfb61859bfe32d8
child 425076 95cecb14d2953b587a20230fe663ad6466c4597c
permissions -rw-r--r--
Bug 1247900: Sideloaded add-ons page displays poorly when the restart message is too long for a single line. r=rhelmer MozReview-Commit-ID: K4afnOIcod6

<?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"?>
<?xml-stylesheet href="chrome://mozapps/skin/extensions/newaddon.css"?>

<!DOCTYPE page [
<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
%brandDTD;
<!ENTITY % newaddonDTD SYSTEM "chrome://mozapps/locale/extensions/newaddon.dtd">
%newaddonDTD;
]>

<page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
      xmlns:xhtml="http://www.w3.org/1999/xhtml" title="&title;"
      disablefastfind="true" id="addon-page" onload="initialize()"
      onunload="unload()" role="application" align="stretch" pack="stretch">

  <xhtml:link rel="shortcut icon" style="display: none"
              href="chrome://mozapps/skin/extensions/extensionGeneric-16.png"/>

  <script type="application/javascript"
          src="chrome://mozapps/content/extensions/newaddon.js"/>

  <scrollbox id="addon-scrollbox" align="center">
    <spacer id="spacer-start"/>

    <vbox id="addon-container" class="main-content">
      <description>&intro;</description>

      <hbox id="addon-info">
        <image id="icon"/>
        <vbox flex="1">
          <label id="name"/>
          <label id="author"/>
          <label id="location" crop="end"/>
        </vbox>
      </hbox>

      <hbox id="warning">
        <image id="warning-icon"/>
        <description flex="1">&warning;</description>
      </hbox>

      <checkbox id="allow" label="&allow;"/>
      <description id="later">&later;</description>

      <deck id="buttonDeck">
        <hbox id="continuePanel">
          <button id="continue-button" label="&continue;"
                  oncommand="continueClicked()"/>
        </hbox>
        <vbox id="restartPanel">
          <description id="restartMessage">&restartMessage;</description>
          <hbox id="restartPanelButtons">
            <button id="restart-button" label="&restartButton;" oncommand="restartClicked()"/>
            <button id="cancel-button" label="&cancelButton;" oncommand="cancelClicked()"/>
          </hbox>
        </vbox>
      </deck>
    </vbox>

    <spacer id="spacer-end"/>
  </scrollbox>
</page>