trac-mq / bh / dashboard / attach_file_form.diff

BH_Dashboard: Attachments form rewritten using Bootstrap

diff -r 840fda2efd87 trac/templates/attach_file_form.html
--- a/trac/templates/attach_file_form.html	Fri Mar 16 11:00:35 2012 -0500
+++ b/trac/templates/attach_file_form.html	Tue Apr 03 15:06:01 2012 -0500
@@ -9,9 +9,9 @@
       xmlns:py="http://genshi.edgewall.org/"
       xmlns:xi="http://www.w3.org/2001/XInclude"
       xmlns:i18n="http://genshi.edgewall.org/i18n"
-      py:if="alist.can_create" method="get" action="${alist.attach_href}" id="attachfile">
-  <div>
-    <input type="hidden" name="action" value="new" />
-    <input type="submit" name="attachfilebutton" value="${value_of('add_button_title', None) or _('Attach file')}" />
-  </div>
+      py:if="alist.can_create" method="get" action="${alist.attach_href}" id="attachfile" style="display: inline-block">
+  <input type="hidden" name="action" value="new" />
+  <input type="submit" name="attachfilebutton" 
+      value="${value_of('add_button_title', None) or _('Attach file')}" 
+      class="btn" />
 </form>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.