Commit 2b599914 by Anton Sudak

Fix block removal dialog in navigation overview

parent edaac404
......@@ -58,9 +58,13 @@
@if(!subPage.isSystemBlock) {
<a title="@Messages("cms.navigation.entry.duplicate")" href="@controllers.routes.BlockController.copy(subPage.getId, request.path)"><i class="fa fa-files-o"></i></a>
}
@form(controllers.routes.BlockController.delete(subPage.getId, request.path), 'style -> "display:inline;", 'id -> ("delete-block-form-" + subPage.getId)) {
<a title="@Messages("cms.navigation.entry.delete")" href="#" class="deleteBlock" data-deleted-block-name="@subPage.getNavTitle"><i class="fa fa-trash"></i></a>
@form(ch.insign.cms.controllers.routes.BlockController.delete(subPage.getId, request.path), 'id -> ("delete-block-form-" + subPage.getId), 'class -> "hide") {
@*FIXME left for the compatibility. The better approach would be to put it in the confirmation modal*@
}
<a role="button" class="deleteBlock" data-deleted-block-name="@Template.blockDisplayName(subPage.getClass)" data-block-id="@subPage.getId"
href="@controllers.routes.BlockController.delete(subPage.getId, request.uri)" title="@Messages("cms.navigation.entry.delete")">
<i class="fa fa-trash"></i>
</a>
} else {
<i class="fa fa-edit fa-edit-disabled" title="@Messages("cms.block.permissions.no_accsses.label")"></i>
<i class="fa fa-files-o fa fa-files-disabled" title="@Messages("cms.block.permissions.no_accsses.label")"></i>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment