root/branches/release-34/tmpl/cms/dialog/publishing_profile.tmpl @ 1877

Revision 1877, 5.9 kB (checked in by bchoate, 20 months ago)

Updates to support publish profile dialog operation. BugId:76495

Line 
1<mt:var name="page_title" value="<__trans phrase="Publishing Profile">">
2
3<mt:setvarblock name="html_head" append="1">
4<script type="text/javascript" src="<mt:var name="static_uri">js/dialog.js"></script>
5<script type="text/javascript">
6/* <![CDATA[ */
7var dialog;
8var panels;
9function dialog_closed(ok) {
10    if (ok) {
11        // fill out form and submit to create the association
12        var frm = getByID("publishing_profiles_form");
13        frm.submit();
14    } else {
15        closeDialog();
16    }
17}
18function init() {
19    dialog = new Dialog.MultiPanel("profile");
20    panels = [];
21    var panel;
22    panel = new ListingPanel("profile");
23    panels[panels.length] = panel;
24    panel = new ListingPanel("confirm");
25    panels[panels.length] = panel;
26    dialog.setPanels(panels);
27    dialog.open({}, dialog_closed);
28}
29TC.attachLoadEvent(init);
30/* ]]> */
31</script>
32</mt:setvarblock>
33
34<mt:include name="dialog/header.tmpl">
35<form name="publishing_profiles_form" id="publishing_profiles_form" method="post" action="<mt:var name="script_url">" target="_top" onsubmit="return false">
36    <input type="hidden" name="blog_id" value="<mt:var name="blog_id">" />
37    <input type="hidden" name="__mode" value="save" />
38    <input type="hidden" name="_type" value="blog" />
39    <input type="hidden" name="id" value="<mt:var name="blog_id">" />
40    <input type="hidden" name="cfg_screen" value="cfg_publish_profile" />
41    <input type="hidden" name="return_args" value="<mt:var name="return_args" escape="html">" />
42    <input type="hidden" name="magic_token" value="<mt:var name="magic_token">" />
43
44    <div id="profile-panel" class="hidden panel">
45
46        <p><__trans phrase="Choose the profile that best matches the requirements for this blog."></p>
47
48        <mtapp:setting
49            id="dynamicity"
50            label="<__trans phrase="Publishing Profile">"
51            show_label="0"
52            label_class="top-label"
53            help_page="blog_settings_publishing"
54            help_section="dynamic_publishing">
55            <ul>
56                <li>
57                    <input type="radio" id="dynamicity-sync" name="dynamicity" value="none" <mt:if name="dynamicity" eq="none"> checked="checked"</mt:if>/>
58                    <label for="dynamicity-sync"><__trans phrase="Static Publishing"> <span class="hint"><__trans phrase="Publish all files statically."></span></label>
59                </li>
60                <li>
61                    <input type="radio" id="dynamicity-async" name="dynamicity" value="async_all" <mt:if name="dynamicity" eq="async_all"> checked="checked"</mt:if>/>
62                    <label for="dynamicity-async"><__trans phrase="Asynchronous Publishing"> <span class="hint"><__trans phrase="Publish all files via the asynchronous job queue."></span></label>
63                </li>
64                <li>
65                    <input type="radio" id="dynamicity-partialasync" name="dynamicity" value="async_partial" <mt:if name="dynamicity" eq="async_partial"> checked="checked"</mt:if>/>
66                    <label for="dynamicity-partialasync"><__trans phrase="High Priority Static Publishing"> <span class="hint"><__trans phrase="Publish main index template and all individual archive templates statically, and publish all other files asynchronously."></span></label>
67                </li>
68                <li>
69                    <input type="radio" id="dynamicity-dynamic" name="dynamicity" value="all" <mt:if name="dynamicity" eq="all"> checked="checked"</mt:if>/>
70                    <label for="dynamicity-dynamic"><__trans phrase="Dynamic Publishing"> <span class="hint"><__trans phrase="Publish all files dynamically."></span></label>
71                </li>
72                <li>
73                    <input type="radio" id="dynamicity-archives" name="dynamicity" value="archives" <mt:if name="dynamicity" eq="archives"> checked="checked"</mt:if>/>
74                    <label for="dynamicity-archives"><__trans phrase="Dynamic Archives Only"> <span class="hint"><__trans phrase="Publish all archives dynamically. Publish all other files statically."></span></label>
75                </li>
76            </ul>
77        </mtapp:setting>
78        <div class="actions-bar">
79            <div class="actions-bar-inner pkg actions">
80                <button
81                    type="submit"
82                    accesskey="s"
83                    class="primary-button next"
84                    ><__trans phrase="Continue"></button>
85                <button
86                    onclick="closeDialog(); return false"
87                    type="submit"
88                    class="cancel"
89                    accesskey="x"
90                    title="<__trans phrase="Cancel (x)">"
91                    ><__trans phrase="Cancel"></button>
92            </div>
93        </div>
94    </div>
95    <div id="confirm-panel" class="hidden panel">
96        <p><__trans phrase="This new publishing profile will update all of your templates."></p>
97
98        <p><strong><__trans phrase="Are you sure you wish to continue?"></strong></p>
99
100        <div class="actions-bar">
101            <div class="actions-bar-inner pkg actions">
102                <button
103                    type="button"
104                    accesskey="s"
105                    class="primary-button close"
106                    ><__trans phrase="Confirm"></button>
107                <button
108                    onclick="closeDialog(); return false"
109                    type="submit"
110                    class="cancel"
111                    accesskey="x"
112                    title="<__trans phrase="Cancel (x)">"
113                    ><__trans phrase="Cancel"></button>
114                <!-- <button
115                    onclick="toggleHidden('confirm-panel'); toggleHidden('refresh-panel'); return false"
116                    type="submit"
117                    accesskey="b"
118                    title="<__trans phrase="Back (b)">"
119                    ><__trans phrase="Back"></button> -->
120            </div>
121        </div>
122
123    </div>
124
125</form>
126
127<mt:include name="dialog/footer.tmpl">
Note: See TracBrowser for help on using the browser.