提交 5ad4c4cc 编写于 作者: S Sercan

resolves #30,

used feedback-lite
上级 7d7169b3
......@@ -29,4 +29,3 @@ arch:ace-editor
aldeed:collection2
ephemer:reactive-datatables-modified
#arboleya:electrify # need for desktop packaging only.
email
......@@ -27,7 +27,6 @@ diff-sequence@1.0.1
ecmascript@0.1.6
ecmascript-runtime@0.2.6
ejson@1.0.7
email@1.0.8
ephemer:reactive-datatables-modified@1.1.0
es5-shim@4.1.14
fastclick@1.0.7
......
......@@ -4,4 +4,22 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link href="logo/head_7.png" rel="shortcut icon" type="image/x-icon">
<script type="text/javascript">
var h = document.getElementsByTagName('head')[0];
(function () {
var fc = document.createElement('link');
fc.type = 'text/css';
fc.rel = 'stylesheet';
fc.href = 'https://product.feedbacklite.com/feedbacklite.css';
h.appendChild(fc);
})();
var fbl = {'campaign': {'id': 1321, 'type': 2, 'size': 2, 'position': 10, 'tab': 2, 'control': 1}};
(function () {
var fj = document.createElement('script');
fj.type = 'text/javascript';
fj.async = true;
fj.src = 'https://product.feedbacklite.com/feedbacklite.js';
h.appendChild(fj);
})();
</script>
</head>
\ No newline at end of file
......@@ -12,11 +12,6 @@
</form>
</div>
<ul class="nav navbar-top-links navbar-right">
<li>
<a href="{{pathFor route="feedback"}}">
<i class="fa fa-feed"></i> Leave Feedback
</a>
</li>
<li>
<a href="{{pathFor route="settings"}}">
<i class="fa fa-archive"></i> Settings
......
<template name="feedback">
{{> pageHeading title="Leave Feedback" }}
<div class="wrapper wrapper-content animated fadeIn">
<div class="row">
<div class="col-lg-12">
<div class="ibox float-e-margins">
<div class="ibox-title">
<h5>Feedback
<small class="m-l-sm">Your opinions are important !</small>
</h5>
</div>
<div class="ibox-content">
<form class="form-horizontal">
<div class="form-group">
<label class="col-lg-2 control-label">Email</label>
<div class="col-lg-10">
<input id="inputMail" min="0" required="true" type="email"
placeholder="Your email (will inform you asap)"
class="form-control">
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label">Your message</label>
<div class="col-lg-10">
<textarea id="inputMessage" class="form-control" placeholder="Your message"
rows="5"></textarea>
</div>
</div>
<div class="form-group">
<div class="col-lg-12">
<button id="btnLeaveFeedback"
class="btn btn-block btn-outline btn-primary ladda-button"
type="button"
data-style="contract">
<strong>Send</strong></button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</template>
\ No newline at end of file
/**
* Created by RSercan on 9.3.2016.
*/
Template.feedback.events({
'click #btnLeaveFeedback': function (e) {
e.preventDefault();
var laddaButton = $('#btnLeaveFeedback').ladda();
laddaButton.ladda('start');
Meteor.call('updateSettings', Template.settings.getSettingsFromForm());
toastr.success('Successfuly saved !');
Ladda.stopAll();
}
});
\ No newline at end of file
/**
* Created by RSercan on 19.1.2016.
*/
Router.route('/feedback');
\ No newline at end of file
......@@ -2,21 +2,6 @@
* Created by RSercan on 26.12.2015.
*/
Meteor.methods({
'sendEmail': function (from, text) {
check([from, text], [String]);
// Let other method calls from the same client start running,
// without waiting for the email sending to complete.
this.unblock();
Email.send({
to: 'ozdemirsercan27@gmail.com',
from: from,
subject: 'Mongoclient.com Feedback',
text: text
});
},
'saveQueryHistory': function (history) {
var queryHistoryCount = QueryHistory.find().count({
connectionId: history.connectionId,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册