~ubuntu-branches/ubuntu/quantal/enigmail/quantal-security

« back to all changes in this revision

Viewing changes to extensions/enigmail/ui/content/enigmailCardDetails.xul

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2013-09-13 16:02:15 UTC
  • mfrom: (0.12.16)
  • Revision ID: package-import@ubuntu.com-20130913160215-u3g8nmwa0pdwagwc
Tags: 2:1.5.2-0ubuntu0.12.10.1
* New upstream release v1.5.2 for Thunderbird 24

* Build enigmail using a stripped down Thunderbird 17 build system, as it's
  now quite difficult to build the way we were doing previously, with the
  latest Firefox build system
* Add debian/patches/no_libxpcom.patch - Don't link against libxpcom, as it
  doesn't exist anymore (but exists in the build system)
* Add debian/patches/use_sdk.patch - Use the SDK version of xpt.py and
  friends
* Drop debian/patches/ipc-pipe_rename.diff (not needed anymore)
* Drop debian/patches/makefile_depth.diff (not needed anymore)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0"?>
2
 
<!--
3
 
 * ***** BEGIN LICENSE BLOCK *****
4
 
 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
5
 
 *
6
 
 * The contents of this file are subject to the Mozilla Public
7
 
 * License Version 1.1 (the "MPL"); you may not use this file
8
 
 * except in compliance with the MPL. You may obtain a copy of
9
 
 * the MPL at http://www.mozilla.org/MPL/
10
 
 *
11
 
 * Software distributed under the MPL is distributed on an "AS
12
 
 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
13
 
 * implied. See the MPL for the specific language governing
14
 
 * rights and limitations under the MPL.
15
 
 *
16
 
 * The Original Code is Enigmail.
17
 
 *
18
 
 * The Initial Developer of the Original Code is Patrick Brunschwig.
19
 
 * Portions created by Patrick Brunschwig <patrick@mozilla-enigmail.org> are
20
 
 * Copyright (C) 2005 Patrick Brunschwig. All Rights Reserved.
21
 
 *
22
 
 * Contributor(s):
23
 
 *
24
 
 * Alternatively, the contents of this file may be used under the terms of
25
 
 * either the GNU General Public License Version 2 or later (the "GPL"), or
26
 
 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27
 
 * in which case the provisions of the GPL or the LGPL are applicable instead
28
 
 * of those above. If you wish to allow use of your version of this file only
29
 
 * under the terms of either the GPL or the LGPL, and not to allow others to
30
 
 * use your version of this file under the terms of the MPL, indicate your
31
 
 * decision by deleting the provisions above and replace them with the notice
32
 
 * and other provisions required by the GPL or the LGPL. If you do not delete
33
 
 * the provisions above, a recipient may use your version of this file under
34
 
 * the terms of any one of the MPL, the GPL or the LGPL.
35
 
 * ***** END LICENSE BLOCK ***** *
36
 
-->
37
 
 
38
 
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
39
 
<?xml-stylesheet href="chrome://enigmail/skin/enigmail.css" type="text/css"?>
40
 
 
41
 
<!DOCTYPE window [
42
 
<!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
43
 
%brandDTD;
44
 
<!ENTITY % enigMailDTD SYSTEM "chrome://enigmail/locale/enigmail.dtd" >
45
 
%enigMailDTD;
46
 
]>
47
 
 
48
 
<window id="enigmailCardDetailsDlg"
49
 
        title="&enigmail.cardDetails.title;"
50
 
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
51
 
        buttons="accept"
52
 
        windowtype="enigmail:cardDetails"
53
 
        onload="onLoad();">
54
 
 
55
 
 
56
 
  <script type="application/x-javascript" src="chrome://enigmail/content/enigmailCardDetails.js"/>
57
 
 
58
 
  <broadcasterset>
59
 
    <broadcaster id="bcEditMode" readonly="true"/>
60
 
    <broadcaster id="bcEnableMode" disabled="true"/>
61
 
  </broadcasterset>
62
 
 
63
 
  <menubar id="mainmenu" grippyhidden="true">
64
 
    <menu label="&enigmail.keyMan.fileMenu.label;"
65
 
          accesskey="&enigmail.keyMan.fileMenu.accesskey;">
66
 
      <menupopup>
67
 
        <menuitem label="&enigmail.keyMan.close.label;"
68
 
                  accesskey="&enigmail.keyMan.close.accesskey;"
69
 
                  key="key_closeWin"
70
 
                  oncommand="window.close()"/>
71
 
      </menupopup>
72
 
    </menu>
73
 
 
74
 
                <menu id="cardMenu"
75
 
          label="&enigmail.cardDetails.cardMenu.label;"
76
 
          accesskey="&enigmail.cardDetails.cardMenu.accesskey;">
77
 
      <menupopup>
78
 
       <menuitem id="editData"
79
 
              label="&enigmail.cardDetails.editData.label;"
80
 
              accesskey="&enigmail.cardDetails.editData.accesskey;"
81
 
              oncommand="doEditData()"/>
82
 
        <menuitem label="&enigmail.cardDetails.genCardKey.label;"
83
 
                  id="genCardKey"
84
 
                  accesskey="&enigmail.cardDetails.genCardKey.accesskey;"
85
 
                  oncommand="engmailGenerateCardKey()"/>
86
 
        <menuitem label="&enigmail.cardDetails.adminPin.label;"
87
 
                  id="adminPin"
88
 
                  accesskey="&enigmail.cardDetails.adminPin.accesskey;"
89
 
                  oncommand="enigmailAdminPin()"/>
90
 
      </menupopup>
91
 
                </menu>
92
 
  </menubar>
93
 
 
94
 
  <vbox orient="vertical">
95
 
    <grid>
96
 
      <columns>
97
 
        <column/>
98
 
        <column flex="1"/>
99
 
      </columns>
100
 
      <rows>
101
 
        <row align="center">
102
 
          <label value="&enigmail.cardDetails.vendor.label;" control="card_vendor"/>
103
 
          <textbox readonly="true" id="card_vendor" value=""/>
104
 
        </row>
105
 
        <row align="center">
106
 
          <label value="&enigmail.cardDetails.serial.label;" control="card_serial"/>
107
 
          <textbox readonly="true" id="card_serial" value=""/>
108
 
        </row>
109
 
        <row align="center">
110
 
          <label value="&enigmail.cardDetails.name.label;" id="card_namelabel"/>
111
 
          <hbox>
112
 
            <textbox observes="bcEditMode" id="card_firstname" value="" aria-labelledby="card_namelabel"/>
113
 
            <textbox observes="bcEditMode" id="card_name" value="" aria-labelledby="card_namelabel"/>
114
 
          </hbox>
115
 
        </row>
116
 
        <row align="center">
117
 
          <label value="&enigmail.cardDetails.lang.label;" control="card_lang"/>
118
 
          <textbox observes="bcEditMode" id="card_lang" value=""/>
119
 
        </row>
120
 
        <row align="center">
121
 
          <label value="&enigmail.cardDetails.sex.label;" control="card_sex"/>
122
 
          <radiogroup id="card_sex">
123
 
            <hbox>
124
 
              <radio id="card_sex_m"
125
 
                    value="m"
126
 
                    observes="bcEnableMode"
127
 
                    label="&enigmail.cardDetails.male.label;"/>
128
 
              <radio id="card_sex_f"
129
 
                    value="f"
130
 
                    observes="bcEnableMode"
131
 
                    label="&enigmail.cardDetails.female.label;"/>
132
 
            </hbox>
133
 
          </radiogroup>
134
 
        </row>
135
 
        <row align="center">
136
 
          <label value="&enigmail.cardDetails.url.label;" control="card_url"/>
137
 
          <textbox observes="bcEditMode" id="card_url" value=""/>
138
 
        </row>
139
 
        <row align="center">
140
 
          <label value="&enigmail.cardDetails.login.label;" control="card_login"/>
141
 
          <textbox observes="bcEditMode" id="card_login" value=""/>
142
 
        </row>
143
 
        <row align="center">
144
 
          <label value="&enigmail.cardDetails.forcepin.label;" control="card_forcepin"/>
145
 
          <radiogroup id="card_forcepin">
146
 
            <hbox>
147
 
              <radio id="card_forcepin_0"
148
 
                    value="0"
149
 
                    observes="bcEnableMode"
150
 
                    label="&enigmail.cardDetails.no.label;"/>
151
 
              <radio id="card_forcepin_1"
152
 
                    value="1"
153
 
                    observes="bcEnableMode"
154
 
                    label="&enigmail.cardDetails.yes.label;"/>
155
 
            </hbox>
156
 
          </radiogroup>
157
 
        </row>
158
 
        <row align="center">
159
 
          <label value="&enigmail.cardDetails.maxpinlen.label;" control="card_maxpinlen"/>
160
 
          <textbox readonly="true" id="card_maxpinlen" value=""/>
161
 
        </row>
162
 
        <row align="center">
163
 
          <label value="&enigmail.cardDetails.pinretry.label;" control="card_pinretry"/>
164
 
          <textbox readonly="true" id="card_pinretry" value=""/>
165
 
        </row>
166
 
        <row align="center">
167
 
          <label value="&enigmail.cardDetails.sigcount.label;" control="card_sigcount"/>
168
 
          <textbox readonly="true" id="card_sigcount" value=""/>
169
 
        </row>
170
 
        <row>
171
 
          <label value="&enigmail.cardDetails.sigKey.label;" control="card_key_fpr_1"/>
172
 
          <vbox>
173
 
            <textbox readonly="true" size="55" id="card_key_fpr_1" value=""/>
174
 
            <hbox align="center">
175
 
              <label value="&enigmail.cardDetails.keyCreated.label;" control="card_key_created_1"/>
176
 
              <textbox readonly="true" id="card_key_created_1" value=""/>
177
 
            </hbox>
178
 
          </vbox>
179
 
        </row>
180
 
        <row>
181
 
          <label value="&enigmail.cardDetails.encKey.label;" control="card_key_fpr_2"/>
182
 
          <vbox>
183
 
            <textbox readonly="true" id="card_key_fpr_2" value=""/>
184
 
            <hbox align="center">
185
 
              <label value="&enigmail.cardDetails.keyCreated.label;" control="card_key_created_2"/>
186
 
              <textbox readonly="true" id="card_key_created_2" value=""/>
187
 
            </hbox>
188
 
          </vbox>
189
 
        </row>
190
 
        <row>
191
 
          <label value="&enigmail.cardDetails.authKey.label;" control="card_key_fpr_3"/>
192
 
          <vbox>
193
 
            <textbox readonly="true" id="card_key_fpr_3" value=""/>
194
 
            <hbox align="center">
195
 
              <label value="&enigmail.cardDetails.keyCreated.label;" control="card_key_created_3"/>
196
 
              <textbox readonly="true" id="card_key_created_3" value=""/>
197
 
            </hbox>
198
 
          </vbox>
199
 
        </row>
200
 
      </rows>
201
 
    </grid>
202
 
 
203
 
        </vbox>
204
 
 
205
 
        <vbox align="end">
206
 
    <hbox>
207
 
      <button id="saveChanges"
208
 
              label="&enigmail.cardDetails.save.label;"
209
 
              oncommand="doSaveChanges()"
210
 
              observes="bcEnableMode"/>
211
 
      <button id="reset"
212
 
              label="&enigmail.cardDetails.reset.label;"
213
 
              oncommand="doReset()"
214
 
              observes="bcEnableMode"/>
215
 
    </hbox>
216
 
        </vbox>
217
 
 
218
 
</window>
219