Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated for MT 4.1, style and layout wise

  • Loading branch information...
commit c172de192df8389c6f114960e6a855263be1381f 1 parent 335692b
@rayners rayners authored
View
91 plugins/Workflow/tmpl/edit_workflow_step.tmpl
@@ -1,7 +1,15 @@
<mt:setvarblock name="page_title"><__trans phrase="Edit Workflow Step"></mt:setvarblock>
<$mt:setvar name="position_actions_bottom" value="1"$>
-<mt:include name="include/header.tmpl">
-
+<mt:if name="id">
+<mt:setvarblock name="object_nav">
+<ul class="object-nav">
+ <li id="previous-link"><mt:if name="previous_step_id"><a href="<$mt:var name="script_url"$>?__mode=view&amp;_type=<$mt:var name="object_type" lower_case="1"$>&amp;id=<$mt:var name="previous_step_id"$>&amp;blog_id=<$mt:var name="blog_id"$>"><__trans phrase="&laquo; Previous"></a><mt:else><span><__trans phrase="Previous"></span></mt:if></li>
+ <li id="manage-link"><a href="<$mt:var name="script_url"$>?__mode=list_<$mt:var name="object_type" lower_case="1"$>&amp;blog_id=<$mt:var name="blog_id"$>"><__trans phrase="Manage [_1]" params="<$mt:var name="object_label_plural"$>"></a></li>
+ <li id="next-link" style='border-right: none'><mt:if name="next_step_id"><a href="<$mt:var name="script_url"$>?__mode=view&amp;_type=<$mt:var name="object_type" lower_case="1"$>&amp;id=<$mt:var name="next_step_id"$>&amp;blog_id=<$mt:var name="blog_id"$>"><__trans phrase="Next &raquo;"></a><mt:else><span><__trans phrase="Next"></span></mt:if></li>
+</ul>
+</mt:setvarblock>
+</mt:if>
+<mt:setvarblock name="form_header">
<form method="post" action="<mt:var name="script_url">" onsubmit="return validate(this)">
<input type="hidden" name="blog_id" value="<mt:var name="blog_id">" />
<input type="hidden" name="__mode" value="save" />
@@ -11,18 +19,40 @@
<input type="hidden" name="magic_token" value="<mt:var name="magic_token">" />
<input type="hidden" name="order" value="<mt:var name="order">" />
-
- <mt:if name="id">
- <div id="entry-nav" class="pkg">
- <ul class="inline-nav right">
- </ul>
- <ul class="inline-nav left">
- <li id="previous-link"><mt:if name="previous_step_id"><a href="<$mt:var name="script_url"$>?__mode=view&amp;_type=<$mt:var name="object_type" lower_case="1"$>&amp;id=<$mt:var name="previous_step_id"$>&amp;blog_id=<$mt:var name="blog_id"$>"><__trans phrase="&laquo; Previous"></a><mt:else><__trans phrase="&laquo; Previous"></mt:if></li>
- <li><a href="<$mt:var name="script_url"$>?__mode=list_<$mt:var name="object_type" lower_case="1"$>&amp;blog_id=<$mt:var name="blog_id"$>"><__trans phrase="Manage [_1]" params="<$mt:var name="object_label_plural"$>"></a></li>
- <li id="next-link" style='border-right: none'><mt:if name="next_step_id"><a href="<$mt:var name="script_url"$>?__mode=view&amp;_type=<$mt:var name="object_type" lower_case="1"$>&amp;id=<$mt:var name="next_step_id"$>&amp;blog_id=<$mt:var name="blog_id"$>"><__trans phrase="Next &raquo;"></a><mt:else><__trans phrase="Next &raquo;"></mt:if></li>
- </ul>
- </div>
- </mt:if>
+</mt:setvarblock>
+
+<mt:setvarblock name="related_content">
+<mtapp:widget
+ id="step-role-widget"
+ label="Roles">
+ <ul>
+ <mt:loop name="roles">
+ <li><input type="checkbox" class="cb" id="role_id_<mt:var name="role_id">" name="role_id" value="<mt:var name="role_id">"<mt:if name="role_checked"> checked="checked"</mt:if> /> <mt:var name="role_name"></li>
+ </mt:loop>
+ </ul>
+</mtapp:widget>
+<mtapp:widget
+ id="step-author-widget"
+ label="Authors">
+ <ul>
+ <mt:loop name="authors">
+ <li><input type="checkbox" class="cb" id="author_id_<mt:var name="author_id">" name="author_id" value="<mt:var name="author_id">"<mt:if name="author_checked"> checked="checked"</mt:if> /> <mt:var name="author_name"></li>
+ </mt:loop>
+ </ul>
+</mtapp:widget>
+</mt:setvarblock>
+
+<mt:setvartemplate name="action_buttons">
+ <button
+ type="submit"
+ accesskey="s"
+ title="<__trans phrase="Save changes to this [_1] (s)" params="<mt:var name="object_label" lower_case="1">">"
+ class="primary-button"
+ ><__trans phrase="Save Changes"></button>
+</mt:setvartemplate>
+
+<mt:include name="include/header.tmpl" id="header_include">
+
<mt:include name="include/actions_bar.tmpl" hide_pager="1">
<fieldset>
@@ -41,36 +71,9 @@
</mtapp:setting>
</fieldset>
-<mt:setvarblock name="action_buttons">
- <button
- type="submit"
- accesskey="s"
- title="<__trans phrase="Save changes to this [_1] (s)" params="<mt:var name="object_label" lower_case="1">">"
- class="primary-button"
- ><__trans phrase="Save Changes"></button>
-</mt:setvarblock>
-
-<fieldset id="publishing-field">
- <h3>Roles</h3>
- <ul>
- <mt:loop name="roles">
- <li><input type="checkbox" class="cb" id="role_id_<mt:var name="role_id">" name="role_id" value="<mt:var name="role_id">"<mt:if name="role_checked"> checked="checked"</mt:if> /> <mt:var name="role_name"></li>
- </mt:loop>
- </ul>
-
-</fieldset>
-
-<fieldset id="feedback-field">
- <h3>Authors</h3>
- <ul>
- <mt:loop name="authors">
- <li><input type="checkbox" class="cb" id="author_id_<mt:var name="author_id">" name="author_id" value="<mt:var name="author_id">"<mt:if name="author_checked"> checked="checked"</mt:if> /> <mt:var name="author_name"></li>
- </mt:loop>
- </ul>
-</fieldset>
-
-<mt:include name="include/actions_bar.tmpl" bar_position="bottom" hide_pager="1" settings_bar="1">
+<mt:include name="include/actions_bar.tmpl" bar_position="bottom" hide_pager="1">
+<mt:setvarblock name="form_footer">
</form>
-
+</mt:setvarblock>
<mt:include name="include/footer.tmpl">
View
5 plugins/Workflow/tmpl/list_workflow_step.tmpl
@@ -1,6 +1,5 @@
<mt:setvarblock name="page_title"><__trans phrase="Edit Workflow"></mt:setvarblock>
-<mt:include name="include/header.tmpl">
<mt:setvarblock name="action_buttons">
<a href="javascript:void(0)"
onclick="doRemoveItems(getByID('<$mt:var name="object_type"$>-listing-form'), '<mt:var name="object_label" lower_case="1" escape="js">', '<mt:var name="object_label_plural" lower_case="1" escape="js">'); return false;"
@@ -8,8 +7,10 @@
title="<__trans phrase="Delete selected [_1] (x)" params="<mt:var name="object_label_plural">">"
><__trans phrase="Delete"></a>
</mt:setvarblock>
+<mt:setvarblock name="content_header">
<p id="create-new-link"><a href="<$mt:var name="mt_url"$>?__mode=view&amp;_type=<mt:var name="object_type">&amp;blog_id=<$mt:var name="blog_id"$>" class="icon-left icon-create"><__trans phrase="Create [_1] at the end" params="<mt:var name="object_label" lower_case="1">"></a></p>
-
+</mt:setvarblock>
+<mt:include name="include/header.tmpl">
<mtapp:listing>
<mt:if __first__>
<thead>
Please sign in to comment.
Something went wrong with that request. Please try again.