root/branches/release-32/tmpl/cms/include/archive_maps.tmpl @ 1632

Revision 1632, 4.3 kB (checked in by bsmith, 20 months ago)

bugzid:70065 - Template Listing and Widgets Frontend

  • Property svn:keyword set to Id Author Date Revision
Line 
1<mtapp:listing
2    show_actions="0"
3    type="templatemap">
4    <mt:if name="__first__">
5    <thead>
6        <tr>
7            <th class="archive-type"><__trans phrase="Type"></th>
8            <th class="archive-path"><__trans phrase="Path"></th>
9            <th class="publish-options"><__trans phrase="Publish Options"></th>
10            <th class="archive-delete si"><div><span><__trans phrase="Delete"></span></div></th>
11        </tr>
12    </thead>
13    <tbody>
14    </mt:if>
15        <tr id="<mt:var name="map_id">" class="<mt:if name="__odd__">odd<mt:else>even</mt:if>">
16            <td class="archive-type"><mt:var name="archive_label">
17    <mt:if name="has_multiple_archives">
18                <input type="checkbox" name="archive_tmpl_preferred_<mt:var name="archive_type" escape="html">" id="archive_tmpl_preferred_<mt:var name="archive_type" escape="html">_<mt:var name="map_id">"<mt:if name="map_is_preferred"> checked="checked"</mt:if> value="1" onchange="togglePreferred(this, '<mt:var name="map_id">')" /><input type="hidden" name="archive_tmpl_preferred_<mt:var name="archive_type" escape="html">_<mt:var name="map_id">" value="<mt:if name="map_is_preferred">1<mt:else>0</mt:if>" />
19    </mt:if>
20            </td>
21            <td class="archive-path">
22                <select id="archive_file_sel_<mt:var name="map_id">" class="tmpl-path" name="archive_file_sel_<mt:var name="map_id">" onchange="archiveFileSelect(this)">
23    <mt:loop name="archive_tmpl_loop">
24                    <option value="<mt:var name="value" escape="html">"<mt:if name="selected"> selected="selected"</mt:if>><mt:var name="name" escape="html"></option>
25    </mt:loop>
26                    <option value=""><__trans phrase="Custom..."></option>
27                </select><input type="text" id="archive_file_tmpl_<mt:var name="map_id">" class="tmpl-path tmpl-path-custom hidden" name="archive_file_tmpl_<mt:var name="map_id">" value="<mt:var name="file_template" escape="html">" />
28            </td>
29            <td class="publish-options">
30                <select name="build_type" id="build-type" class="half-width">
31                    <option value="1"<mt:if name="build_type_1"> selected="selected"</mt:if>><__trans phrase="Statically"></option>
32
33                <mt:if name="custom_dynamic">
34                    <option value="3"<mt:if name="build_type_3"> selected="selected"</mt:if>><__trans phrase="Dynamically"></option>
35                </mt:if>
36                <mt:if name="publish_queue">
37                    <option value="4"<mt:if name="build_type_4"> selected="selected"</mt:if>><__trans phrase="Asynchronously"></option>
38        <mt:ignore>
39            <!-- untested features -->
40                    <option value="5"<mt:if name="build_type_5"> selected="selected"</mt:if>><__trans phrase="On a schedule"></option>
41                    <mt:ignore>
42                        <!-- This code needs to be shown if the "On a schedule" has been selected -->
43                    <__trans phrase=": every "><input name="schedule_interval" id="schedule_interval" value="<mt:var name="schedule_interval" escape="html">" maxlength="10" class="quarter-width" mt:watch-change="1" />
44                    <select name="schedule_period" id="schedule_period">
45                        <option value="minutes"<mt:if name="schedule_period_minutes"> selected="selected"</mt:if>><__trans phrase="minutes"></option>
46                        <option value="hours"<mt:if name="schedule_period_hours"> selected="selected"</mt:if>><__trans phrase="hours"></option>
47                        <option value="days"<mt:if name="schedule_period_days"> selected="selected"</mt:if>><__trans phrase="days"></option>
48                    </select>
49                    </mt:ignore>
50        </mt:ignore>
51                </mt:if>
52                    <option value="2"<mt:if name="build_type_2"> selected="selected"</mt:if>><__trans phrase="Manually"></option>
53                    <option value="0"<mt:if name="build_type_0"> selected="selected"</mt:if>><__trans phrase="Disabled"></option>
54                </select>
55            </td>
56            <td class="archive-delete si"><a href="javascript:void(0)" onclick="return deleteMap('<mt:var name="map_id">')" class="delete-archive-link"><span><__trans phrase="Delete"></span></a></td>
57        </tr>
58    <mt:if name="__last__">
59    </tbody>
60    </mt:if>
61</mtapp:listing>
Note: See TracBrowser for help on using the browser.