Commit a6bda715 authored by Anton Sudak's avatar Anton Sudak

Update page layout to use b4 styles more widely

parent 9935641a
@import blocks.pageblock.DefaultPage
@import ch.insign.cms.blocks.horizontalcollection.HorizontalCollectionBlock
@(data: DefaultPage)
@import ch.insign.cms.models.ContentBlock
......@@ -9,41 +10,38 @@
@import views.html.main
@main(data) {
<h1>@data.getPageTitle</h1>
<section class="container main-content">
<div class="col-md-2" id="sidebar" role="navigation">
<div class="well sidebar-nav">
<div class="row">
<nav class="col-md-2" id="sidebar" role="navigation">
<div class="nav nav-pills flex-column">
@_navigationByKey(
key = PageBlock.KEY_FRONTEND,
active = data
)
</div>
</div>
<div class="col-md-6">
<div class="box">
@Template.addBlockToSlot(classOf[CollectionBlock], data, "main").context("mainContext").render()
</div>
</div>
<div class="col-md-4">
<div class="box">
@Template.addBlockToSlot(classOf[CollectionBlock], data, "sidebar").context("sidebarContext").render()
</nav>
<main class="col-md-10">
<h1>@data.getPageTitle</h1>
<div class="row">
<div class="col-md-7">
@Template.addBlockToSlot(classOf[CollectionBlock], data, "main").context("mainContext").render()
</div>
<div class="col-md-5">
@Template.addBlockToSlot(classOf[CollectionBlock], data, "sidebar").context("sidebarContext").render()
</div>
</div>
</div>
</section>
</main>
<hr>
<hr>
<section class="container">
@Template.addBlockToSlot(classOf[CollectionBlock], data, "bottom").context("bottomContext").render()
</section>
<section class="container">
@Template.addBlockToSlot(classOf[HorizontalCollectionBlock], data, "bottom").context("bottomContext").render()
</section>
</div>
<hr>
<footer class="container footer">
@Template.addBlockByKey(classOf[ContentBlock], "GlobalFooter").render()
@Template.addBlockByKey(classOf[ContentBlock], "GlobalFooter").render()
</footer>
}
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