Skip to content
This repository has been archived by the owner on Aug 21, 2018. It is now read-only.

Commit

Permalink
Issue#103(sync with nation page)
Browse files Browse the repository at this point in the history
  • Loading branch information
umarWaris committed Mar 22, 2016
1 parent 3e78692 commit 0382fe8
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions app/MyApp/app/views/listSyncDbView.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,15 @@ $(function() {
// <input type="checkbox" value="Resources" name="syncData">Resources<br>
//<input type="checkbox" value="Application" name="syncData" >Application<br><br><br>
// added "Members Db" checkbox
var $button = $('<h6>Select Item(\'s) To Sync</h6><br><br><input type="checkbox" value="ActivityReports" name="syncData">Log Activity Reports<br><input type="checkbox" value="Reports" name="syncData">Reports<br><input type="checkbox" value="ResourcesFeedbacks" name="syncData">Resources Feedbacks<br><input type="checkbox" value="ApplicationFeedbacks" name="syncData">Application Feedbacks<br><input type="checkbox" value="MembersDb" name="syncData">Members Database<br><input type="checkbox" value="Surveys" name="syncData">Surveys<br>')
this.$el.append($button)
this.$el.append('<button class="btn btn-info" id="selectAll" style="width:110px">Select All</button><button style="margin-left:10px; width:110px" class="btn btn-success" id="formButton" style="width:110px">Send</button>')
this.$el.append('<button class="btn btn-warning" id="cancelButton" style="width:110px;margin-left:10px">Cancel</button>')
var $button = $('<h6>' + App.languageDict.get('Config_Sync_With_Nation_Head') + '</h6><br><br><input type="checkbox" value="ActivityReports" name="syncData">' + App.languageDict.get('Log_Activity_Reports') + '<br><input type="checkbox" value="Reports" name="syncData">' + App.languageDict.get('Reports') + '<br><input type="checkbox" value="ResourcesFeedbacks" name="syncData">' + App.languageDict.get('Resources_Feedbacks') + '<br><input type="checkbox" value="ApplicationFeedbacks" name="syncData">' + App.languageDict.get('Application_Feedbacks') + '<br><input type="checkbox" value="MembersDb" name="syncData">' + App.languageDict.get('Members_Database') + '<br><input type="checkbox" value="Surveys" name="syncData">' + App.languageDict.get('Surveys') + '<br>');
this.$el.append($button);
this.$el.append('<button class="btn btn-info" id="selectAll" style="width:110px">' + App.languageDict.get('Select_All') + '</button><button style="margin-left:10px; width:110px" class="btn btn-success" id="formButton" style="width:110px">' + App.languageDict.get('Send') + '</button>');
this.$el.append('<button class="btn btn-warning" id="cancelButton" style="width:110px;margin-left:10px">' + App.languageDict.get('Cancel') + '</button>');
if(App.languageDict.get('directionOfLang').toLowerCase()==="right")
{
this.$el.find('#formButton').css({"margin-left":"0px", "margin-right":"10px"});
this.$el.find('#cancelButton').css({"margin-left":"0px", "margin-right":"10px"});
}
},
selectAll: function() {
if ($("#selectAll").text() == 'Select All') {
Expand Down

0 comments on commit 0382fe8

Please sign in to comment.