Improved empty "Modules" tab in products, folders, categories and content.
This commit is contained in:
@@ -222,6 +222,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
.module-tab {
|
||||
margin-top: 1.5em;
|
||||
}
|
||||
|
||||
.tab-content {
|
||||
// Center loading indicator
|
||||
.loading {
|
||||
|
||||
@@ -260,8 +260,14 @@
|
||||
{include file='includes/document-upload-form.html' documentType='category' parentId=$ID}
|
||||
</div>
|
||||
|
||||
<div class="tab-pane fade" id="modules">
|
||||
{module_include location='category-edit'}
|
||||
<div class="tab-pane fade module-tab" id="modules">
|
||||
{module_include location='category-edit' countvar='module_count'}
|
||||
|
||||
{if $countvar == 0}
|
||||
<div class="alert alert-info">
|
||||
{intl l="There are currently no active module here."}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -155,8 +155,14 @@
|
||||
{include file='includes/document-upload-form.html' documentType='content' parentId=$content_id}
|
||||
</div>
|
||||
|
||||
<div class="tab-pane fade" id="modules">
|
||||
{module_include location='content-edit'}
|
||||
<div class="tab-pane fade module-tab" id="modules">
|
||||
{module_include location='content-edit' countvar='module_count'}
|
||||
|
||||
{if $countvar == 0}
|
||||
<div class="alert alert-info">
|
||||
{intl l="There are currently no active module here."}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -141,8 +141,15 @@
|
||||
{include file='includes/document-upload-form.html' documentType='folder' parentId=$ID}
|
||||
</div>
|
||||
|
||||
<div class="tab-pane fade" id="modules">
|
||||
{module_include location='folder-edit'}
|
||||
<div class="tab-pane fade module-tab" id="modules">
|
||||
|
||||
{module_include location='folder-edit' countvar='module_count'}
|
||||
|
||||
{if $countvar == 0}
|
||||
<div class="alert alert-info">
|
||||
{intl l="There are currently no active module here."}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -108,8 +108,14 @@
|
||||
<div class="text-center"><span class="loading">{intl l="Please wait, loading"}</span></div>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane fade" id="modules">
|
||||
{module_include location='product-edit'}
|
||||
<div class="tab-pane fade module-tab" id="modules">
|
||||
{module_include location='product-edit' countvar='module_count'}
|
||||
|
||||
{if $countvar == 0}
|
||||
<div class="alert alert-info">
|
||||
{intl l="There are currently no active module here."}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user