Feature add prayer button

Add prayer button takes you to a new page, where you can fill out a simple form with a prayer/praise report. Upon submission, the prayer is added to Parse, and then you are brought back to the prayer list page, where you will see your new prayer request added to the list.

Comments: 
- Where in the prayer list do we want to add a new prayer? Top instead of bottom?
- Using a dummy user (Kevin Tu) for now until we get login functionality set
- Changed "numberOfLikes" to be an array, not an int, to match the backend data model
oh man. i shoulda looked for this earlier -_- ok thanks for the link


On Sat, Jun 28, 2014 at 7:25 PM, Kevin Liang <notifications@github.com>
wrote:

> In public/client/application.js:
>
> > @@ -114,6 +119,37 @@ app.controller('
> prayerListController', function($scope, PrayerService, UserServi
> >      alert('Failed to load prayers: ' + error);
> >    });
> >    $scope.title = "Prayers List";
> > +  // $( "#addPrayer" ).click(function() {
> > +  //     alert( "Add Prayer button clicked" );
> > +  // });
> > +});
> > +app.controller('addPrayerController', function($scope, PrayerService){
> > +  $scope.title = "Add A New Prayer/Praise";
> > +  // clicked submit
> > +  $("#addPrayerSubmit").click(function() {
> > +    // DUMMY USER RIGHT NOW -- Currently set to Kevin Tu
> > +    var currentUser = new User('Ddw8VGKsZ1', null,null,null);
> > +    // Get contents from form
> > +    if (document.getElementById("form_praise").checked){
>
> don't do this. do this instead: https://docs.angularjs.org/guide/forms
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/Transformapp/webapp/pull/11/files#r14327197>.
>