summaryrefslogtreecommitdiffstats
path: root/browser/components/places/content/editBookmarkPanel.inc.xhtml
blob: 3ec3f094831c2143a818b43d1761a571f0ffa63d (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
119
120
121
122
# 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/.

<div id="editBookmarkPanelContent">
  <label id="editBMPanel_itemsCountText"
         class="editBMPanel_selectionCount"/>

  <label data-l10n-id="bookmark-overlay-name-2"
         class="editBMPanel_nameRow hideable"
         control="editBMPanel_namePicker"/>
  <html:input id="editBMPanel_namePicker"
              class="editBMPanel_nameRow hideable"
              type="text"
              onchange="gEditItemOverlay.onNamePickerChange().catch(Cu.reportError);"/>

  <label data-l10n-id="bookmark-overlay-url"
         class="editBMPanel_locationRow hideable"
         control="editBMPanel_locationField"/>
  <html:input id="editBMPanel_locationField"
              class="editBMPanel_locationRow uri-element hideable"
              type="text"
              onchange="gEditItemOverlay.onLocationFieldChange();"/>

  <label data-l10n-id="bookmark-overlay-location-2"
         class="editBMPanel_folderRow hideable"
         control="editBMPanel_folderMenuList"/>
  <hbox class="editBMPanel_folderRow hideable">
    <menulist id="editBMPanel_folderMenuList"
              class="folder-icon"
              flex="1"
              size="large"
              oncommand="gEditItemOverlay.onFolderMenuListCommand(event).catch(Cu.reportError);">
      <menupopup>
        <!-- Static item for special folders -->
        <menuitem id="editBMPanel_toolbarFolderItem"
                  class="menuitem-iconic folder-icon"/>
        <menuitem id="editBMPanel_bmRootItem"
                  class="menuitem-iconic folder-icon"/>
        <menuitem id="editBMPanel_unfiledRootItem"
                  class="menuitem-iconic folder-icon"/>
        <menuseparator id="editBMPanel_chooseFolderSeparator"/>
        <menuitem id="editBMPanel_chooseFolderMenuItem"
                  data-l10n-id="bookmark-overlay-choose"
                  class="menuitem-iconic folder-icon"/>
        <menuseparator id="editBMPanel_foldersSeparator" hidden="true"/>
      </menupopup>
    </menulist>
    <button id="editBMPanel_foldersExpander"
            class="expander-down panel-button"
            data-l10n-id="bookmark-overlay-folders-expander2"
            oncommand="gEditItemOverlay.toggleFolderTreeVisibility();"/>
  </hbox>

  <vbox id="editBMPanel_folderTreeRow"
        class="hideable"
        hidden="true">
    <!-- editBMPanel_folderTree will go here when this is shown -->
    <hbox id="editBMPanel_newFolderBox">
      <button data-l10n-id="bookmark-overlay-new-folder-button"
              id="editBMPanel_newFolderButton"
              oncommand="gEditItemOverlay.newFolder().catch(Cu.reportError);"/>
    </hbox>
  </vbox>

  <label data-l10n-id="bookmark-overlay-tags-2"
         class="editBMPanel_tagsRow hideable"
         control="editBMPanel_tagsField"/>
  <hbox class="editBMPanel_tagsRow hideable">
    <html:input id="editBMPanel_tagsField"
                type="text"
                is="autocomplete-input"
                style="flex: 1;"
                autocompletesearch="places-tag-autocomplete"
                autocompletepopup="editBMPanel_tagsAutocomplete"
                completedefaultindex="true"
                completeselectedindex="true"
                tabscrolling="true"
                data-l10n-id="bookmark-overlay-tags-empty-description"
                data-l10n-attrs="placeholder"
                aria-describedby="tags-field-info"
                onchange="gEditItemOverlay.onTagsFieldChange();"/>
    <popupset>
      <panel is="autocomplete-richlistbox-popup"
             type="autocomplete-richlistbox"
             id="editBMPanel_tagsAutocomplete"
             role="group"
             noautofocus="true"
             hidden="true"
             overflowpadding="4"
             norolluponanchor="true"
             nomaxresults="true"/>
    </popupset>
    <button id="editBMPanel_tagsSelectorExpander"
            class="expander-down panel-button"
            data-l10n-id="bookmark-overlay-tags-expander2"
            oncommand="gEditItemOverlay.toggleTagsSelector().catch(Cu.reportError);"/>
  </hbox>

  <div id="tags-field-info"
       class="editBMPanel_tagsRow caption-label hideable"
       data-l10n-id="bookmark-overlay-tags-caption-label"/>

  <div id="editBMPanel_tagsSelectorRow"
       class="hideable"
       hidden="true">
    <richlistbox id="editBMPanel_tagsSelector" styled="true"/>
  </div>

  <label data-l10n-id="bookmark-overlay-keyword-2"
         class="editBMPanel_keywordRow hideable"
         control="editBMPanel_keywordField"/>
  <html:input id="editBMPanel_keywordField"
              class="editBMPanel_keywordRow hideable"
              type="text"
              aria-describedby="keyword-field-info"
              onchange="gEditItemOverlay.onKeywordFieldChange();"/>

  <div id="keyword-field-info"
       class="editBMPanel_keywordRow caption-label hideable"
       data-l10n-id="bookmark-overlay-keyword-caption-label-2"/>
</div>