User foundation setup
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
App.MenuItemListNeedsHelpView = Ember.View.extend Ember.ViewTargetActionSupport,
|
||||
action: 'listNeedsHelp'
|
||||
templateName: "menu_item_list_needs_help"
|
||||
classNames: 'menu-list-item'
|
||||
classNameBindings: ['controller.list.needs_help:active']
|
||||
click: ->
|
||||
if @get('controller.list.needs_help')
|
||||
@set 'controller.notice', t('list_needs_help.help_is_on_its_way')
|
||||
else
|
||||
@triggerAction()
|
||||
@@ -0,0 +1,11 @@
|
||||
App.MenuItemListNeedsPaymentView = Ember.View.extend Ember.ViewTargetActionSupport,
|
||||
action: 'listNeedsPayment'
|
||||
templateName: "menu_item_list_needs_payment"
|
||||
classNames: 'menu-list-item'
|
||||
classNameBindings: ['controller.list.needs_payment:active']
|
||||
click: ->
|
||||
if @get('controller.list.needs_payment')
|
||||
@set 'controller.notice', t('list_needs_payment.payment_already_requested')
|
||||
else
|
||||
@triggerAction() #action: 'listNeedsPayment'
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
App.MenuItemView = Ember.View.extend
|
||||
classNames: 'menu-list-item'
|
||||
classNameBindings: ['active']
|
||||
click: ->
|
||||
@get('controller').transitionToRoute(@route)
|
||||
active: (->
|
||||
if @get('controller.currentPath') == @route then 'active' else ''
|
||||
).property('controller.currentPath')
|
||||
init: ->
|
||||
@templateName = "menu_item_#{@route}"
|
||||
@_super()
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
#App.ModalView = Ember.View.extend
|
||||
#templateName: "modal"
|
||||
#title: ""
|
||||
#classNames: ["reveal-modal"],
|
||||
#didInsertElement: ->
|
||||
##this.$().foundation('reveal', 'open')
|
||||
#actions:
|
||||
#close: ->
|
||||
#console.log('close action fired')
|
||||
#this.destroy()
|
||||
Reference in New Issue
Block a user