| 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[ */ |
|---|
| 7 | var dialog; |
|---|
| 8 | var panels; |
|---|
| 9 | function 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 | } |
|---|
| 18 | function 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 | } |
|---|
| 29 | TC.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 | |
|---|
| 37 | <div id="profile-panel" class="hidden panel"> |
|---|
| 38 | |
|---|
| 39 | <p><__trans phrase="Choose the profile that best matches the requirements for this blog."></p> |
|---|
| 40 | |
|---|
| 41 | <mtapp:setting |
|---|
| 42 | id="dynamicity" |
|---|
| 43 | label="<__trans phrase="Publishing Profile">" |
|---|
| 44 | show_label="0" |
|---|
| 45 | label_class="top-label" |
|---|
| 46 | help_page="blog_settings_publishing" |
|---|
| 47 | help_section="dynamic_publishing"> |
|---|
| 48 | <ul> |
|---|
| 49 | <li> |
|---|
| 50 | <input type="radio" id="dynamicity-sync" name="dynamicity" value="none" <mt:if name="dynamicity" eq="none"> checked="checked"</mt:if>/> |
|---|
| 51 | <label for="dynamicity-sync"><__trans phrase="Static Publishing"> <span class="hint"><__trans phrase="Publish all files statically."></span></label> |
|---|
| 52 | </li> |
|---|
| 53 | <li> |
|---|
| 54 | <input type="radio" id="dynamicity-async" name="dynamicity" value="async_all" <mt:if name="dynamicity" eq="async_all"> checked="checked"</mt:if>/> |
|---|
| 55 | <label for="dynamicity-async"><__trans phrase="Asynchronous Publishing"> <span class="hint"><__trans phrase="Publish all files via the asynchronous job queue."></span></label> |
|---|
| 56 | </li> |
|---|
| 57 | <li> |
|---|
| 58 | <input type="radio" id="dynamicity-partialasync" name="dynamicity" value="async_partial" <mt:if name="dynamicity" eq="async_partial"> checked="checked"</mt:if>/> |
|---|
| 59 | <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> |
|---|
| 60 | </li> |
|---|
| 61 | <li> |
|---|
| 62 | <input type="radio" id="dynamicity-dynamic" name="dynamicity" value="all" <mt:if name="dynamicity" eq="all"> checked="checked"</mt:if>/> |
|---|
| 63 | <label for="dynamicity-dynamic"><__trans phrase="Dynamic Publishing"> <span class="hint"><__trans phrase="Publish all files dynamically."></span></label> |
|---|
| 64 | </li> |
|---|
| 65 | <li> |
|---|
| 66 | <input type="radio" id="dynamicity-archives" name="dynamicity" value="archives" <mt:if name="dynamicity" eq="archives"> checked="checked"</mt:if>/> |
|---|
| 67 | <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> |
|---|
| 68 | </li> |
|---|
| 69 | </ul> |
|---|
| 70 | </mtapp:setting> |
|---|
| 71 | <div class="actions-bar"> |
|---|
| 72 | <div class="actions-bar-inner pkg actions"> |
|---|
| 73 | <button |
|---|
| 74 | type="submit" |
|---|
| 75 | accesskey="s" |
|---|
| 76 | class="primary-button next" |
|---|
| 77 | ><__trans phrase="Continue"></button> |
|---|
| 78 | <button |
|---|
| 79 | onclick="closeDialog(); return false" |
|---|
| 80 | type="submit" |
|---|
| 81 | class="cancel" |
|---|
| 82 | accesskey="x" |
|---|
| 83 | title="<__trans phrase="Cancel (x)">" |
|---|
| 84 | ><__trans phrase="Cancel"></button> |
|---|
| 85 | </div> |
|---|
| 86 | </div> |
|---|
| 87 | </div> |
|---|
| 88 | <div id="confirm-panel" class="hidden panel"> |
|---|
| 89 | <p><__trans phrase="This new publishing profile will update all of you templates."></p> |
|---|
| 90 | |
|---|
| 91 | <p><strong><__trans phrase="Are you sure you wish to continue?"></strong></p> |
|---|
| 92 | |
|---|
| 93 | <div class="actions-bar"> |
|---|
| 94 | <div class="actions-bar-inner pkg actions"> |
|---|
| 95 | <button |
|---|
| 96 | type="button" |
|---|
| 97 | accesskey="s" |
|---|
| 98 | class="primary-button close" |
|---|
| 99 | ><__trans phrase="Confirm"></button> |
|---|
| 100 | <button |
|---|
| 101 | onclick="closeDialog(); return false" |
|---|
| 102 | type="submit" |
|---|
| 103 | class="cancel" |
|---|
| 104 | accesskey="x" |
|---|
| 105 | title="<__trans phrase="Cancel (x)">" |
|---|
| 106 | ><__trans phrase="Cancel"></button> |
|---|
| 107 | <!-- <button |
|---|
| 108 | onclick="toggleHidden('confirm-panel'); toggleHidden('refresh-panel'); return false" |
|---|
| 109 | type="submit" |
|---|
| 110 | accesskey="b" |
|---|
| 111 | title="<__trans phrase="Back (b)">" |
|---|
| 112 | ><__trans phrase="Back"></button> --> |
|---|
| 113 | </div> |
|---|
| 114 | </div> |
|---|
| 115 | |
|---|
| 116 | </div> |
|---|
| 117 | |
|---|
| 118 | </form> |
|---|
| 119 | |
|---|
| 120 | <mt:include name="dialog/footer.tmpl"> |
|---|