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

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

bugzid:70065 - Template Listing and Widgets Frontend

  • Property svn:keywords set to Id Revision
Line 
1<mt:setvarblock name="listing_header">
2    <h3><mt:var name="template_type_label"></h3>
3
4    <mt:unless name="template_type" like="/system|email|backup/">
5        <mt:if name="template_type" eq="archive">
6    <p><__trans phrase="Create Archive Template:">
7        &nbsp;
8        <a href="<mt:var name="script_url">?__mode=view&amp;_type=template&amp;type=individual&amp;blog_id=<mt:var name="blog_id">" class="icon-left icon-create"><__trans phrase="Entry"></a>
9        &nbsp;
10        <a href="<mt:var name="script_url">?__mode=view&amp;_type=template&amp;type=archive&amp;blog_id=<mt:var name="blog_id">" class="icon-left icon-create"><__trans phrase="Entry Listing"></a>
11        &nbsp;
12        <a href="<mt:var name="script_url">?__mode=view&amp;_type=template&amp;type=page&amp;blog_id=<mt:var name="blog_id">" class="icon-left icon-create"><__trans phrase="Page"></a>
13    </p>
14        <mt:elseif name="template_type" eq="module">
15    <p><a href="<mt:var name="script_url">?__mode=view&amp;_type=template&amp;type=module&amp;blog_id=<mt:var name="blog_id">" class="icon-left icon-create"><__trans phrase="Create template module"></a></p>
16        <mt:elseif name="template_type" eq="index">
17    <p><a href="<mt:var name="script_url">?__mode=view&amp;_type=template&amp;type=index&amp;blog_id=<mt:var name="blog_id">" class="icon-left icon-create"><__trans phrase="Create index template"></a></p>
18        <mt:elseif name="create_link">
19        <mt:var name="create_link">
20        </mt:if>
21    </mt:unless>
22</mt:setvarblock>
23<mt:setvarblock name="action_buttons">
24    <mt:unless name="template_type" eq="system"><mt:unless name="template_type" eq="email">
25    <a href="javascript:void(0)"
26        onclick="doRemoveItems(getByID('<$mt:var name="template_type"$>-listing-form'), '<__trans phrase="template" escape="js">', '<__trans phrase="templates" escape="js">'); return false;"
27        accesskey="x"
28        title="<__trans phrase="Delete selected [_1] (x)" params="<$mt:var name="object_label_plural"$>">"
29        ><__trans phrase="Delete"></a>
30    </mt:unless></mt:unless>
31</mt:setvarblock>
32<mt:setvarblock name="table_id"><mt:var name="template_type">-listing</mt:setvarblock>
33<mtapp:listing id="$table_id" hide_pager="1" class="show-all" listing_class="show-actions-bar-top">
34    <mt:if __first__>
35        <thead>
36            <tr>
37                <th class="cb"><input type="checkbox" name="id-head" value="all" class="select" /></th>
38                <th class="template-name"><__trans phrase="Template Name"></th>
39        <mt:if name="template_type" eq="index">
40                <th class="output-file"><__trans phrase="Output File"></th>
41        </mt:if>
42        <mt:if name="template_type" eq="archive">
43                <th class="output-file"><__trans phrase="Archive Path"></th>
44        </mt:if>
45        <mt:unless name="blog_view">
46                <th class="blog"><__trans phrase="Blog"></th>
47        </mt:unless>
48        <mt:if name="template_type" like="/(index|archive)/">
49                <th class="publishing-method"><!-- <img src="<mt:var name="static_uri">images/status_icons/dynamic.gif" alt="<__trans phrase="Dynamic Template">" title="<__trans phrase="Publishing Method">" width="11" height="9" /> --><__trans phrase="Publishing"></th>
50        </mt:if>
51        <mt:unless name="screen_id" eq="search-replace">
52                <th class="linked-template si"><img src="<mt:var name="static_uri">images/status_icons/linked.gif" alt="<__trans phrase="Linked Template">" title="<__trans phrase="Linked Template">" width="17" height="9" /></th>
53        </mt:unless>
54            </tr>
55        </thead>
56        <tbody>
57    </mt:if>
58            <tr class="<mt:if name="__odd__">odd<mt:else>even</mt:if> template-<$mt:var name="template_type"$>">
59                <td class="cb"><input type="checkbox" name="id" class="select" value="<mt:var name="id">" /></td>
60                <td class="template-name"><a href="<mt:var name="script_url">?__mode=view&amp;_type=template&amp;id=<mt:var name="id">&amp;blog_id=<mt:var name="blog_id">"><mt:var name="name" escape="html"></a></td>
61    <mt:if name="template_type" like="/(index|archive)/">
62                <td class="output-file">
63        <mt:if name="outfile">
64            <mt:var name="outfile" escape="html"> <mt:if name="published_url"><a href="<mt:var name="published_url">" target="<__trans phrase="_external_link_target">" title="<__trans phrase="View Published Template">"><img src="<mt:var name="static_uri">images/status_icons/view.gif" alt="<__trans phrase="View Published Template">" width="13" height="9" /></a></mt:if>
65        <mt:else name="template_type" eq="archive">
66                    <ul>
67            <mt:loop name="archive_types">
68                <mt:loop name="archive_tmpl_loop">
69                        <li><mt:if name="selected"><mt:var name="name" escape="html"></mt:if></li>
70                </mt:loop>
71            </mt:loop>
72                    </ul>
73        <mt:else>
74                    <span><__trans phrase="-"></span>
75        </mt:if>
76                </td>
77    </mt:if>
78    <mt:unless name="blog_view">
79                <td class="blog"><a href="<$mt:var name="script_url"$>?__mode=list&amp;_type=template&amp;blog_id=<$mt:var name="blog_id"$>"><$mt:var name="weblog_name" escape="html"$></a></td>
80    </mt:unless>
81    <mt:if name="template_type" like="/(index|archive)/">
82                <td class="publishing-method">
83                    <mt:if name="build_type" eq="0"><__trans phrase="Disabled">
84                    <mt:else name="build_type" eq="2"><__trans phrase="Manual">
85                    <mt:else name="build_type" eq="3"><__trans phrase="Dynamic">
86                    <mt:else name="build_type" eq="4"><__trans phrase="Asynchronous">
87                    <mt:else name="build_type" eq="5"><__trans phrase="Scheduled">
88                    <mt:else><__trans phrase="Static">
89                    </mt:if>
90                </td>
91    </mt:if>
92    <mt:unless name="screen_id" eq="search-replace">
93                <td class="linked-template si status-<mt:if name="linked_file">linked<mt:else>unlinked</mt:if>"><img src="<mt:var name="static_uri">images/spacer.gif" alt="<mt:if name="linked_file"><__trans phrase="Yes"><mt:else><__trans phrase="No"></mt:if>" width="9" height="9" <mt:if name="linked_file">title="<mt:var name="linked_file" escape="html">"</mt:if> /></td>
94    </mt:unless>
95            </tr>
96    <mt:if __last__>
97        </tbody>
98    </mt:if>
99</mtapp:listing>
Note: See TracBrowser for help on using the browser.