Initial commit
This commit is contained in:
16
client/res/templates/admin/entity-manager/edit.tpl
Normal file
16
client/res/templates/admin/entity-manager/edit.tpl
Normal file
@@ -0,0 +1,16 @@
|
||||
<div class="page-header">
|
||||
<h3><a href="#Admin">{{translate 'Administration'}}</a>
|
||||
<span class="breadcrumb-separator"><span></span></span>
|
||||
<a href="#Admin/entityManager">{{translate 'Entity Manager' scope='Admin'}}</a>
|
||||
<span class="breadcrumb-separator"><span></span></span>
|
||||
{{#unless isNew}}
|
||||
<a href="#Admin/entityManager/scope={{scope}}">{{translate scope category='scopeNames'}}</a>
|
||||
<span class="breadcrumb-separator"><span></span></span>
|
||||
{{translate 'Edit'}}
|
||||
{{else}}
|
||||
{{translate 'Create Entity' scope='Admin'}}
|
||||
{{/unless}}
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
<div class="record">{{{record}}}</div>
|
||||
@@ -0,0 +1,14 @@
|
||||
<div>
|
||||
<button
|
||||
class="btn btn-default pull-right btn-icon"
|
||||
data-action="selectIcon"
|
||||
title="{{translate 'Select'}}"
|
||||
><span class="fas fa-angle-up"></span></button>
|
||||
<span style="vertical-align: middle;">
|
||||
{{#if value}}
|
||||
<span class="{{value}}"></span>
|
||||
{{else}}
|
||||
{{translate 'None'}}
|
||||
{{/if}}
|
||||
</span>
|
||||
</div>
|
||||
37
client/res/templates/admin/entity-manager/formula.tpl
Normal file
37
client/res/templates/admin/entity-manager/formula.tpl
Normal file
@@ -0,0 +1,37 @@
|
||||
<div class="page-header">
|
||||
<h3>
|
||||
<a href="#Admin">{{translate 'Administration'}}</a>
|
||||
<span class="breadcrumb-separator"><span></span></span>
|
||||
<a href="#Admin/entityManager">{{translate 'Entity Manager' scope='Admin'}}</a>
|
||||
<span class="breadcrumb-separator"><span></span></span>
|
||||
<a href="#Admin/entityManager/scope={{scope}}">{{translate scope category='scopeNames'}}</a>
|
||||
<span class="breadcrumb-separator"><span></span></span>
|
||||
{{translate 'Formula' scope='EntityManager'}}
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
<div class="button-container">
|
||||
<div class="btn-group actions-btn-group" role="group">
|
||||
<button class="btn btn-danger btn-xs-wide action" data-action="save">
|
||||
{{translate 'Save'}}
|
||||
</button>
|
||||
<button class="btn btn-default btn-xs-wide action" data-action="close">
|
||||
{{translate 'Close'}}
|
||||
</button>
|
||||
<button
|
||||
class="btn btn-default dropdown-toggle"
|
||||
data-toggle="dropdown"
|
||||
><span class="fas fa-ellipsis-h"></span></button>
|
||||
<ul class="dropdown-menu pull-right">
|
||||
<li>
|
||||
<a
|
||||
role="button"
|
||||
tabindex="0"
|
||||
data-action="resetToDefault"
|
||||
>{{translate 'Reset to Default' scope='Admin'}}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="record">{{{record}}}</div>
|
||||
77
client/res/templates/admin/entity-manager/index.tpl
Normal file
77
client/res/templates/admin/entity-manager/index.tpl
Normal file
@@ -0,0 +1,77 @@
|
||||
<div class="page-header"><h3><a href="#Admin">{{translate 'Administration'}}</a>
|
||||
<span class="breadcrumb-separator"><span></span></span>
|
||||
{{translate 'Entity Manager' scope='Admin'}}</h3></div>
|
||||
|
||||
<div class="button-container">
|
||||
<div class="btn-group">
|
||||
<button class="btn btn-default" data-action="createEntity">
|
||||
<span class="fas fa-plus fa-sm"></span><span>{{translate 'Create Entity' scope='Admin'}}</span>
|
||||
</button>
|
||||
<button
|
||||
class="btn btn-default dropdown-toggle"
|
||||
data-toggle="dropdown"
|
||||
><span class="fas fa-ellipsis-h"></span></button>
|
||||
<ul class="dropdown-menu pull-right">
|
||||
<li>
|
||||
<a
|
||||
role="button"
|
||||
data-action="export"
|
||||
tabindex="0"
|
||||
>{{translate 'Export'}}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-11">
|
||||
|
||||
<div class="margin-bottom-2x margin-top">
|
||||
<input
|
||||
type="text"
|
||||
maxlength="64"
|
||||
placeholder="{{translate 'Search'}}"
|
||||
data-name="quick-search"
|
||||
class="form-control"
|
||||
spellcheck="false"
|
||||
>
|
||||
</div>
|
||||
<table class="table table-hover table-panel scopes-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{translate 'label' scope='EntityManager' category='fields'}}</th>
|
||||
<th style="width: 27%">{{translate 'name' scope='EntityManager' category='fields'}}</th>
|
||||
<th style="width: 19%">{{translate 'type' scope='EntityManager' category='fields'}}</th>
|
||||
<th style="width: 19%">{{translate 'module' scope='EntityManager' category='fields'}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{#each scopeDataList}}
|
||||
<tr data-scope="{{name}}" class="scope-row">
|
||||
<td>
|
||||
{{#if hasView}}
|
||||
<a href="#Admin/entityManager/scope={{name}}">{{label}}</a>
|
||||
{{else}}
|
||||
{{label}}
|
||||
{{/if}}
|
||||
</td>
|
||||
<td>
|
||||
{{name}}
|
||||
</td>
|
||||
<td>
|
||||
{{#if type}}
|
||||
{{translateOption type field='type' scope='EntityManager'}}
|
||||
{{/if}}
|
||||
</td>
|
||||
<td>
|
||||
{{#if module}}
|
||||
{{translateOption module field='module' scope='EntityManager'}}
|
||||
{{/if}}
|
||||
</td>
|
||||
</tr>
|
||||
{{/each}}
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="no-data hidden">{{translate 'No Data'}}</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,30 @@
|
||||
<div class="margin-top margin-bottom-2x">
|
||||
<a role="button" tabindex="0" data-action="select" class="action btn btn-default" data-value="" style="cursor: pointer;">
|
||||
{{translate 'None'}}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="margin-top margin-bottom-2x">
|
||||
<input class="form-control" type="input" data-name="quick-search" placeholder="{{translate 'Search'}}">
|
||||
</div>
|
||||
|
||||
<div class="row icons">
|
||||
{{#each iconDataList}}
|
||||
{{#each this}}
|
||||
<div
|
||||
class="col-md-2 col-sm-2 icon-container"
|
||||
style="height: 6em; text-align: center; overflow: hidden;"
|
||||
data-name="{{./this}}"
|
||||
>
|
||||
<span data-action="select" class="action" data-value="{{./this}}" style="cursor: pointer;">
|
||||
<div style="text-align: center; height: 1.5em;">
|
||||
<span class="{{./this}}"></span>
|
||||
</div>
|
||||
<div style="text-align: center;">
|
||||
<span>{{./this}}</span>
|
||||
</div>
|
||||
</span>
|
||||
</div>
|
||||
{{/each}}
|
||||
{{/each}}
|
||||
</div>
|
||||
@@ -0,0 +1,10 @@
|
||||
<div class="row">
|
||||
<div data-name="{{field}}" class="cell col-sm-12">
|
||||
<label class="control-label" data-name="{{field}}">
|
||||
{{translate field category='fields' scope='EntityManager'}}
|
||||
</label>
|
||||
<div class="field" data-name="{{field}}">
|
||||
{{{var fieldKey this}}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
93
client/res/templates/admin/entity-manager/scope.tpl
Normal file
93
client/res/templates/admin/entity-manager/scope.tpl
Normal file
@@ -0,0 +1,93 @@
|
||||
<div class="page-header">
|
||||
<h3><a href="#Admin">{{translate 'Administration'}}</a>
|
||||
<span class="breadcrumb-separator"><span></span></span>
|
||||
<a href="#Admin/entityManager">{{translate 'Entity Manager' scope='Admin'}}</a>
|
||||
<span class="breadcrumb-separator"><span></span></span>
|
||||
{{translate scope category='scopeNames'}}
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
<div class="button-container">
|
||||
<div class="btn-group actions-btn-group" role="group">
|
||||
{{#if isEditable}}
|
||||
<button class="btn btn-default action btn-lg action btn-wide" data-action="editEntity">
|
||||
<span class="icon fas fa-cog"></span>
|
||||
{{translate 'Edit'}}
|
||||
</button>
|
||||
{{/if}}
|
||||
{{#if isRemovable}}
|
||||
<button class="btn btn-default btn-lg dropdown-toggle item-dropdown-button" data-toggle="dropdown">
|
||||
<span class="fas fa-ellipsis-h"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu pull-left">
|
||||
<li><a role="button" tabindex="0" data-action="removeEntity">{{translate 'Remove'}}</a></li>
|
||||
</ul>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="record record-container">{{{record}}}</div>
|
||||
<div class="record">
|
||||
<div class="record-grid">
|
||||
<div class="left">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body panel-body-form">
|
||||
<div class="row">
|
||||
<div class="cell col-sm-6 form-group">
|
||||
{{#if hasFields}}
|
||||
<div>
|
||||
<a
|
||||
class="btn btn-default btn-lg action btn-full-wide"
|
||||
href="#Admin/fieldManager/scope={{scope}}"
|
||||
>
|
||||
<span class="fas fa-asterisk"></span>
|
||||
{{translate 'Fields' scope='EntityManager'}}
|
||||
</a>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="cell col-sm-6 form-group">
|
||||
{{#if hasRelationships}}
|
||||
<div>
|
||||
<a
|
||||
class="btn btn-default btn-lg action btn-full-wide"
|
||||
href="#Admin/linkManager/scope={{scope}}"
|
||||
>
|
||||
<span class="fas fa-link"></span>
|
||||
{{translate 'Relationships' scope='EntityManager'}}
|
||||
</a>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="cell col-sm-6 form-group">
|
||||
{{#if hasLayouts}}
|
||||
<div>
|
||||
<a
|
||||
class="btn btn-default btn-lg action btn-full-wide"
|
||||
href="#Admin/layouts/scope={{scope}}&em=true"
|
||||
>
|
||||
<span class="fas fa-table"></span>
|
||||
{{translate 'Layouts' scope='EntityManager'}}
|
||||
</a>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="cell col-sm-6 form-group">
|
||||
{{#if hasFormula}}
|
||||
<div>
|
||||
<a
|
||||
class="btn btn-default btn-lg action btn-full-wide"
|
||||
data-action="editFormula"
|
||||
>
|
||||
<span class="fas fa-code"></span>
|
||||
{{translate 'Formula' scope='EntityManager'}}
|
||||
</a>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user