Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adds create note page

  • Loading branch information...
commit 24959c67f5317fa1b8ec114e7dcc7f98a4468e3b 1 parent d419a00
Dominik Guzei authored
View
4 app/assets/javascripts/app/states/BrowsingState.js.coffee
@@ -2,6 +2,7 @@
#= require app/mediators/pagesMediator
#= require app/views/PagesView
#= require app/views/pages/ListNotesView
+#= require app/views/pages/CreateNoteView
App = @App
pagesMediator = App.mediators.pagesMediator
@@ -40,6 +41,9 @@ App.states.BrowsingState = SC.State.extend {
CreateNote: SC.State.extend {
representRoute: 'notes/create'
+
+ enterState: ->
+ pagesMediator.set 'currentPage', pages.CreateNoteView
}
logout: ->
View
2  app/assets/javascripts/app/templates/pages/create_note.js.hjs
@@ -0,0 +1,2 @@
+
+<h2>Create Note:</h2>
View
11 app/assets/javascripts/app/views/pages/CreateNoteView.js.coffee
@@ -0,0 +1,11 @@
+
+#= require app/templates/pages/create_note
+
+App = @App
+
+App.views.pages.CreateNoteView = SC.View.extend {
+
+ templateName: 'app_templates_pages_create_note'
+ elementId: 'create-note-page'
+
+}
Please sign in to comment.
Something went wrong with that request. Please try again.