瀏覽代碼

HUE-114. Jar selector for job designer should be a file chooser app not a text box

* also making all art-button links vertical align to top; tested numerous apps to make sure this didn't produce glitches
Aaron Newton 15 年之前
父節點
當前提交
52772a8d9b
共有 2 個文件被更改,包括 6 次插入2 次删除
  1. 1 0
      apps/jobsub/src/jobsub/templates/forms/jar.html
  2. 5 2
      desktop/core/static/css/shared.css

+ 1 - 0
apps/jobsub/src/jobsub/templates/forms/jar.html

@@ -33,6 +33,7 @@ limitations under the License.
 	<dd class="jobsub_paths">
 		<div class="jobsub_input">
 			{{ form.arguments|safe }}
+			<a class="ccs-choose_file" data-filters="ArtButton" data-chooseFor="jarfile">...</a>
 		</div>
 		<p>
 			{{ form.arguments.help_text|safe}}

+ 5 - 2
desktop/core/static/css/shared.css

@@ -102,7 +102,7 @@
 	cursor:pointer;
 }
 /* inline block display; makes elements block level, but follows page flow */
-.ccs-shared .ccs-inline, .ccs-shared ul.css-inline_list li {
+.ccs-shared .ccs-inline, .ccs-shared ul.ccs-inline_list li {
 	display:-moz-inline-box;                /* FF2 */
 	display:inline-block;                   /* webkit and FF3 */
 	#zoom: 1; /* set hasLayout:true to mimic inline-block */
@@ -121,7 +121,7 @@
 	background: url(../art/divots.png) -11px -11px no-repeat;
 }
 /* tabbed layout */
-/* .css-tabs, a ul; container for the tabs 
+/* .ccs-tabs, a ul; container for the tabs 
 
 <ul class="tabs">
 <li><span>Tab 1</span></li>
@@ -427,6 +427,9 @@ input[data-filters*=ArtButton] {
 .ccs-shared [data-filters*=ArtButtonBar] li {
 	margin-right: 0 !important;
 }
+.ccs-shared a[data-filters*=ArtButton] {
+	vertical-align: top;
+}
 /* side by side select */
 
 /*