@import prism.BakeUsage @import views.html.helper.CSRF @(recipeToDelete: Recipe, bakes: Seq[Bake], usages: Seq[BakeUsage])(implicit request: RequestHeader) @simpleLayout("AMIgo"){ @if(usages.isEmpty) {

Really delete @recipeToDelete.id?

Confirm delete

Note that this will schedule the deletion of all associated AMIs and underlying EBS snapshots (@bakes.size).

@helper.form(routes.RecipeController.deleteRecipe(recipeToDelete.id)) { @CSRF.formField }
} else {

Recipe @recipeToDelete.id still has usages

Can't be deleted
This recipe still has usages and cannot be deleted. You can review the usages here.
} }