Initial commit
This commit is contained in:
37
client/res/templates/role/modals/add-field.tpl
Normal file
37
client/res/templates/role/modals/add-field.tpl
Normal file
@@ -0,0 +1,37 @@
|
||||
<div class="button-container negate-no-side-margin">
|
||||
<input
|
||||
type="text"
|
||||
maxlength="64"
|
||||
placeholder="{{translate 'Search'}}"
|
||||
data-name="quick-search"
|
||||
class="form-control"
|
||||
spellcheck="false"
|
||||
>
|
||||
</div>
|
||||
<div class="list-container">
|
||||
<div class="list">
|
||||
<table class="table fields-table">
|
||||
{{#each dataList}}
|
||||
<tr data-name="{{name}}">
|
||||
<td class="r-checkbox" style="width: 40px;">
|
||||
<span class="record-checkbox-container">
|
||||
<input
|
||||
type="checkbox"
|
||||
data-name="{{name}}"
|
||||
class="record-checkbox form-checkbox form-checkbox-small"
|
||||
>
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<a
|
||||
role="button"
|
||||
tabindex="0"
|
||||
data-action="addField"
|
||||
data-name="{{name}}"
|
||||
>{{label}}</a>
|
||||
</td>
|
||||
</tr>
|
||||
{{/each}}
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
1
client/res/templates/role/record/panels/side.tpl
Normal file
1
client/res/templates/role/record/panels/side.tpl
Normal file
@@ -0,0 +1 @@
|
||||
<span class="text-danger">{{translate 'changesAfterClearCache' scope='Role' category='messages'}}</span>
|
||||
147
client/res/templates/role/table-edit.tpl
Normal file
147
client/res/templates/role/table-edit.tpl
Normal file
@@ -0,0 +1,147 @@
|
||||
|
||||
<div class="button-container">
|
||||
<input
|
||||
type="text"
|
||||
maxlength="64"
|
||||
placeholder="{{translate 'Search'}}"
|
||||
data-name="quick-search"
|
||||
class="form-control"
|
||||
spellcheck="false"
|
||||
>
|
||||
</div>
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h4 class="panel-title">{{translate 'Scope Level' scope='Role'}}</h4>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="no-margin">
|
||||
<table class="table table-bordered-inside no-margin scope-level">
|
||||
<tr>
|
||||
<th></th>
|
||||
<th style="width: 20%">{{translate 'Access' scope='Role'}}</th>
|
||||
{{#each actionList}}
|
||||
<th style="width: 11%">{{translate this scope='Role' category='actions'}}</th>
|
||||
{{/each}}
|
||||
</tr>
|
||||
{{#each tableDataList}}
|
||||
{{#unless this}}
|
||||
<tr data-name="_" class="item-row">
|
||||
<td><div class="detail-field-container">​</div></td><td></td>
|
||||
</tr>
|
||||
{{else}}
|
||||
<tr data-name="{{name}}" class="item-row">
|
||||
<td>
|
||||
<div class="detail-field-container">
|
||||
<b>{{translate name category='scopeNamesPlural'}}</b>
|
||||
</div>
|
||||
</td>
|
||||
<td data-name="{{name}}">{{{lookup ../this name}}}</td>
|
||||
|
||||
{{#ifNotEqual type 'boolean'}}
|
||||
{{#each list}}
|
||||
<td data-name="{{name}}">
|
||||
<div
|
||||
data-name="{{name}}"
|
||||
class=" {{#if (lookup ../../hiddenFields name) }} hidden {{/if}} "
|
||||
>{{{lookup ../../this name}}}</div>
|
||||
</td>
|
||||
{{/each}}
|
||||
{{/ifNotEqual}}
|
||||
</tr>
|
||||
{{/unless}}
|
||||
{{/each}}
|
||||
</table>
|
||||
|
||||
<div class="sticky-header-scope hidden sticky-head">
|
||||
<table class="table borderless no-margin">
|
||||
<tr>
|
||||
<th></th>
|
||||
<th style="width: 20%">{{translate 'Access' scope='Role'}}</th>
|
||||
{{#each actionList}}
|
||||
<th style="width: 11%">{{translate this scope='Role' category='actions'}}</th>
|
||||
{{/each}}
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{#if fieldTableDataList.length}}
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h4 class="panel-title">{{translate 'Field Level' scope='Role'}}</h4>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="no-margin" style="margin-bottom: 0;">
|
||||
<table class="table table-bordered-inside table-bottom-bordered no-margin field-level">
|
||||
<tr>
|
||||
<th></th>
|
||||
<th style="width: 20%"></th>
|
||||
{{#each fieldActionList}}
|
||||
<th style="width: 11%">{{translate this scope='Role' category='actions'}}</th>
|
||||
{{/each}}
|
||||
<th style="width: 33%"></th>
|
||||
</tr>
|
||||
{{#each fieldTableDataList}}
|
||||
<tr data-name="{{name}}" class="item-row accented">
|
||||
<td>
|
||||
<div class="detail-field-container">
|
||||
<b>{{translate name category='scopeNamesPlural'}}</b>
|
||||
</div>
|
||||
</td>
|
||||
<td><button
|
||||
type="button"
|
||||
class="btn btn-link action"
|
||||
data-action="addField"
|
||||
data-scope="{{name}}"
|
||||
title="{{translate 'Add Field'}}"
|
||||
><span class="fas fa-plus fa-sm"></span></button></td>
|
||||
<td colspan="3"></td>
|
||||
</tr>
|
||||
{{#each list}}
|
||||
<tr data-name="{{../name}}" class="item-row">
|
||||
<td></td>
|
||||
<td>
|
||||
<div class="detail-field-container">
|
||||
<span>{{translate name category='fields' scope=../name}}</span>
|
||||
</div>
|
||||
</td>
|
||||
{{#each list}}
|
||||
<td>
|
||||
<div data-name="{{name}}">{{{lookup ../../../this name}}}</div>
|
||||
</td>
|
||||
{{/each}}
|
||||
<td colspan="2">
|
||||
<a
|
||||
role="button"
|
||||
tabindex="0"
|
||||
class="btn btn-link action"
|
||||
title="{{translate 'Remove'}}"
|
||||
data-action="removeField"
|
||||
data-field="{{name}}"
|
||||
data-scope="{{../name}}"
|
||||
><span class="fas fa-minus fa-sm"></span></a>
|
||||
</td>
|
||||
</tr>
|
||||
{{/each}}
|
||||
{{/each}}
|
||||
</table>
|
||||
|
||||
<div class="sticky-header-field hidden sticky-head">
|
||||
<table class="table borderless no-margin">
|
||||
<tr>
|
||||
<th></th>
|
||||
<th style="width: 20%"></th>
|
||||
{{#each fieldActionList}}
|
||||
<th style="width: 11%">{{translate this scope='Role' category='actions'}}</th>
|
||||
{{/each}}
|
||||
<th style="width: 33%"></th>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
127
client/res/templates/role/table.tpl
Normal file
127
client/res/templates/role/table.tpl
Normal file
@@ -0,0 +1,127 @@
|
||||
|
||||
<div class="button-container negate-no-side-margin">
|
||||
<input
|
||||
type="text"
|
||||
maxlength="64"
|
||||
placeholder="{{translate 'Search'}}"
|
||||
data-name="quick-search"
|
||||
class="form-control"
|
||||
spellcheck="false"
|
||||
>
|
||||
</div>
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h4 class="panel-title">{{translate 'Scope Level' scope='Role'}}</h4>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="no-margin">
|
||||
<table class="table table-bordered-inside no-margin scope-level">
|
||||
<tr>
|
||||
<th></th>
|
||||
<th style="width: 20%">{{translate 'Access' scope='Role'}}</th>
|
||||
{{#each actionList}}
|
||||
<th style="width: 11%">{{translate this scope='Role' category='actions'}}</th>
|
||||
{{/each}}
|
||||
</tr>
|
||||
{{#each tableDataList}}
|
||||
{{#unless this}}
|
||||
<tr data-name="_" class="item-row">
|
||||
<td>​</td><td></td>
|
||||
</tr>
|
||||
{{else}}
|
||||
<tr data-name="{{name}}" class="item-row">
|
||||
<td><b>{{translate name category='scopeNamesPlural'}}</b></td>
|
||||
|
||||
<td data-name="{{name}}">{{{lookup ../this name}}}</td>
|
||||
|
||||
{{#ifNotEqual type 'boolean'}}
|
||||
{{#each list}}
|
||||
<td data-name="{{name}}">
|
||||
<div
|
||||
data-name="{{name}}"
|
||||
class="cell {{#if (lookup ../../hiddenFields name) }} hidden {{/if}} "
|
||||
>
|
||||
{{#ifNotEqual access 'not-set'}}
|
||||
{{{lookup ../../this name}}}
|
||||
{{/ifNotEqual}}
|
||||
</div>
|
||||
</td>
|
||||
{{/each}}
|
||||
{{/ifNotEqual}}
|
||||
</tr>
|
||||
{{/unless}}
|
||||
{{/each}}
|
||||
</table>
|
||||
|
||||
<div class="sticky-header-scope hidden sticky-head">
|
||||
<table class="table borderless no-margin">
|
||||
<tr>
|
||||
<th></th>
|
||||
<th style="width: 20%">{{translate 'Access' scope='Role'}}</th>
|
||||
{{#each actionList}}
|
||||
<th style="width: 11%">{{translate this scope='Role' category='actions'}}</th>
|
||||
{{/each}}
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{{#if hasFieldLevelData}}
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h4 class="panel-title">{{translate 'Field Level' scope='Role'}}</h4>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="no-margin">
|
||||
<table class="table table-bordered-inside no-margin field-level">
|
||||
<tr>
|
||||
<th></th>
|
||||
<th style="width: 20%"></th>
|
||||
{{#each fieldActionList}}
|
||||
<th style="width: 11%">{{translate this scope='Role' category='actions'}}</th>
|
||||
{{/each}}
|
||||
<th style="width: 33%"></th>
|
||||
</tr>
|
||||
{{#each fieldTableDataList}}
|
||||
{{#if list.length}}
|
||||
<tr data-name="{{name}}" class="item-row accented">
|
||||
<td><b>{{translate name category='scopeNamesPlural'}}</b></td>
|
||||
<td></td>
|
||||
<td colspan="3"></td>
|
||||
</tr>
|
||||
{{/if}}
|
||||
{{#each list}}
|
||||
<tr data-name="{{../name}}" class="item-row">
|
||||
<td></td>
|
||||
<td>{{translate name category='fields' scope=../name}}</td>
|
||||
{{#each list}}
|
||||
<td>
|
||||
<div data-name="{{name}}">{{{lookup ../../../this name}}}</div>
|
||||
</td>
|
||||
{{/each}}
|
||||
<td colspan="3"></td>
|
||||
</tr>
|
||||
{{/each}}
|
||||
{{/each}}
|
||||
</table>
|
||||
|
||||
<div class="sticky-header-field hidden sticky-head">
|
||||
<table class="table borderless no-margin">
|
||||
<tr>
|
||||
<th></th>
|
||||
<th style="width: 20%"></th>
|
||||
{{#each fieldActionList}}
|
||||
<th style="width: 11%">{{translate this scope='Role' category='actions'}}</th>
|
||||
{{/each}}
|
||||
<th style="width: 33%"></th>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
Reference in New Issue
Block a user