158 lines
4.0 KiB
Smarty
158 lines
4.0 KiB
Smarty
<div class="button-container">
|
|
{{#each buttonList}}
|
|
{{button name label=label scope='Admin' style=style}}
|
|
{{/each}}
|
|
</div>
|
|
|
|
<style>
|
|
#layout ul {
|
|
list-style-type: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
#layout ul > li {
|
|
background-color: #FFF;
|
|
}
|
|
#layout ul.panels > li {
|
|
padding: 5px 10px;
|
|
margin-bottom: 20px;
|
|
{{#ifEqual columnCount 1}}
|
|
|
|
{{else}}
|
|
|
|
{{/ifEqual}}
|
|
min-height: 80px;
|
|
border: 1px solid #CCC;
|
|
list-style: none;
|
|
}
|
|
#layout ul.rows {
|
|
min-height: 80px;
|
|
}
|
|
#layout ul.rows > li {
|
|
list-style: none;
|
|
border: 1px solid #CCC;
|
|
margin: 8px 0;
|
|
padding: 5px;
|
|
height: 72px;
|
|
}
|
|
|
|
#layout ul.cells {
|
|
min-height: 30px;
|
|
margin-top: 12px;
|
|
}
|
|
#layout ul.panels ul.cells > li {
|
|
{{#ifEqual columnCount 1}}
|
|
width: 92%;
|
|
{{else}}
|
|
width: 46%;
|
|
{{/ifEqual}}
|
|
float: left;
|
|
}
|
|
#layout ul.panels ul.cells > li[data-full-width="true"] {
|
|
width: 94%;
|
|
}
|
|
#layout ul.cells > li {
|
|
list-style: none;
|
|
border: 1px solid #CCC;
|
|
margin: 5px;
|
|
padding: 5px;
|
|
height: 32px;
|
|
}
|
|
#layout ul.cells.disabled > li {
|
|
margin: 5px 0;
|
|
}
|
|
#layout ul.rows > li > div {
|
|
width: auto;
|
|
}
|
|
#layout ul.cells > li a {
|
|
float: right;
|
|
margin-left: 5px;
|
|
}
|
|
#layout ul.disabled {
|
|
min-height: 200px;
|
|
width: 100%;
|
|
}
|
|
#layout ul.disabled > li a {
|
|
display: none;
|
|
}
|
|
#layout header {
|
|
font-weight: bold;
|
|
margin-bottom: 10px;
|
|
}
|
|
#layout ul.panels > li label {
|
|
display: inline;
|
|
}
|
|
#layout ul.panels > li header a {
|
|
font-weight: normal;
|
|
}
|
|
#layout ul.panels > li > div {
|
|
width: auto;
|
|
text-align: left;
|
|
margin-left: 5px;
|
|
}
|
|
ul.cells li.cell a.remove-field {
|
|
display: none;
|
|
}
|
|
ul.cells li.cell:hover a.remove-field {
|
|
display: block;
|
|
}
|
|
ul.panels > li a.remove-panel {
|
|
display: none;
|
|
}
|
|
ul.panels > li:hover a.remove-panel {
|
|
display: block;
|
|
}
|
|
ul.rows > li a.remove-row {
|
|
display: none;
|
|
}
|
|
ul.rows > li:hover a.remove-row {
|
|
display: block;
|
|
}
|
|
ul.panels > li a.edit-panel-label {
|
|
display: none;
|
|
}
|
|
ul.panels > li:hover a.edit-panel-label {
|
|
display: inline-block;
|
|
}
|
|
</style>
|
|
|
|
<div id="layout" class="row">
|
|
<div class="col-md-8">
|
|
<div class="well">
|
|
<header>{{translate 'Layout' scope='LayoutManager'}}</header>
|
|
<ul class="panels">
|
|
{{#each panelDataList}}
|
|
<li data-number="{{number}}" class="panel-layout">
|
|
{{{var viewKey ../this}}}
|
|
</li>
|
|
{{/each}}
|
|
</ul>
|
|
|
|
<div><a href="javascript:;" data-action="addPanel">{{translate 'Add Panel' scope='Admin'}}</a></div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<div class="well">
|
|
<header>{{translate 'Available Fields' scope='Admin'}}</header>
|
|
<ul class="disabled cells clearfix">
|
|
{{#each disabledFields}}
|
|
<li class="cell" data-name="{{./this}}">{{translate this scope=../scope category='fields'}}
|
|
<a href="javascript:" data-action="removeField" class="remove-field"><i class="fas fa-times"></i></a>
|
|
</li>
|
|
{{/each}}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="layout-row-tpl" style="display: none;">
|
|
<li>
|
|
<div><a href="javascript:" data-action="removeRow" class="remove-row pull-right"><i class="fas fa-times"></i></a></div>
|
|
<ul class="cells">
|
|
<% for (var i = 0; i < {{columnCount}}; i++) { %>
|
|
<li class="empty cell"><a href="javascript:" data-action="minusCell" class="remove-field"><i class="fas fa-minus"></i></a></li>
|
|
<% } %>
|
|
</ul>
|
|
</li>
|
|
</div>
|