Skip to content

Commit 7930c77

Browse files
committed
ui changes
1 parent 1b8b50e commit 7930c77

5 files changed

Lines changed: 90 additions & 157 deletions

File tree

‎survey/src/main/java/org/ankur/survey/controller/SearchSurveyController.java‎

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package org.ankur.survey.controller;
22

3-
import java.util.ArrayList;
43
import java.util.List;
54

65
import javax.inject.Inject;
@@ -28,28 +27,9 @@ public SearchSurveyResponseWrapper addSurvey(
2827

2928
SearchSurveyResponseWrapper searchSurveyResponseWrapper = new SearchSurveyResponseWrapper();
3029

31-
List<SearchSurveyResponse> searchSurveyResponses = new ArrayList<SearchSurveyResponse>();
32-
33-
SearchSurveyResponse searchSurveyResponse1 = new SearchSurveyResponse(
34-
"ankur1", "issueType1", "1", "3", "feedback1", "optional1");
35-
SearchSurveyResponse searchSurveyResponse2 = new SearchSurveyResponse(
36-
"ankur2", "issueType2", "3", "1", "feedback2", "optional2");
37-
SearchSurveyResponse searchSurveyResponse3 = new SearchSurveyResponse(
38-
"ankur3", "issueType3", "4", "1", "feedback3", "optional3");
39-
SearchSurveyResponse searchSurveyResponse4 = new SearchSurveyResponse(
40-
"ankur4", "issueType2", "2", "2", "feedback4", "optional4");
41-
42-
searchSurveyResponses.add(searchSurveyResponse1);
43-
searchSurveyResponses.add(searchSurveyResponse2);
44-
searchSurveyResponses.add(searchSurveyResponse3);
45-
searchSurveyResponses.add(searchSurveyResponse4);
46-
47-
searchSurveyResponseWrapper
48-
.setSearchSurveyResponseList(searchSurveyResponses);
49-
50-
List<SearchSurveyResponse> ssr = adminServiceImpl
30+
List<SearchSurveyResponse> searchSurveyResponses = adminServiceImpl
5131
.fetchSurveyDataFilterBased(searchSurveyRequest);
52-
System.out.println(ssr);
32+
searchSurveyResponseWrapper.setSearchSurveyResponseList(searchSurveyResponses);
5333
return searchSurveyResponseWrapper;
5434
}
5535

‎survey/src/main/webapp/css/application/survey.css‎

Lines changed: 18 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,31 @@
1010
padding-left: 5px !important;
1111
}
1212

13-
.boldText {
14-
font-family: 'Oswald', sans-serif;
15-
font-weight: 400;
16-
font-size: 16px;
17-
color: #212121;
13+
.welcomeDiv{
14+
background-color: #3a20f8;
15+
height:20px;
1816
}
1917

20-
.nav>li>a:hover {
18+
.alertDiv{
19+
background-color: #f8cd20;
20+
height:40px;
21+
margin-top:15px;
22+
}
23+
24+
.marginDiv{margin-top:15px;}
25+
26+
.separator{border-bottom:1px solid #d6d6d6;margin-top:2px;}
27+
28+
.borderDiv{border:1px solid black;padding: 5px 0px 5px 2px;margin-top:15px;}
29+
30+
.boldText {
2131
font-family: 'Oswald', sans-serif;
2232
font-weight: 400;
2333
font-size: 16px;
2434
color: #212121;
2535
}
2636

37+
2738
.lightText {
2839
font-family: 'Oswald', sans-serif;
2940
font-weight: 400;
@@ -36,45 +47,11 @@
3647
color: #bababa;
3748
}
3849

39-
.div2 {
40-
background-color: #FFFFFF;
41-
min-height: 211px;
42-
/* min-width: 293px; */
43-
}
44-
45-
.div2_lead {
46-
background-color: #FFFFFF;
47-
min-height: 380px;
48-
/* min-width: 293px; */
49-
}
50-
5150
.nopadding {
5251
padding-left: 2%;
5352
padding-right: 2%;
5453
}
5554

56-
.greenText {
57-
font-family: 'Oswald', sans-serif;
58-
font-weight: 400;
59-
font-size: 18px;
60-
color: #09775e;
61-
}
62-
63-
.greyBackground {
64-
background-color: #eeeeee;
65-
padding: 1% 1% 1% 1%;
66-
float: left;
67-
margin: 0px 12px 1px;
68-
width: 92%;
69-
}
70-
71-
.fullpadding {
72-
padding-left: 10%;
73-
padding-right: 10%;
74-
padding-top: 10%;
75-
padding-bottom: 10%;
76-
}
77-
7855
.text_align_right {
7956
text-align: right;
8057
}
@@ -121,39 +98,13 @@ g text{font-family: 'Oswald', sans-serif !important; }
12198
color: #666666;
12299
}
123100

124-
.nv-label:nth-child(1) {
125-
transform: translate(0px, -2px);
126-
);
127-
}
128-
129-
.nv-label:nth-child(2) {
130-
transform: translate(0px, 16px);
131-
);
132-
}
133-
134101
.boldTextHeading {
135102
font-family: 'Oswald', sans-serif;
136103
font-weight: 400;
137-
font-size: 18px;
104+
font-size: 30px;
138105
color: #212121;
139106
}
140107

141-
.medium_block {
142-
min-width: 320px;
143-
}
144-
145-
.small_block {
146-
/* min-width:180px; */
147-
background-color: #FFFFFF;
148-
min-height: 80px;
149-
}
150-
151-
.small_block_cities {
152-
/* min-width:180px; */
153-
background-color: #FFFFFF;
154-
min-height: 150px;
155-
}
156-
157108
.the-word-break {
158109
overflow-wrap: break-word;
159110
}

‎survey/src/main/webapp/htm/application/admin.htm‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<button class="btn btn-primary" ng-click="validateSuperAdmin()">Submit</button>
1010
</div>
1111

12-
<div ng-show="{{isSuperAdmin}}">
12+
<div ng-show="isSuperAdmin">
1313
<p class="show-input input-group pull-left">
1414
<input type="text" class="pull-left" uib-datepicker-popup="dd/MM/yyyy" ng-model="fromDate" is-open="dpOpenStatus.withoutRequired" />
1515
<span class="pull-left">
@@ -32,6 +32,6 @@
3232

3333
</div>
3434

35-
<div ng-show="{{isSuperAdmin}}" class="gridStyle" ng-grid="gridOptions">
35+
<div ng-show="isSuperAdmin" class="gridStyle" ng-grid="gridOptions">
3636

3737
</div>

‎survey/src/main/webapp/htm/application/survey.htm‎

Lines changed: 67 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,26 @@
55
<img src="images/loading.gif" />
66
</div>
77

8-
<div class="clear_both">
9-
<span>Welcome {{username}}</span>&nbsp; &nbsp;
8+
<div class="welcomeDiv clear_both row-fluid">
9+
<div class="col-md-10">
10+
<span class="pull-right">Welcome {{username}}</span>&nbsp; &nbsp;
11+
</div>
12+
<div class="col-md-2"></div>
1013
</div>
1114

12-
<div class="clear_both">
15+
<div class="clear_both boldTextHeading">
1316
<span>Customer Satisfaction Survey</span>&nbsp; &nbsp;
1417
</div>
1518

16-
<div class="clear_both">
17-
<span>Customer Satisfaction Survey related to resolution of
18-
issue</span>&nbsp; &nbsp;
19+
<div class="clear_both row-fluid separator">
1920
</div>
20-
21-
<div class="clear_both">
21+
22+
<div class="clear_both borderDiv lightText">
2223
<span>Customer Satisfaction Survey related to resolution of
2324
issue</span>&nbsp; &nbsp;
24-
</div>
25+
</div>
2526

26-
<div class='alert sensitive-info-banner'>
27+
<div class='alertDiv'>
2728

2829
Do not respond to any surveys asking for sensitive information such as
2930
passport numbers, employee performance feedback etc. If you have any
@@ -38,75 +39,77 @@
3839

3940
<div>
4041

41-
<div class="col-md-3 greyText" >
42-
<label class="lable-align">1: What Builder Tools Product was your issue related to? choose one</label>
43-
44-
<label> <input type="radio" value = "1" ng-model="issue">A</label><br/>
45-
<label> <input type="radio" value = "2" ng-model="issue">B</label><br/>
46-
<label> <input type="radio" value = "3" ng-model="issue">C</label><br/>
47-
<label> <input type="radio" value = "0" ng-model="issue">Others</label><br/>
42+
<div class="row-fluid marginDiv boldText">
43+
<label class="lable-align">1: What Builder Tools Product was your issue related to? choose one</label>
44+
45+
<div class="row-fluid lightText" >
46+
<label> <input type="radio" value = "1" ng-model="issue">&nbsp;&nbsp;A</label><br/>
47+
<label> <input type="radio" value = "2" ng-model="issue">&nbsp;&nbsp;B</label><br/>
48+
<label> <input type="radio" value = "3" ng-model="issue">&nbsp;&nbsp;C</label><br/>
49+
<label> <input type="radio" value = "0" ng-model="issue">&nbsp;&nbsp;Others</label><br/>
50+
</div>
4851
</div>
4952

50-
<div class="col-md-3 greyText" >
51-
<label class="lable-align">2. Issue Support: How satisfied were you on a scale of 1-4,
52-
(1 being least satisfied and 4 being most satisfied) with the following:</label>
53+
<div class="row-fluid boldText marginDiv">
54+
<label class="lable-align">2. Issue Support: How satisfied were you on a scale of 1-4,
55+
(1 being least satisfied and 4 being most satisfied) with the following:</label>
56+
57+
<table class="table table-striped grid-question-table lightText"
58+
style="width: 55%">
5359

54-
<table class="table table-striped grid-question-table"
55-
style="width: 55%">
56-
57-
<thead>
58-
<tr>
59-
<th></th>
60-
<th style="text-align: center;">1 - Much Worse than I would
61-
like. Very Disappointed :[</th>
62-
<th style="text-align: center;">2 - Worse than I would like
63-
and not happy :(</th>
64-
<th style="text-align: center;">3 - Happy but still room for
65-
improvement :)</th>
66-
<th style="text-align: center;">4 - Awesome :]</th>
67-
</tr>
68-
</thead>
60+
<thead>
61+
<tr>
62+
<th></th>
63+
<th style="text-align: center;">1 - Much Worse than I would
64+
like. Very Disappointed :[</th>
65+
<th style="text-align: center;">2 - Worse than I would like
66+
and not happy :(</th>
67+
<th style="text-align: center;">3 - Happy but still room for
68+
improvement :)</th>
69+
<th style="text-align: center;">4 - Awesome :]</th>
70+
</tr>
71+
</thead>
6972

70-
<tbody>
71-
<tr>
72-
<td>With the teams overall handling of your issue?</td>
73-
<td class="centered"><input type="radio"
74-
ng-model="servicerating" id="2_0_0" value="1" /></td>
75-
<td class="centered"><input type="radio"
76-
ng-model="servicerating" id="2_0_1" value="2" /></td>
77-
<td class="centered"><input type="radio"
78-
ng-model="servicerating" id="2_0_2" value="3" /></td>
79-
<td class="centered"><input type="radio"
80-
ng-model="servicerating" id="2_0_3" value="4" /></td>
81-
</tr>
73+
<tbody>
74+
<tr>
75+
<td>With the teams overall handling of your issue?</td>
76+
<td class="centered"><input type="radio"
77+
ng-model="servicerating" id="2_0_0" value="1" /></td>
78+
<td class="centered"><input type="radio"
79+
ng-model="servicerating" id="2_0_1" value="2" /></td>
80+
<td class="centered"><input type="radio"
81+
ng-model="servicerating" id="2_0_2" value="3" /></td>
82+
<td class="centered"><input type="radio"
83+
ng-model="servicerating" id="2_0_3" value="4" /></td>
84+
</tr>
8285

83-
<tr>
84-
<td>With the time it took to resolve your issue?</td>
85-
<td class="centered"><input type="radio"
86-
ng-model="servicetimetating" id="2_1_0" value="1" /></td>
87-
<td class="centered"><input type="radio"
88-
ng-model="servicetimetating" id="2_1_1" value="2" /></td>
89-
<td class="centered"><input type="radio"
90-
ng-model="servicetimetating" id="2_1_2" value="3" /></td>
91-
<td class="centered"><input type="radio"
92-
ng-model="servicetimetating" id="2_1_3" value="4" /></td>
93-
</tr>
94-
</tbody>
95-
</table>
86+
<tr>
87+
<td>With the time it took to resolve your issue?</td>
88+
<td class="centered"><input type="radio"
89+
ng-model="servicetimetating" id="2_1_0" value="1" /></td>
90+
<td class="centered"><input type="radio"
91+
ng-model="servicetimetating" id="2_1_1" value="2" /></td>
92+
<td class="centered"><input type="radio"
93+
ng-model="servicetimetating" id="2_1_2" value="3" /></td>
94+
<td class="centered"><input type="radio"
95+
ng-model="servicetimetating" id="2_1_3" value="4" /></td>
96+
</tr>
97+
</tbody>
98+
</table>
9699
</div>
97100

98-
<div class="col-md-3 greyText" >
99-
<label class="lable-align">3. Please provide any other comments about the support of your issue or about the product. <small>(click and drag in the
101+
<div class="row-fluid boldText marginDiv" >
102+
<label class="lable-align">3. Please provide any other comments about the support of your issue or about the product. <small class="lightText">(click and drag in the
100103
bottom right to resize the text area)</label>
101104
<textarea id="3" rows="6" name="feedback" ng-model = "feedback" style="width: 800px;"></textarea>
102105
</div>
103106

104-
<div class="col-md-3 greyText" >
107+
<div class="row-fluid boldText marginDiv" >
105108
<label class="lable-align">4. [Optional] Link to Issue or TT related to this feedback.</label>
106109
<input type="text" name="optional" ng-model = "optional" value="" /> <br>
107110
</div>
108111

109-
<div>
112+
<div class="row-fluid marginDiv">
110113
<button class="btn btn-primary" ng-click="doSubmitSurvey()">Submit</button>
111114
</div>
112115

‎survey/src/main/webapp/js/application/adminCtrl.js‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ adminCtrl.controller("adminController", function($scope, $rootScope, $http) {
3131
$('#loading_img').hide();
3232

3333
var JSONObject = response.data;
34-
var messageVal = JSONObject["message"];
34+
var messageVal = JSONObject["value"];
3535

3636
if(messageVal == "Success"){
3737
// show here
@@ -61,7 +61,6 @@ adminCtrl.controller("adminController", function($scope, $rootScope, $http) {
6161
data : JSON.stringify(dataObj),
6262
headers : {'Content-Type' : 'application/json'}
6363
}).then(function(response) {
64-
console.log(response);
6564
$('#loading_Overlay').hide();
6665
$('#loading_img').hide();
6766

0 commit comments

Comments
 (0)