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

Commit

Permalink
[#859] Default margin (#869)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pr0chin authored and lmmrssa committed Jun 15, 2017
1 parent 56a877e commit 318fae6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
24 changes: 12 additions & 12 deletions app/MyApp/app/Router.js
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ $(function() {
creditsTableView.courseId=courseId;
creditsTableView.memberId=memberId;
creditsTableView.render();
App.$el.children('.body').html('<div id="creditsTable"></div>');
App.$el.children('.body').html('<div id="creditsTable" style = "margin-right:20px; margin-left:20px;"></div>');
var select = $("<select id='learnerSelector' onchange='getName($(this).val())'>");
var name, id;
learnerCollection.each(
Expand Down Expand Up @@ -1432,7 +1432,7 @@ $(function() {
var modelForm = new App.Views[className + 'Form']({
model: model
})
App.$el.children('.body').html('<div id="AddCourseMainDiv"></div>');
App.$el.children('.body').html('<div id="AddCourseMainDiv" style = "margin-right:20px; margin-left:20px"></div>');
// Bind form to the DOM
if (modelId && url_split[1]=="view") {
model.id = modelId
Expand Down Expand Up @@ -2554,7 +2554,7 @@ $(function() {
trigger: true
})
})
App.$el.children('.body').html('<div id="AddCourseMainDiv"></div>');
App.$el.children('.body').html('<div id="AddCourseMainDiv" style = "margin-right:20px; margin-left:20px"></div>');
$('#AddCourseMainDiv').append('<br/><h3>'+App.languageDict.attributes.Course_Manage+'</h3>');
$('#AddCourseMainDiv').append(modelForm.el);
// Set up the form
Expand Down Expand Up @@ -2733,8 +2733,8 @@ $(function() {
} else {
button += '<br/><br/>'
}
App.$el.children('.body').html('<div class="courseEditStep"></div>')
$('.courseEditStep').append('<div id="courseName-heading"><h3>'+App.languageDict.attributes.Course_Details+' | ' + courseName + '</h3></div>')
App.$el.children('.body').html('<div class="courseEditStep" style = "margin-right:20px; margin-left:20px;"></div>')
$('.courseEditStep').append('<div id="courseName-heading" style = "margin-right:20px; margin-left:20px;"><h3>'+App.languageDict.attributes.Course_Details+' | ' + courseName + '</h3></div>')
$('.courseEditStep').append(button)
var memberModelArr = [];
for(var i = 0; i < courseLeader.length; i++)
Expand Down Expand Up @@ -2975,7 +2975,7 @@ $(function() {
model: levelInfo
})
levelDetails.render();
App.$el.children('.body').html('<div class="courseEditStep"></div>');
App.$el.children('.body').html('<div class="courseEditStep" style ="margin-right:20px; margin-left:20px"></div>');
$('.courseEditStep').append('<h3>' +App.languageDict.attributes.Step +levelInfo.get("step") + ' | ' + levelInfo.get("title") + '</h3>')
$('.courseEditStep').append('<a class="btn btn-success" href=\'#level/add/' + levelInfo.get("courseId") + '/' + lid + '/-1\'">'+App.languageDict.attributes.Edit_Step+'</a>&nbsp;&nbsp;')
$('.courseEditStep').append("<a class='btn btn-success' href='#course/manage/" + levelInfo.get('courseId') + "'>"+App.languageDict.attributes.Back_To_Course+" </a>&nbsp;&nbsp;")
Expand All @@ -2990,7 +2990,7 @@ $(function() {
$('.courseEditStep').append('<B>' + levelInfo.get("title") + ' - '+App.languageDict.attributes.Test+'</B><a class="btn btn-primary backToSearchButton" href=\'#create-test/' + levelInfo.get("_id") + '/' + levelInfo.get("_rev") + '/' + levelInfo.get("title") + '\'">'+App.languageDict.attributes.Edit_Test+'</a>')
$('.courseEditStep').append('<a class="btn btn-primary" style="margin-left: 1100px" id="viewTest" onclick=App.Router.ViewTest("' + lid + '","' + rid + '")>'+App.languageDict.attributes.View_Test+'</a>&nbsp;&nbsp;')
}
$('.body').append('<div id="viewTest"></div>');
$('.body').append('<div id="viewTest" style = "margin-right:20px; margin-left:20px"></div>');

}
});
Expand Down Expand Up @@ -3314,7 +3314,7 @@ $(function() {
resourcesTableView.render()
App.$el.children('.body').html('')
if (roles.indexOf("Manager") > -1) {
App.$el.children('.body').append('<p id="firstHeadingOfReports" style="margin-top:10px"><a id="fHonRep" class="btn btn-success" href="#reports/add">'+App.languageDict.attributes.Add_a_New_Report+'</a>' +
App.$el.children('.body').append('<p id="firstHeadingOfReports" style="margin-top:10px; margin-left: 23px;"><a id="fHonRep" class="btn btn-success" href="#reports/add">'+App.languageDict.attributes.Add_a_New_Report+'</a>' +
'<a id="sHonRep" style="margin-left:20px" class="btn btn-success" href="#logreports">'+App.languageDict.attributes.Activity_Report+'</a>' +
'<a style="margin-left:20px" class="btn btn-success" href="#trendreport">'+App.languageDict.attributes.Trend+' '+App.languageDict.attributes.Activity_Report+'</a></p>')
} else {
Expand All @@ -3335,8 +3335,8 @@ $(function() {
} else {
temp = temp + ' ' +App.languageDict.attributes.Nation+' '+App.languageDict.attributes.Bell;
}
App.$el.children('.body').append('<h4 id="secondHeadingOfReports"><span style="color:gray;">' + temp + '</span> | '+App.languageDict.attributes.Reports+'</h4>')
var tableDiv="<div id='reportTable'></div>";
App.$el.children('.body').append('<h4 id="secondHeadingOfReports"><span style="color:gray; margin-right:20px;margin-left:20px;">' + temp + '</span> | '+App.languageDict.attributes.Reports+'</h4>')
var tableDiv="<div id='reportTable' style = 'margin-right:20px;margin-left:20px;'></div>";
App.$el.children('.body').append(tableDiv);
$('#reportTable').append(resourcesTableView.el);
if(directionOfLang.toLowerCase()==="right"){
Expand Down Expand Up @@ -4825,7 +4825,7 @@ $(function() {
})
resourceFeedback.on('sync', function() {
feedbackTable.render();
App.$el.children('.body').html('<div id="feedbackResourceDiv"></div>');
App.$el.children('.body').html('<div id="feedbackResourceDiv" style = "margin-right:20px; margin-left:20px"></div>');
$('#feedbackResourceDiv').append('<h3>'+App.languageDict.attributes.Feedback_For+' "' + resource.get('title') + '"</h3>')
var url_togo = "#resource/feedback/add/" + resourceId + "/" + resource.get('title')
$('#feedbackResourceDiv').append('<a class="btn btn-primary"" href="' + url_togo + '"><i class="icon-plus"></i>'+App.languageDict.attributes.Add_your_feedback+'</a>')
Expand Down Expand Up @@ -4868,7 +4868,7 @@ $(function() {
feedbackForm.rtitle = resInfo.get('title')
var user_rating
feedbackForm.render()
App.$el.children('.body').html('<div id="feedbackResoDiv"></div>');
App.$el.children('.body').html('<div id="feedbackResoDiv" style = "margin-right:20px; margin-left:20px"></div>');
$('#feedbackResoDiv').append('<h4 style="color:gray">'+App.languageDict.attributes.Add_Feedback_For+' '+'<span style="color:black;"> ' + resInfo.get('title') + '</span></h4>')
$('#feedbackResoDiv').append('<p style="font-size:15px;">&nbsp;&nbsp;<span style="font-size:50px;">.</span>'+App.languageDict.attributes.Rating+'</p>')
$('#feedbackResoDiv').append('<div id="star" data-score="0"></div>')
Expand Down
4 changes: 2 additions & 2 deletions app/MyApp/app/views/MembersView.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ $(function() {
},

render: function() {
this.$el.append('<div id="parentMembers"><h3 id="membersSearchHeading"><input id="searchText" type="Text" placeholder=""><button id="searchButtonOnMembers" class="Search btn btn-info">'+App.languageDict.attributes.Search+'</button></h3><h3>'+App.languageDict.attributes.Members+'<a id="AddNewMember" style="margin-left:20px" class="btn btn-success" href="#member/add">'+App.languageDict.attributes.Add+' '+App.languageDict.attributes.New+' '+App.languageDict.attributes.Member+'</a></h3></div>');
this.$el.append('<div id="memberTable"></div>');
this.$el.append('<div id="parentMembers" style = "margin-left: 20px; margin-right: 20px;"><h3 id="membersSearchHeading"><input id="searchText" type="Text" placeholder=""><button id="searchButtonOnMembers" class="Search btn btn-info">'+App.languageDict.attributes.Search+'</button></h3><h3>'+App.languageDict.attributes.Members+'<a id="AddNewMember" style="margin-left:20px" class="btn btn-success" href="#member/add">'+App.languageDict.attributes.Add+' '+App.languageDict.attributes.New+' '+App.languageDict.attributes.Member+'</a></h3></div>');
this.$el.append('<div id="memberTable" style = "margin-left: 20px; margin-right: 20px;"></div>');
this.renderTable(searchCommunity, searchText);
},
renderTable: function(searchCommunity, searchText) {
Expand Down
2 changes: 1 addition & 1 deletion app/MyApp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1849,7 +1849,7 @@ <h3 ><%=App.languageDict.attributes.Answer_Review_Section %></h3>
<script type="text/html" id="template-Search">
<div id="search">
<div class="row">
<div class="col-lg-5">
<div class="col-lg-5" style = "margin-right:20px; margin-left:20px">
<div class="form-course search-Box">
<label style='font-size:16px'><b><%= languageDict.attributes.Title %></b></label><br><input class="form-control" type="text" placeholder="" id="searchText" style="height:24px;margin-top:1%;width:347px"></input>
</div>
Expand Down

0 comments on commit 318fae6

Please sign in to comment.