feedy 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/feedy/feedbacks.js +7 -5
- data/app/assets/stylesheets/feedy/application.css +2 -0
- data/app/assets/stylesheets/feedy/feedbacks.css +60 -9
- data/app/helpers/feedy/feedback_helper.rb +1 -1
- data/app/views/feedy/feedbacks/_form.html.erb +14 -12
- data/app/views/layouts/feedy/application.html.erb +6 -4
- data/lib/feedy/version.rb +1 -1
- metadata +15 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c7ba3a486043ae014c3d7e6a5c4cc9b484db2ec
|
4
|
+
data.tar.gz: c28749388fc3c6f76a6ad75a9332f1c229897151
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb519b928ff229bff655e442414df1ac9af1ba41fefe7ce92c8972c4097b6040c0b2bb3f4459e4c6b86b1e87dbd69d3e4458d6dbdce01c35a1eb6a2d9e7d1070
|
7
|
+
data.tar.gz: 6891e35bc8bc348b2039a45a4e127be8732c2335820cf13573e041b55cb59c888514386d3111406c6b2fa7fed701daf24f6b86e6b9917813edd1ea794f97e1b7
|
@@ -1,16 +1,18 @@
|
|
1
1
|
// Place all the behaviors and hooks related to the matching controller here.
|
2
2
|
// All this logic will automatically be available in application.js.
|
3
|
-
|
3
|
+
var ready = function () {
|
4
4
|
// Hide the input when the page loads.
|
5
|
-
$('.feedback-
|
5
|
+
$('.feedback-main').hide();
|
6
6
|
|
7
7
|
$('.feedback-toggle').on('click', function () {
|
8
|
-
$('.feedback-
|
8
|
+
$('.feedback-main').toggle(400);
|
9
9
|
});
|
10
10
|
|
11
11
|
|
12
12
|
// When the form submission is successful
|
13
13
|
$('#feedback-form').on('ajax:success', function (e, data, status, xhr) {
|
14
|
-
$('.feedback-
|
14
|
+
$('.feedback-main').html('Thank you. Your feedback was recorded.');
|
15
15
|
});
|
16
|
-
}
|
16
|
+
};
|
17
|
+
|
18
|
+
$(document).on("page:load ready", ready);
|
@@ -3,20 +3,75 @@
|
|
3
3
|
They will automatically be included in application.css.
|
4
4
|
*/
|
5
5
|
|
6
|
-
@import url(
|
6
|
+
@import url("//fonts.googleapis.com/css?family=Roboto:400,500");
|
7
7
|
|
8
|
-
|
8
|
+
.feedy {
|
9
|
+
font-family: "Roboto","Helvetica Neue",Helvetica,Arial,sans-serif;
|
10
|
+
font-size: 14px;
|
11
|
+
line-height: 1.42857143;
|
12
|
+
color: #3e3f3a;
|
13
|
+
background-color: #ffffff;
|
14
|
+
}
|
15
|
+
|
16
|
+
.feedy textarea {
|
9
17
|
resize: none;
|
10
18
|
}
|
11
19
|
|
12
|
-
.feedback {
|
20
|
+
.feedy .feedback {
|
13
21
|
position: absolute;
|
14
22
|
bottom: 0;
|
15
23
|
right: 0;
|
16
24
|
width: 260px;
|
17
25
|
}
|
18
26
|
|
19
|
-
.feedback-
|
27
|
+
.feedy .feedback-input {
|
28
|
+
display: block;
|
29
|
+
width: 100%;
|
30
|
+
padding: 12px 16px;
|
31
|
+
font-size: 14px;
|
32
|
+
line-height: 1.42857143;
|
33
|
+
color: #3e3f3a;
|
34
|
+
background-color: #ffffff;
|
35
|
+
background-image: none;
|
36
|
+
border: 1px solid #dfd7ca;
|
37
|
+
border-radius: 4px;
|
38
|
+
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
|
39
|
+
box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
|
40
|
+
-webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
|
41
|
+
-o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
|
42
|
+
transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
|
43
|
+
}
|
44
|
+
|
45
|
+
.feedy input[type=text],
|
46
|
+
.feedy textarea {
|
47
|
+
-webkit-box-sizing : border-box;
|
48
|
+
-moz-box-sizing : border-box;
|
49
|
+
box-sizing : border-box;
|
50
|
+
}
|
51
|
+
|
52
|
+
.feedy label {
|
53
|
+
display: inline-block;
|
54
|
+
max-width: 100%;
|
55
|
+
margin-bottom: 5px;
|
56
|
+
font-weight: bold;
|
57
|
+
}
|
58
|
+
|
59
|
+
.feedy .submit-button {
|
60
|
+
border: none;
|
61
|
+
font-size: 11px;
|
62
|
+
line-height: 22px;
|
63
|
+
font-weight: 500;
|
64
|
+
text-transform: uppercase;
|
65
|
+
padding: 5px 10px;
|
66
|
+
border-radius: 3px;
|
67
|
+
color: #ffffff;
|
68
|
+
background-color: #325d88;
|
69
|
+
border-color: transparent;
|
70
|
+
margin-top: 10px;
|
71
|
+
cursor: pointer;
|
72
|
+
}
|
73
|
+
|
74
|
+
.feedy .feedback-toggle {
|
20
75
|
color: #FFF;
|
21
76
|
background-color: #567390;
|
22
77
|
cursor: pointer;
|
@@ -24,11 +79,7 @@ textarea {
|
|
24
79
|
text-align: center;
|
25
80
|
}
|
26
81
|
|
27
|
-
.feedback-
|
82
|
+
.feedy .feedback-main {
|
28
83
|
border: 1px solid #C5C5C5;
|
29
84
|
padding: 10px 18px 20px;
|
30
85
|
}
|
31
|
-
|
32
|
-
.submit-button {
|
33
|
-
margin-top: 10px;
|
34
|
-
}
|
@@ -1,17 +1,19 @@
|
|
1
|
-
<div class="
|
2
|
-
<div class="feedback
|
3
|
-
|
4
|
-
|
1
|
+
<div class="feedy">
|
2
|
+
<div class="feedback">
|
3
|
+
<div class="feedback-toggle">
|
4
|
+
Feedback
|
5
|
+
</div>
|
5
6
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
<div class="feedback-main">
|
8
|
+
<%= form_for :feedback, url: feedy.feedbacks_path, html: { id: 'feedback-form' }, remote: true do |f| %>
|
9
|
+
<%= f.label :subject %>
|
10
|
+
<%= f.text_field :subject, class: 'feedback-input' %>
|
10
11
|
|
11
|
-
|
12
|
-
|
12
|
+
<%= f.label :body, 'Feedback' %>
|
13
|
+
<%= f.text_area :body, rows: 5, class: 'feedback-input' %>
|
13
14
|
|
14
|
-
|
15
|
-
|
15
|
+
<%= f.submit 'Submit', class: 'submit-button' %>
|
16
|
+
<% end %>
|
17
|
+
</div>
|
16
18
|
</div>
|
17
19
|
</div>
|
@@ -6,14 +6,16 @@
|
|
6
6
|
<%= javascript_include_tag "feedy/application" %>
|
7
7
|
<%= csrf_meta_tags %>
|
8
8
|
</head>
|
9
|
-
<body>
|
9
|
+
<body class='feedy'>
|
10
10
|
|
11
11
|
<%= render 'layouts/feedy/header' %>
|
12
12
|
|
13
13
|
<div class="container">
|
14
|
-
|
15
|
-
|
16
|
-
|
14
|
+
<div class="row">
|
15
|
+
<div class="col-md-12">
|
16
|
+
<%= yield %>
|
17
|
+
</div>
|
18
|
+
</div>
|
17
19
|
</div>
|
18
20
|
|
19
21
|
</body>
|
data/lib/feedy/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: feedy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sung Won Cho
|
@@ -24,20 +24,6 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '4.0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: jquery-rails
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: sqlite3
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,6 +108,20 @@ dependencies:
|
|
122
108
|
- - "~>"
|
123
109
|
- !ruby/object:Gem::Version
|
124
110
|
version: 4.5.0
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: jquery-rails
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
125
|
description: Feedy lets you collect and analyze user feedback with ease.
|
126
126
|
email:
|
127
127
|
- mikeswcho@gmail.com
|