提交 7d7169b3 编写于 作者: S Sercan
上级 3638b5e0
......@@ -28,4 +28,5 @@ momentjs:moment
arch:ace-editor
aldeed:collection2
ephemer:reactive-datatables-modified
#arboleya:electrify # need for desktop packaging only.
\ No newline at end of file
#arboleya:electrify # need for desktop packaging only.
email
......@@ -27,6 +27,7 @@ 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
......
......@@ -12,6 +12,11 @@
</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,6 +2,21 @@
* 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.
先完成此消息的编辑!
想要评论请 注册