]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 344559: Add Commit Button below the top fields on show_bug.cgi
authorguy.pyrzak%gmail.com <>
Fri, 30 Jan 2009 00:50:48 +0000 (00:50 +0000)
committerguy.pyrzak%gmail.com <>
Fri, 30 Jan 2009 00:50:48 +0000 (00:50 +0000)
Patch By Guy Pyrzak <guy.pyrzak@gmail.com> r=mkanat, a=mkanat

skins/standard/show_bug.css
template/en/default/bug/edit.html.tmpl

index e21cad1b8e86c7a18bef4263b7e6c331c2118a25..17ce9afd028781b783ea8af717ef553c86ff0489 100644 (file)
@@ -66,6 +66,6 @@
     margin-bottom: 3ex;
 }
 
-#knob-buttons {
+.knob-buttons {
     float: right;
 }
index bb80fc1ad468bd898d9be98b2af58e1f87bbb1a3..97a2bd54fc682575a65982ec7d260f4a661a0393 100644 (file)
@@ -1,4 +1,4 @@
-[%# The contents of this file are subject to the Mozilla Public
+[%# The contents of this file are subject to the Mozilla Public
   # License Version 1.1 (the "License"); you may not use this file
   # except in compliance with the License. You may obtain a copy of
   # the License at http://www.mozilla.org/MPL/
                      cols      = constants.COMMENT_COLS
           %]
           <br>
-          <div id="knob-buttons">
-            <input type="submit" value="Commit" id="commit">
-            [% IF bug.user.canmove %]
-              <input type="submit" name="action" id="action" value="[% Param("move-button-text") %]">
-            [% END %]
-          </div>
+          [% PROCESS commit_button id=""%]
           <table class="status" cellspacing="0" cellpadding="0">
             <tr>
               <td class="field_label">
 [% BLOCK section_title %]
   [%# That's the main table, which contains all editable fields. %]
   <div class="bz_alias_short_desc_container">
-    
+      [% PROCESS commit_button id="_top"%]
      <a href="show_bug.cgi?id=[% bug.bug_id %]">
         <b>[% terms.Bug %]&nbsp;[% bug.bug_id FILTER html %]</b></a> - 
      <span id="summary_alias_container" class="bz_default_hidden"> 
   [% value = undef %]
   [% spellcheck = undef %]
 [% END %]
+[% BLOCK commit_button %]
+  <div class="knob-buttons">
+    <input type="submit" value="Commit" id="commit[% id FILTER css_class_quote %]">
+    [% IF bug.user.canmove %]
+      <input type="submit" name="action" id="action[% id FILTER css_class_quote %]" value="[% Param("move-button-text") %]">
+    [% END %]
+  </div>
+[% END %]