aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
Diffstat (limited to 'view')
-rw-r--r--view/css/mod_blocks.css3
-rw-r--r--view/css/mod_layouts.css3
-rw-r--r--view/tpl/blocklist.tpl14
-rw-r--r--view/tpl/layoutlist.tpl18
4 files changed, 36 insertions, 2 deletions
diff --git a/view/css/mod_blocks.css b/view/css/mod_blocks.css
new file mode 100644
index 000000000..117e99068
--- /dev/null
+++ b/view/css/mod_blocks.css
@@ -0,0 +1,3 @@
+#block-editor {
+ display: none;
+}
diff --git a/view/css/mod_layouts.css b/view/css/mod_layouts.css
new file mode 100644
index 000000000..7f65713e7
--- /dev/null
+++ b/view/css/mod_layouts.css
@@ -0,0 +1,3 @@
+#layout-editor {
+ display: none;
+}
diff --git a/view/tpl/blocklist.tpl b/view/tpl/blocklist.tpl
index 4068375cb..a8cb29b35 100644
--- a/view/tpl/blocklist.tpl
+++ b/view/tpl/blocklist.tpl
@@ -1,3 +1,17 @@
+<div class="section-title-wrapper">
+ {{if $editor}}
+ <div class="pull-right">
+ <button id="webpage-create-btn" class="btn btn-xs btn-success" onclick="openClose('block-editor');"><i class="icon-edit"></i>&nbsp;{{$create}}</button>
+ </div>
+ {{/if}}
+ <h2>{{$title}}</h2>
+ <div class="clear"></div>
+</div>
+{{if $editor}}
+<div id="block-editor" class="section-content-tools-wrapper">
+ {{$editor}}
+</div>
+{{/if}}
{{if $pages}}
<div id="pagelist-content-wrapper" class="generic-content-wrapper">
diff --git a/view/tpl/layoutlist.tpl b/view/tpl/layoutlist.tpl
index 0a0085497..cd146377d 100644
--- a/view/tpl/layoutlist.tpl
+++ b/view/tpl/layoutlist.tpl
@@ -1,5 +1,20 @@
-{{if $pages}}
+<div class="section-title-wrapper">
+ {{if $editor}}
+ <div class="pull-right">
+ <button id="webpage-create-btn" class="btn btn-xs btn-success" onclick="openClose('layout-editor');"><i class="icon-edit"></i>&nbsp;{{$create}}</button>
+ <a href="{{$help.url}}" target="_blank" class="btn btn-xs btn-warning" title="{{$help.title}}"><i class="icon-info"></i>&nbsp;{{$help.text}}</a>
+ </div>
+ {{/if}}
+ <h2>{{$title}}</h2>
+ <div class="clear"></div>
+</div>
+{{if $editor}}
+<div id="layout-editor" class="section-content-tools-wrapper">
+ {{$editor}}
+</div>
+{{/if}}
+{{if $pages}}
<div id="pagelist-content-wrapper" class="generic-content-wrapper">
{{foreach $pages as $key => $items}}
{{foreach $items as $item}}
@@ -15,5 +30,4 @@
</div>
<div class="clear"></div>
-
{{/if}}