add an explanation to admin controls as placeholders
This commit is contained in:
parent
b0b3012302
commit
08c98201bc
6 changed files with 25 additions and 8 deletions
|
@ -161,6 +161,7 @@ class App.ControllerGenericIndex extends App.Controller
|
|||
events:
|
||||
'click': @edit
|
||||
container: @container
|
||||
explanation: @pageData.explanation or 'none'
|
||||
},
|
||||
@pageData.tableExtend
|
||||
)
|
||||
|
|
|
@ -104,7 +104,8 @@ class App.ControllerTable extends App.Controller
|
|||
|
||||
# check if table is empty
|
||||
if _.isEmpty(data.objects)
|
||||
table = '<p>-' + App.i18n.translateContent( 'none' ) + '-</p>'
|
||||
table = App.view('generic/admin/empty')
|
||||
explanation: data.explanation
|
||||
return $(table)
|
||||
|
||||
# group by
|
||||
|
|
|
@ -21,6 +21,7 @@ class Index extends App.ControllerContent
|
|||
buttons: [
|
||||
{ name: 'New TextModule', 'data-type': 'new', class: 'btn--success' }
|
||||
]
|
||||
explanation: 'Create Text Modules to spend less time writing responses. TextModules can include smart variables like the users name or email address.'
|
||||
container: @el.closest('.content')
|
||||
)
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
<p><%= @Ti( @explanation ) %></p>
|
|
@ -1,11 +1,9 @@
|
|||
<div class="page-header-title">
|
||||
<div class="horizontal">
|
||||
<h1><%- @T( @head ) %> <small><%- @T( 'Object Manager' ) %></small></h1>
|
||||
<div class="page-header-meta">
|
||||
<a class="btn js-restore"><%- @T( 'Restore Attributes to default' ) %></a>
|
||||
<a class="btn btn--danger js-sync"><%- @T( 'Sync Changes' ) %> <span class="glyphicon glyphicon-lock"></span></a>
|
||||
<a class="btn btn--success js-new"><%- @T( 'New Attribute' ) %></a>
|
||||
</div>
|
||||
<h1><%- @T( @head ) %> <small><%- @T( 'Object Manager' ) %></small></h1>
|
||||
<div class="page-header-meta">
|
||||
<a class="btn js-restore"><%- @T( 'Restore Attributes to default' ) %></a>
|
||||
<a class="btn btn--danger js-sync"><%- @T( 'Sync Changes' ) %> <span class="glyphicon glyphicon-lock"></span></a>
|
||||
<a class="btn btn--success js-new"><%- @T( 'New Attribute' ) %></a>
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-striped table-hover">
|
||||
|
|
|
@ -4801,6 +4801,21 @@ label + .wizard-buttonList {
|
|||
display: inherit;
|
||||
}
|
||||
|
||||
.empty-space {
|
||||
padding: 50px;
|
||||
|
||||
svg {
|
||||
width: 200px;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.empty-space-tagline {
|
||||
color: hsl(198, 19%, 72%);
|
||||
margin-top: 15px;
|
||||
font-size: 18px;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
----------------
|
||||
|
|
Loading…
Reference in a new issue