source: trunk/templates/missing_metadata.tt @ 1034

Last change on this file since 1034 was 893, checked in by nick, 15 years ago

Don't hard code in wiki.cgi, use the script_name config variable instead

File size: 2.1 KB
Line 
1[% INCLUDE header.tt page_title = "Missing Metadata - $site_name" %]
2[% INCLUDE banner.tt %]
3<div id="content">
4[% INCLUDE navbar.tt %]
5<div id="maincontent">
6<h2>Pages Missing Metadata</h2>
7
8<form method="get" action="[% script_name %]">
9<input type="hidden" name="action" value="show_missing_metadata" />
10<div>
11        <label for="metadata_type">Metadata Type:</label>
12        <select name="metadata_type" id="metadata_type">
13                <option value="category">Category</option>
14                <option value="locale">Locale</option>
15                <option value="address">Address</option>
16                <option value="postcode">Postcode</option>
17                <option value="phone">Telephone Number</option>
18                <option value="latitude">Latitude</option>
19                <option value="longitude">Longitude</option>
20                <option value="os_x">OS X</option>
21                <option value="os_y">OS Y</option>
22        </select>
23        <script type="text/javascript">
24                var metadata_type = document.getElementById("metadata_type");
25                for(var i=0; i<metadata_type.options.length; i++) {
26                        if(metadata_type.options[i].value == '[% metadata_type %]') {
27                                metadata_type.options[i].selected = true;
28                        }
29                }
30        </script>
31</div>
32<div>
33        <label for="metadata_value">Metadata Value:</label>
34        <input name="metadata_value" value="[% metadata_value %]" />
35        &nbsp; &nbsp; &nbsp;
36        <i>Optional, eg 'pub' when metadata value is Category</i>
37</div>
38<div>
39        <label for="exclude_locales">Exclude Locales:</label>
40        <input type="checkbox" name="exclude_locales" [% IF exclude_locales %]checked="true"[% END %] />
41</div>
42<div>
43        <label for="exclude_categories">Exclude Categories:</label>
44        <input type="checkbox" name="exclude_categories" [% IF exclude_categories %]checked="true"[% END %] />
45</div>
46<div>
47        <input type="submit" value="Find Nodes" />
48</div>
49</form>
50
51[% IF done_search %]
52  <h3>Pages</h3>
53  <a name="nodes"></a>
54  <table id="nodes">
55  <tr><th>Node name</th><th>View</th><th>Edit</th></tr>
56    [% FOREACH node = nodes %]
57      <tr>
58       <td><a href="[% node.view_url %]">[% node.name %]</a></td>
59       <td><a href="[% node.view_url %]">view</a></td>
60       <td><a href="[% node.edit_url %]">edit</a></td>
61      </tr>
62    [% END %]
63  </table>
64[% END %]
65
66</div>
67
68[% INCLUDE footer.tt %]
Note: See TracBrowser for help on using the repository browser.