summaryrefslogtreecommitdiffstats
path: root/content/manager/editAccountOverlay.xhtml
blob: bee8d72d1c361bd56f70805080cdb6e2da1fa9fb (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
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://tbsync/content/skin/fix_dropdown_1534697.css" type="text/css"?>
<overlay 
    id="tbSyncAccountConfig" 
    xmlns:html="http://www.w3.org/1999/xhtml">

    <script type="application/javascript" src="chrome://dav4tbsync/content/manager/editAccountOverlay.js"/>
    <script type="application/javascript" src="chrome://dav4tbsync/content/locales.js"/>

    <tab id="manager.tabs.accountsettings" label="__DAV4TBSYNCMSG_manager.tabs.accountsettings__" appendto="manager.tabs" />
    <tab id="manager.tabs.syncsettings" label="__DAV4TBSYNCMSG_manager.tabs.syncsettings__" appendto="manager.tabs" />

    <tabpanel id="manager.tabpanels.accountsettings" appendto="manager.tabpanels" flex="1" orient="vertical"><!-- ACCOUNT SETTINGS -->
           <vbox flex="1">
                <label class="header lockIfConnected" style="margin-left:0; margin-bottom:1ex;" value="" id="tbsync.accountsettings.label.config" />                
                <html:table>

                        <html:tr>
                            <html:td>
                                <vbox pack="center">
                                    <label style="text-align:left" control="tbsync.accountsettings.pref.accountname" value="__DAV4TBSYNCMSG_pref.AccountName__" />
                                </vbox>
                            </html:td>
                            <html:td width="100%">
                                <html:input id="tbsync.accountsettings.pref.accountname" />
                            </html:td>
                        </html:tr>
                        
                        <html:tr>
                            <html:td>
                                <vbox pack="center">
                                    <label class="lockIfConnected" style="text-align:left" control="tbsync.accountsettings.pref.user" value="__DAV4TBSYNCMSG_pref.UserName__" />
                                </vbox>
                            </html:td>
                            <html:td>
                                <html:input class="lockIfConnected" id="tbsync.accountsettings.pref.user" />
                            </html:td>
                        </html:tr>
                        
                        <html:tr>
                            <html:td>
                                <vbox pack="center">
                                    <label class="lockIfConnected lockIfServiceProvider" style="text-align:left" control="tbsync.accountsettings.pref.calDavHost" value="__DAV4TBSYNCMSG_pref.CalDavServer__" />
                                </vbox>
                            </html:td>
                            <html:td>
                                <html:input class="lockIfConnected lockIfServiceProvider" id="tbsync.accountsettings.pref.calDavHost"  onblur="tbSyncEditAccountOverlay.stripHost(document, 'calDavHost');"/>
                            </html:td>
                        </html:tr>
                        <html:tr>
                            <html:td>
                                <vbox pack="center">
                                    <label class="lockIfConnected lockIfServiceProvider" style="text-align:left" control="tbsync.accountsettings.pref.cardDavHost" value="__DAV4TBSYNCMSG_pref.CardDavServer__" />
                                </vbox>
                            </html:td>
                            <html:td>
                                <html:input class="lockIfConnected lockIfServiceProvider" id="tbsync.accountsettings.pref.cardDavHost" onblur="tbSyncEditAccountOverlay.stripHost(document, 'cardDavHost');" />
                            </html:td>
                        </html:tr>

                </html:table>

                <vbox flex="1" />
                <vbox class="showIfConnected">
                    <hbox>
                        <vbox pack="center"><image src="chrome://tbsync/content/skin/info16.png" /></vbox>
                        <description flex="1">__TBSYNCMSG_manager.lockedsettings.description__</description>
                    </hbox>
                </vbox>

            </vbox>
    </tabpanel>

    <tabpanel id="manager.tabpanels.syncsettings" appendto="manager.tabpanels" flex="1" orient="vertical"><!-- SYNC SETTINGS -->
          <vbox flex="1">
                <!--label style="margin-left:0; margin-bottom: 1ex;" class="header lockIfConnected" value="__DAV4TBSYNCMSG_pref.generaloptions__"/-->

                <label style="margin-left:0; margin-bottom: 1ex; margin-top: 3ex" class="header lockIfConnected" value="__DAV4TBSYNCMSG_pref.calendaroptions__"/>
                <vbox>                            
                    <checkbox class="lockIfConnected" id="tbsync.accountsettings.pref.useCalendarCache" label="__DAV4TBSYNCMSG_pref.useCalendarCache__" />
                </vbox>

                <vbox flex="1" />
                <vbox class="showIfConnected">
                    <hbox>
                        <vbox pack="center"><image src="chrome://tbsync/content/skin/info16.png" /></vbox>
                        <description flex="1">__TBSYNCMSG_manager.lockedsettings.description__</description>
                    </hbox>
                </vbox>
            </vbox>
    </tabpanel>

</overlay>