From 4c899142d0af52e729e2a3903fbe23e09c309276 Mon Sep 17 00:00:00 2001
From: Stas Vilchik <vilchiks@gmail.com>
Date: Mon, 22 Jun 2015 11:10:30 +0200
Subject: SONAR-5851 apply ui feedback

---
 .../src/main/js/apps/quality-profiles/profile-details-view.js      | 7 +++++++
 .../apps/quality-profiles/templates/quality-profile-changelog.hbs  | 4 ++--
 .../templates/quality-profiles-profile-details.hbs                 | 2 +-
 server/sonar-web/src/main/less/components/select-list.less         | 5 +++++
 4 files changed, 15 insertions(+), 3 deletions(-)

(limited to 'server')

diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/profile-details-view.js b/server/sonar-web/src/main/js/apps/quality-profiles/profile-details-view.js
index 3f9d16f7ea2..108abbf2684 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/profile-details-view.js
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/profile-details-view.js
@@ -57,6 +57,12 @@ define([
       if (this.options.anchor === 'comparison') {
         this.scrollToComparison();
       }
+      this.$('#quality-profile-changelog-form input')
+          .datepicker({
+            dateFormat: 'yy-mm-dd',
+            changeMonth: true,
+            changeYear: true
+          });
     },
 
     initProjectsSelect: function () {
@@ -64,6 +70,7 @@ define([
       this.projectsSelectList = new window.SelectList({
         el: this.$('#quality-profile-projects-list'),
         width: '100%',
+        height: 200,
         readOnly: !this.options.canWrite,
         focusSearch: false,
         format: function (item) {
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/templates/quality-profile-changelog.hbs b/server/sonar-web/src/main/js/apps/quality-profiles/templates/quality-profile-changelog.hbs
index 92d87282448..cde03590a6c 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/templates/quality-profile-changelog.hbs
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/templates/quality-profile-changelog.hbs
@@ -6,9 +6,9 @@
 
 <form class="spacer-bottom" id="quality-profile-changelog-form">
   {{t 'quality_profiles.changelog_from'}}
-  <input name="since" type="text" value="{{eventsParameters.since}}" placeholder="1970-01-31">
+  <input name="since" type="text" value="{{eventsParameters.since}}" placeholder="{{t 'optional'}}">
   {{t 'to'}}
-  <input name="to" type="text" value="{{eventsParameters.to}}" placeholder="1970-01-31">
+  <input name="to" type="text" value="{{eventsParameters.to}}" placeholder="{{t 'optional'}}">
   <button id="quality-profile-changelog-form-submit">{{t 'search_verb'}}</button>
 </form>
 
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/templates/quality-profiles-profile-details.hbs b/server/sonar-web/src/main/js/apps/quality-profiles/templates/quality-profiles-profile-details.hbs
index f1f4a65b5fe..40d3b73153b 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/templates/quality-profiles-profile-details.hbs
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/templates/quality-profiles-profile-details.hbs
@@ -63,7 +63,7 @@
       <p class="alert alert-info">{{t 'quality_profiles.projects_for_default'}}</p>
     {{/if}}
   {{else}}
-    <div id="quality-profile-projects-list"></div>
+    <div id="quality-profile-projects-list" class="select-list-on-full-width"></div>
   {{/if}}
 </div>
 
diff --git a/server/sonar-web/src/main/less/components/select-list.less b/server/sonar-web/src/main/less/components/select-list.less
index 668a0ddeb41..25b35d46c71 100644
--- a/server/sonar-web/src/main/less/components/select-list.less
+++ b/server/sonar-web/src/main/less/components/select-list.less
@@ -211,3 +211,8 @@
   .select-list-search-control-clear:hover {
     background-color: #d6d6d6;
   }
+
+.select-list-on-full-width .select-list-search-control {
+  float: left;
+  margin-left: 20px;
+}
-- 
cgit v1.2.3