Added Second Chance Scholarship; Needs some work to the wisiwig editor to allow download links.

This commit is contained in:
Wynne Crisman
2020-11-14 11:32:15 -08:00
parent 114cce02c1
commit da36c139eb
8 changed files with 46 additions and 16 deletions

View File

@@ -9,12 +9,14 @@ let pri = FlowRouter.group({
});
//**** ADMIN
//** These first two routes are the defaults that are used after logging in, or if the user types /admin or /Admin without a specific page.
pri.route("/admin", {
triggersEnter: [function(context, redirect) {redirect("/Admin/InternshipJobs");}]
triggersEnter: [function(context, redirect) {redirect("/Admin/Internships");}]
});
pri.route("/Admin", {
triggersEnter: [function(context, redirect) {redirect("/Admin/InternshipJobs");}]
triggersEnter: [function(context, redirect) {redirect("/Admin/Internships");}]
});
//** The login pages...
AccountsTemplates.configureRoute('signIn', {
name: 'SignIn',
path: '/Login'
@@ -74,6 +76,13 @@ pri.route("/Admin/NewsEditor", {
BlazeLayout.render("Admin", {content: "PageEditor"});
}
});
pri.route("/Admin/SecondChanceEditor", {
name: "SecondChanceEditor",
action: function(params, queryParams) {
require("/imports/ui/Admin/PageEditor.js");
BlazeLayout.render("Admin", {content: "PageEditor"});
}
});
pri.route("/Admin/SlideshowEditor", {
name: "SlideshowEditor",
action: function(params, queryParams) {
@@ -191,6 +200,13 @@ pub.route("/News", {
BlazeLayout.render("Public", {content: "EditablePage"});
}
});
pub.route("/SecondChance", {
name: 'SecondChance',
action: function(params, queryParams) {
require("/imports/ui/EditablePage.js");
BlazeLayout.render("Public", {content: "EditablePage"});
}
});
pub.route("/PhotoGallery", {
name: 'PhotoGallery',
action: function(params, queryParams) {
@@ -230,4 +246,4 @@ pub.route('/!', {
action: function(params, queryParams) {
FlowRouter.go("/");
}
});
});

View File

@@ -8,6 +8,7 @@ let currentPath = "";
let routeData = {
JrHighSummerEditor: {title: "Jr High Summer", name: "JrHighSummer"},
NewsEditor: {title: "News", name: "News"},
SecondChanceEditor: {title: "Second Chance", name: "SecondChance"},
DatesEditor: {title: "Dates", name: "Dates"},
BoardEditor: {title: "Current Board", name: "Board"},
SlideshowPageEditor: {title: "Slideshow Page", name: "Slideshow"}
@@ -224,4 +225,4 @@ Template.PageEditor.helpers({
}
};
}
});
});

View File

@@ -3,6 +3,7 @@ import './EditablePage.html';
let routeData = {
JrHighSummer: {name: "JrHighSummer"},
News: {name: "News"},
SecondChance: {name: "SecondChance"},
ImportantDates: {name: "Dates"},
CurrentBoard: {name: "Board"}
};
@@ -30,4 +31,4 @@ Template.EditablePage.helpers({
return doc === undefined ? "" : doc.html;
}
});
});

View File

@@ -11,11 +11,18 @@
</div>
<div class="cellTile">
<div class="cellContent">
<div class="menuText">News &amp; Notices</div>
<div id="newsHeaderTimestampDiv" class="menuTimestamp">{{newsDate}}</div> <!--03/13/18-->
<a href="{{pathFor 'News'}}"><img src='./images/redwood_seed_v2.jpg'/></a>
<div class="menuText">Second Chance</div>
<a href="{{pathFor 'SecondChance'}}"><img src='./images/redwood_seed_v2.jpg'/></a>
</div>
</div>
<!-- <div class="cellTile">
<div class="cellContent">
<div class="menuText">News &amp; Notices</div>
<div id="newsHeaderTimestampDiv" class="menuTimestamp">{{newsDate}}</div>
<a href="{{pathFor 'News'}}"><img src='./images/redwood_seed_v2.jpg'/></a>
</div>
</div>
-->
</div>
<div class="column column2">
<div class="cellTile">
@@ -61,4 +68,4 @@
</div>
</div>
</div>
</template>
</template>

View File

@@ -25,11 +25,16 @@
Slideshow Page
</a>
</li>
<li class="{{isActiveRoute 'DatesEditor'}}">
<a href="{{pathFor 'DatesEditor'}}">
Important Dates
</a>
</li>
<li class="{{isActiveRoute 'DatesEditor'}}">
<a href="{{pathFor 'DatesEditor'}}">
Important Dates
</a>
</li>
<li class="{{isActiveRoute 'SecondChanceEditor'}}">
<a href="{{pathFor 'SecondChanceEditor'}}">
Second Chance
</a>
</li>
<li class="{{isActiveRoute 'JrHighSummerEditor'}}">
<a href="{{pathFor 'JrHighSummerEditor'}}">
Jr High Summer
@@ -63,4 +68,4 @@
{{> Template.dynamic template=content}}
</div>
</div>
</template>
</template>

View File

@@ -26,7 +26,7 @@ Template.Public.events({
// '<li class="donateLink donateOnce"><button type="button" class="swal2-styled" onclick="' + openAnnually + '">Annually</button></li>' +
// '</ul>'
html: '<div class="btn-group" role="group" aria-label="Donation Types">' +
'<button type="button" class="swal2-styled btn btn-secondary" onclick="' + openOnce + '">Once</button>' +
'<button type="button" class="swal2-styled btn btn-secondary" onclick="' + openOnce + '">Once</button>' +
'<button type="button" class="swal2-styled btn btn-secondary" onclick="' + openMonthly + '">Monthly</button>' +
'<button type="button" class="swal2-styled btn btn-secondary" onclick="' + openAnnually + '">Annually</button>' +
'</div>'

Binary file not shown.