@(myRestaurantForm: Form[Restaurant]) @import helper._ @import helper.twitterBootstrap._ @main("Dashboard"){ }{
@form(routes.Protected.updateAbout(myRestaurantForm.get().id.toString)) {
@textarea(field = myRestaurantForm("about"), args = 'class -> "field span8",'_label -> "About Us", 'value ->myRestaurantForm.get().about)
}
@form(routes.Protected.updateHours(myRestaurantForm.get().id.toString)) {
@textarea(field = myRestaurantForm("hours"), args = 'class -> "field span8",'_label -> "Hours of Operation", 'value ->myRestaurantForm.get().hours)
}
@form(routes.Protected.newCat(myRestaurantForm.get().id.toString)){
} @for(category <- myRestaurantForm.get().menu.categories){

@category.name

@form(routes.Protected.removeCategory(myRestaurantForm.get().id.toString,category.id.toString), 'class-> "span2"){ } @if(category.enabled) {
} else {
}
@form(routes.Protected.newItem(myRestaurantForm.get().id.toString,category.id.toString)){

@textarea(field = myRestaurantForm("description"), args = 'class -> "field span8",'_label -> "Description")
} @for(menuItem <- category.items){

@Html(menuItem.display())
@if(menuItem.enabled) {
} else {
}
} }
}