Moved save button; Added blurb for the Jr High Summer to the programs page; Fixed the page editor to ask if the user doesn't save the changes.

This commit is contained in:
Wynne Crisman
2019-01-09 16:38:31 -08:00
parent cac2ad9c41
commit 6fdaf93718
3 changed files with 13 additions and 2 deletions

View File

@@ -1,5 +1,13 @@
#internshipEditor
display: block
#save
position: fixed
top: 20px
right: 20px
padding: 6px 10px
font-size: 16px
font-weight: 800
cursor: pointer
.internshipNavigation
float: left
clear: none

View File

@@ -25,13 +25,14 @@ Tracker.autorun(function() {
Template.PageEditor.onCreated(function() {
let template = this;
currentPath = FlowRouter.getRouteName();
this.showSelectImageDialog = new ReactiveVar(false);
this.pageName = new ReactiveVar();
this.saveChanges = function() {
if(currentPath && currentPath !== FlowRouter.getRouteName()) {
let data = this.$('.editor').val();
let template = this;
const pageName = this.pageName.get();
currentPath = FlowRouter.getRouteName();
@@ -54,7 +55,7 @@ Template.PageEditor.onCreated(function() {
}).then(
function(isConfirm) {
if(isConfirm) {
Meteor.call('updatePage', template.pageName.get(), changedData, function (error, result) {
Meteor.call('updatePage', pageName, changedData, function (error, result) {
if (error) sAlert.error(error);
else sAlert.success("Content Saved Successfully");
});

View File

@@ -12,6 +12,8 @@
<p>Each June AVEF awards scholarships to AVHS graduating seniors who have applied to attend a college, university or vocational school. Scholarships are awarded on the basis of GPA, SAT scores, financial need, educational and personal goals and quality of the essay submitted with an application. In addition references, awards, work experience, community service, and other criteria are taken into account. An application form is available on this website. The Scholarship Selection Criteria are available on this website to allow students an opportunity to see how scholarship applications are evaluated. (<a class="{{isActiveRoute 'Scholarships'}}" href="{{pathFor 'Scholarships'}}">more...</a>)</p>
<h4>Fellowships:</h4>
<p>This program allows high school juniors to apply for a summer educational opportunity outside of Anderson Valley. The program of interest can be located within the United States or even abroad. AVEF will support fees, transportation, living expenses and incidentals. Students must complete the AVEF application before the deadline and interview with our selection committee. The application form is available on this web site. This program is competitive and open to current juniors only. (<a class="{{isActiveRoute 'Fellowships'}}" href="{{pathFor 'Fellowships'}}">more...</a>)</p>
<h4>Jr High Summer</h4>
<p>This program is an opportunity for students in 6th, 7th and 8th grade to gain new experiences during the summer. There are a wide variety of camps to choose from ranging from academic subjects (e.g. science exploration) to the arts (e.g. dance and theater) to sports. Students must complete and submit an application. (<a class="{{isActiveRoute 'JrHighSummer'}}" href="{{pathFor 'JrHighSummer'}}">more...</a>)</p>
</div>
</div>
</template>