Author: jdreimann
Date: Wed Apr 25 15:17:44 2012
New Revision: 1330335
URL: http://svn.apache.org/viewvc?rev=1330335&view=rev
Log:
Updated styling for quick ticket function.
Modified:
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html
Modified:
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css
URL:
http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css?rev=1330335&r1=1330334&r2=1330335&view=diff
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css
(original)
+++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css
Wed Apr 25 15:17:44 2012
@@ -72,7 +72,10 @@ span:target {
.iefix #rows label,
label + input,
input + label,
-label > input {
+label > input,
+div.inlinebuttons,
+div.reports h2,
+div.reports form {
display: inline;
}
@@ -128,4 +131,80 @@ label > input {
#activityfeed dd {
color: grey;
-}
\ No newline at end of file
+}
+
+div.reports form,
+div.reports .inlinebutton {
+ float: right;
+ margin-bottom: 0px;
+}
+
+div.reports .inlinebutton {
+ margin-left: 10px;
+}
+
+div.reports h2 {
+ font-size: 20px;
+}
+
+/* @group Wiki */
+
+textarea.wikitext {
+ min-width: 600px;
+}
+
+.wiki-toc {
+ float: right;
+ margin-left: 25px;
+ padding: 10px;
+ border: 1px solid #999;
+ border-radius: 10px;
+}
+
+.trac-modifiedby {
+ float: right;
+}
+
+.trac-modifiedby .trac-print {
+ display: none;
+}
+
+/* @end */
+
+
+/* @group Quick Ticket fieldset */
+
+#qct-fieldset {
+ position: relative;
+}
+
+#qct-fieldset .form-horizontal {
+ position: relative;
+ left: -65px;
+}
+
+#qct-fieldset .controls {
+ margin-bottom: 5px;
+}
+
+#qct-fieldset #field-summary {
+ width: 260px;
+}
+
+#qct-box #qct-cancel {
+ display: inline;
+ color: #08C;
+ margin-top: 5px;
+ padding: 5px 15px;
+}
+
+#qct-create {
+ margin-left: 100px;
+}
+
+#qct-cancel {
+ position: relative;
+ top: 5px;
+}
+
+/* @end */
\ No newline at end of file
Modified:
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html
URL:
http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html?rev=1330335&r1=1330334&r2=1330335&view=diff
==============================================================================
---
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html
(original)
+++
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html
Wed Apr 25 15:17:44 2012
@@ -78,7 +78,7 @@
<div class="span4">
<py:def function="field_select(field, value)">
<select id="field-${field.name}" name="field_${field.name}"
- class="input-mini" data-empty="true"
data-field="${field.name}">
+ class="input-medium" data-empty="true"
data-field="${field.name}">
<option py:if="field.optional"></option>
<option py:for="option in field.options"
selected="${value == option or None}"
@@ -94,38 +94,26 @@
</py:def>
<py:def function="qct_box()">
<label for="field-summary">Summary</label>
- <input class="input-medium" type="text" id="field-summary"
+ <input type="text" id="field-summary"
name="field_summary" placeholder="Ticket summary" />
<div class="form-horizontal">
<py:if test="qct.fields.product">
<label class="control-label" for="field-product">Product</label>
<div class="controls">
- <!-- input name="qct_product" class="input-mini" type="text"
- placeholder="Product" / -->
${field_select(qct.fields.product, None)}
- <p class="help-block">Target product</p>
</div>
</py:if>
<label class="control-label" for="field-version">Version</label>
<div class="controls">
- <!-- input name="qct_version" class="input-mini" type="text"
- placeholder="Version" / -->
${field_select(qct.fields.version, None)}
- <p class="help-block">Most recent by default</p>
</div>
<label class="control-label" for="field-type">Type</label>
<div class="controls">
- <!-- input name="qct_type" class="input-mini" type="text"
- placeholder="Type" / -->
${field_select(qct.fields.type, None)}
- <p class="help-block">Select ticket type</p>
</div>
<label class="control-label"
for="field-component">Component</label>
<div class="controls">
- <!-- input name="qct_component" class="input-mini" type="text"
- placeholder="Component" / -->
${field_select(qct.fields.component, None)}
- <p class="help-block">Select component</p>
</div>
</div>
</py:def>
@@ -138,35 +126,17 @@
Create Ticket
</a>
<div id="qct-box" class="dropdown-menu" style="width: 300px;">
- <style>
- #qct-box .help-block { white-space: nowrap; }
- #qct-box .form-horizontal .controls .help-block {
- margin-left: -20px;
- }
- #qct-box .form-horizontal .controls { margin-left: 90px; }
- #qct-box .form-horizontal .control-label { width : 70px; }
- #qct-box .input-mini { width : 100px; }
- </style>
- <div class="popover-title"><a
href="${href.newticket()}"><h3>Create Ticket</h3></a></div>
+ <div class="popover-title">
+ <a href="${href.newticket()}"><h3>Create Ticket</h3></a>
+ </div>
<div class="popover-content">
<form id="qct-form" name="qct" method="post">
<div id="qct-fieldset">
${qct_box()}
</div>
</form>
- <div class="btn-toolbar">
- <div class="btn-group">
- <button id="qct-create" class="btn btn-primary"
- data-target="${href.qct()}">
- Create
- </button>
- </div>
- <div class="btn-group">
- <button id="qct-cancel" class="btn btn-danger">
- Cancel
- </button>
- </div>
- </div>
+ <button id="qct-create" class="btn btn-primary"
data-target="${href.qct()}">Create</button>
+ <a id="qct-cancel">Cancel</a>
</div>
</div>
</div>