source: trunk/plugins/Linker/dialog.html @ 1097

Last change on this file since 1097 was 1097, checked in by nicholasbs, 11 years ago
  • Fixes #58 (configuration of allowed target types)
  • Fixes #1308 (remove link button doesn't work, switching target types causes JS error)
  • Clean up dialog html (remove embedded JavaScript?)
  • Property svn:eol-style set to native
  • Property svn:keywords set to LastChangedDate LastChangedRevision LastChangedBy HeadURL Id
File size: 4.8 KB
Line 
1<h1 id="[h1]"><l10n>Insert/Modify Link</l10n></h1>
2<div style="position:relative">
3<div id="[dTree]">(the dTree goes in here)</div>
4<div id="[options]" >
5  <fieldset>
6    <legend><label><input type="radio" name="[type]" id="[type_url]" value="url" checked="checked" />
7        <l10n>URL Link</l10n>
8    </label></legend>
9    <table id="[urltable]" width="100%">
10      <tr>
11        <th><label for="[href]"><l10n>URL:</l10n> </label></th>
12        <td><input type="text" name="[href]" id="[href]" style="width:100%" value="http://www.example.com/" onfocus="if (this.value == 'http://www.example.com/') this.value = '';" /></td>
13      </tr>
14      <tr style="vertical-align: top;" id="[target_options]">
15        <th><l10n>Target:</l10n></th>
16        <td>
17          <div id="[noTarget]"><label><input type="radio" name="[target]" id="[noTargetRadio]" value="" /> <l10n>Ordinary Link</l10n></label></div>
18          <div id="[sameWindow]"><label><input type="radio" name="[target]" id="[sameWindowRadio]" value="_top" /> <l10n>Same Window (jump out of frames)</l10n></label></div>
19          <div id="[newWindow]"><label><input type="radio" name="[target]" id="[newWindowRadio]" value="_blank" /> <l10n>New Window</l10n> </label></div>
20          <div id="[popupWindow]">
21            <label><input type="radio" name="[target]" id="[popupWindowRadio]" value="popup" /> <l10n>Popup Window</l10n> </label>
22             <div style="padding-left:10px">
23              <table id="[popuptable]">
24                <tr>
25                  <th style="text-align: left;"><l10n>Size:</l10n></th>
26                  <td colspan="3"><input type="text" name="[p_width]" size="4" />x<input type="text" name="[p_height]" size="4" /> <l10n>(px)</l10n></td>
27                </tr>
28                <tr>
29                  <th style="text-align: left;"><l10n>Name:</l10n></th>
30                  <td colspan="3"><input type="text" name="[p_name]" style="width:100%" value="_(PopupWindow)" /></td>
31                </tr>
32                <tr>
33                  <th style="text-align: left;"><l10n>Menu Bar:</l10n></th>
34                  <td><input type="checkbox" name="[p_options]" value="menubar=yes" /></td>
35
36                  <th style="text-align: left;"><l10n>Toolbar:</l10n></th>
37                  <td><input type="checkbox" name="[p_options]" value="toolbar=yes" checked="checked" /></td>
38                </tr>
39                <tr>
40                  <th style="text-align: left;"><l10n>Location Bar:</l10n></th>
41                  <td><input type="checkbox" name="[p_options]" value="location=yes" /></td>
42
43                  <th style="text-align: left;"><l10n>Status Bar:</l10n></th>
44                  <td><input type="checkbox" name="[p_options]" value="status=yes"   /></td>
45                </tr>
46                <tr>
47                  <th style="text-align: left;"><l10n>Scrollbars:</l10n></th>
48                  <td><input type="checkbox" name="[p_options]" value="scrollbars=yes" checked="checked" /></td>
49
50                  <th style="text-align: left;"><l10n>Resizeable:</l10n></th>
51                  <td><input type="checkbox" name="[p_options]" value="resizeable=yes" checked="checked" /></td>
52                </tr>
53              </table>
54            </div>
55          </div>
56        </td>
57      </tr>
58    </table>
59  </fieldset>
60  <fieldset id="[mailtofieldset]">
61    <legend><label><input type="radio" name="[type]" id="[type_mailto]" value="mailto"/>
62        <l10n>Email Link</l10n>
63    </label></legend>
64    <table id="[mailtable]" width="100%">
65      <tr>
66        <th><label for="[to]"><l10n>Email Address:</l10n> </label></th>
67        <td><input type="text" name="[to]" id="[to]" style="width:100%" value="alice@example.com" onfocus="if (this.value == 'alice@example.com') this.value = '';" /></td>
68      </tr>
69      <tr>
70        <th><label for="[subject]"><l10n>Subject:</l10n> </label></th>
71        <td><input type="text" name="[subject]" style="width:100%" value="" /></td>
72      </tr>
73      <tr>
74        <th><label for="[body]"><l10n>Message Template:</l10n> </label></th>
75        <td><textarea name="[body]" style="width:100%" rows="5"></textarea></td>
76      </tr>
77    </table>
78  </fieldset>
79
80  <fieldset id="[anchorfieldset]">
81    <legend><label><input type="radio" name="[type]" id="[type_anchor]" value="anchor"/>
82        <l10n>Anchor-Link</l10n>
83    </label></legend>
84    <table id="[anchortable]" width="100%">
85      <tr>
86        <th><label for="[anchor]"><l10n>Anchor:</l10n> </label></th>
87        <td>
88            <select name="[anchor]" id="[anchor]">
89            </select>
90        </td>
91      </tr>
92    </table>
93  </fieldset>
94
95  <div style="text-align:right">
96    <input type="button" id="[ok]"     value="_(OK)"     />
97    <input type="button" id="[clear]"  value="_(Remove Link)" />
98    <input type="button" id="[cancel]" value="_(Cancel)" />
99  </div>
100</div>
101</div>
102
103
Note: See TracBrowser for help on using the repository browser.