Sidebar: Remove active element. Pages, entities, portals, classes: Fix grid padding. Display-claims: disable search and dropdown-filter.
This commit is contained in:
parent
5a58cc01f9
commit
a738d3bb49
|
@ -1,12 +1,12 @@
|
||||||
<schema2jsonld *ngIf="url" [URL]="url" [name]="pageTitle" type="other"></schema2jsonld>
|
<schema2jsonld *ngIf="url" [URL]="url" [name]="pageTitle" type="other"></schema2jsonld>
|
||||||
<div class="uk-grid">
|
<div class="uk-grid">
|
||||||
<div class="uk-width-expand uk-position-relative">
|
<div class="uk-width-expand uk-position-relative">
|
||||||
<div *ngIf="!loading">
|
<div>
|
||||||
<helper *ngIf="pageContents && pageContents['top'] && pageContents['top'].length > 0"
|
<helper *ngIf="pageContents && pageContents['top'] && pageContents['top'].length > 0"
|
||||||
[texts]="pageContents['top']"></helper>
|
[texts]="pageContents['top']"></helper>
|
||||||
<div *ngIf="filterForm" class="uk-margin-top">
|
<div *ngIf="filterForm" class="uk-margin-top">
|
||||||
<div class="uk-flex uk-flex-right@m uk-flex-center uk-flex-wrap uk-flex-middle">
|
<div class="uk-flex uk-flex-right@m uk-flex-center uk-flex-wrap uk-flex-middle">
|
||||||
<div search-input [searchControl]="filterForm.controls.keyword" searchInputClass="outer"
|
<div search-input [disabled]="loading" [searchControl]="filterForm.controls.keyword" searchInputClass="outer"
|
||||||
placeholder="Search links" class="uk-width-1-3@xl uk-width-2-5@l uk-width-1-2@m uk-width-1-1"
|
placeholder="Search links" class="uk-width-1-3@xl uk-width-2-5@l uk-width-1-2@m uk-width-1-1"
|
||||||
(searchEmitter)="changeKeyword()" [expandable]="true"></div>
|
(searchEmitter)="changeKeyword()" [expandable]="true"></div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
<div class="uk-grid uk-flex-middle uk-margin-medium-top" uk-grid>
|
<div class="uk-grid uk-flex-middle uk-margin-medium-top" uk-grid>
|
||||||
<div>
|
<div>
|
||||||
<dropdown-filter #dropdownFilter dropdownClass="uk-width-medium uk-padding-small"
|
<dropdown-filter #dropdownFilter dropdownClass="uk-width-medium uk-padding-small"
|
||||||
name="Type of Entity" [count]="entities.length">
|
name="Type of Entity" [disabled]="loading" [count]="entities.length">
|
||||||
<h6 class="uk-margin-remove-bottom" title="Type of Entity">Type of Entity</h6>
|
<h6 class="uk-margin-remove-bottom" title="Type of Entity">Type of Entity</h6>
|
||||||
<ul class="uk-list uk-margin-remove-bottom">
|
<ul class="uk-list uk-margin-remove-bottom">
|
||||||
<li *ngFor="let option of allOptions">
|
<li *ngFor="let option of allOptions">
|
||||||
|
|
|
@ -24,14 +24,16 @@
|
||||||
class="title">{{type.label}}</span></a></li>
|
class="title">{{type.label}}</span></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="uk-width-1-1 uk-flex uk-flex-right@m uk-flex-center uk-flex-wrap uk-flex-middle uk-grid" uk-grid>
|
<div class="uk-width-1-1">
|
||||||
<div search-input [disabled]="showLoading" [expandable]="true" [searchControl]="filterForm.get('keyword')" searchInputClass="outer" placeholder="Search class" class="uk-width-1-3@xl uk-width-2-5@l uk-width-1-2@m uk-width-1-1"></div>
|
<div class="uk-flex uk-flex-right@m uk-flex-center uk-flex-wrap uk-flex-middle uk-grid" uk-grid>
|
||||||
<div>
|
<div search-input [disabled]="showLoading" [expandable]="true" [searchControl]="filterForm.get('keyword')" searchInputClass="outer" placeholder="Search class" class="uk-width-1-3@xl uk-width-2-5@l uk-width-1-2@m uk-width-1-1"></div>
|
||||||
<button class="uk-button uk-button-default uk-flex uk-flex-middle" (click)="newDivId()"
|
<div>
|
||||||
[disabled]="showLoading" [class.uk-disabled]="showLoading">
|
<button class="uk-button uk-button-default uk-flex uk-flex-middle" (click)="newDivId()"
|
||||||
<icon name="add" [flex]="true"></icon>
|
[disabled]="showLoading" [class.uk-disabled]="showLoading">
|
||||||
<span class="uk-margin-small-left uk-text-bold uk-text-uppercase">Add class</span>
|
<icon name="add" [flex]="true"></icon>
|
||||||
</button>
|
<span class="uk-margin-small-left uk-text-bold uk-text-uppercase">Add class</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -26,15 +26,17 @@
|
||||||
(click)="filterForm.get('status').setValue('disabled')"><span class="title">Disabled</span></a></li>
|
(click)="filterForm.get('status').setValue('disabled')"><span class="title">Disabled</span></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="uk-width-1-1 uk-flex uk-flex-right@m uk-flex-center uk-flex-wrap uk-flex-middle uk-grid" uk-grid>
|
<div class="uk-width-1-1">
|
||||||
<div search-input [expandable]="true" [searchControl]="filterForm.get('keyword')" searchInputClass="outer" placeholder="Search entity"
|
<div class="uk-flex uk-flex-right@m uk-flex-center uk-flex-wrap uk-flex-middle uk-grid" uk-grid>
|
||||||
[disabled]="showLoading" class="uk-width-1-3@xl uk-width-2-5@l uk-width-1-2@m uk-width-1-1"></div>
|
<div search-input [expandable]="true" [searchControl]="filterForm.get('keyword')" searchInputClass="outer" placeholder="Search entity"
|
||||||
<div *ngIf="isPortalAdministrator">
|
[disabled]="showLoading" class="uk-width-1-3@xl uk-width-2-5@l uk-width-1-2@m uk-width-1-1"></div>
|
||||||
<button class="uk-button uk-button-default uk-flex uk-flex-middle" (click)="newEntity()"
|
<div *ngIf="isPortalAdministrator">
|
||||||
[disabled]="showLoading" [class.uk-disabled]="showLoading">
|
<button class="uk-button uk-button-default uk-flex uk-flex-middle" (click)="newEntity()"
|
||||||
<icon name="add" [flex]="true"></icon>
|
[disabled]="showLoading" [class.uk-disabled]="showLoading">
|
||||||
<span class="uk-margin-small-left uk-text-bold uk-text-uppercase">Add entity</span>
|
<icon name="add" [flex]="true"></icon>
|
||||||
</button>
|
<span class="uk-margin-small-left uk-text-bold uk-text-uppercase">Add entity</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -15,16 +15,17 @@
|
||||||
</div>
|
</div>
|
||||||
<div inner>
|
<div inner>
|
||||||
<div class="uk-grid uk-flex-middle uk-margin-top" uk-grid>
|
<div class="uk-grid uk-flex-middle uk-margin-top" uk-grid>
|
||||||
<div class="uk-width-1-1">
|
<div class="uk-width-1-1">
|
||||||
<ul class="uk-subnav uk-subnav-pill">
|
<ul class="uk-subnav uk-subnav-pill">
|
||||||
<li [class.uk-active]="filterForm.get('type').value === 'all'"><a
|
<li [class.uk-active]="filterForm.get('type').value === 'all'"><a
|
||||||
(click)="filterForm.get('type').setValue('all')"><span>All pages</span></a></li>
|
(click)="filterForm.get('type').setValue('all')"><span>All pages</span></a></li>
|
||||||
<li *ngFor="let type of typeOptions; let i=index"
|
<li *ngFor="let type of typeOptions; let i=index"
|
||||||
[class.uk-active]="filterForm.get('type').value === type.value"><a
|
[class.uk-active]="filterForm.get('type').value === type.value"><a
|
||||||
(click)="filterForm.get('type').setValue(type.value)"><span>{{type.label}}</span></a></li>
|
(click)="filterForm.get('type').setValue(type.value)"><span>{{type.label}}</span></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="uk-width-1-1 uk-flex uk-flex-right@m uk-flex-center uk-flex-wrap uk-flex-middle uk-grid" uk-grid>
|
<div class="uk-width-1-1">
|
||||||
|
<div class="uk-flex uk-flex-right@m uk-flex-center uk-flex-wrap uk-flex-middle uk-grid" uk-grid>
|
||||||
<div search-input [expandable]="true" [searchControl]="filterForm.get('keyword')" searchInputClass="outer"
|
<div search-input [expandable]="true" [searchControl]="filterForm.get('keyword')" searchInputClass="outer"
|
||||||
placeholder="Search page" [disabled]="showLoading"
|
placeholder="Search page" [disabled]="showLoading"
|
||||||
class="uk-width-1-3@xl uk-width-2-5@l uk-width-1-2@m uk-width-1-1"></div>
|
class="uk-width-1-3@xl uk-width-2-5@l uk-width-1-2@m uk-width-1-1"></div>
|
||||||
|
@ -37,6 +38,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="uk-section uk-section-small uk-position-relative" style="min-height: 60vh">
|
<div class="uk-section uk-section-small uk-position-relative" style="min-height: 60vh">
|
||||||
<div *ngIf="showLoading" class="uk-position-center">
|
<div *ngIf="showLoading" class="uk-position-center">
|
||||||
<loading></loading>
|
<loading></loading>
|
||||||
|
|
|
@ -24,15 +24,17 @@
|
||||||
class="title">{{type.label}}</span></a></li>
|
class="title">{{type.label}}</span></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="uk-width-1-1 uk-flex uk-flex-right@m uk-flex-center uk-flex-wrap uk-flex-middle uk-grid" uk-grid>
|
<div class="uk-width-1-1">
|
||||||
<div search-input [expandable]="true" [searchControl]="filterForm.get('keyword')" searchInputClass="outer" placeholder="Search portal"
|
<div class="uk-flex uk-flex-right@m uk-flex-center uk-flex-wrap uk-flex-middle uk-grid" uk-grid>
|
||||||
[disabled]="showLoading" colorClass="uk-text-secondary" class="uk-width-1-3@xl uk-width-2-5@l uk-width-1-2@m uk-width-1-1"></div>
|
<div search-input [expandable]="true" [searchControl]="filterForm.get('keyword')" searchInputClass="outer" placeholder="Search portal"
|
||||||
<div>
|
[disabled]="showLoading" colorClass="uk-text-secondary" class="uk-width-1-3@xl uk-width-2-5@l uk-width-1-2@m uk-width-1-1"></div>
|
||||||
<button class="uk-button uk-button-default uk-flex uk-flex-middle" (click)="newPortal()"
|
<div>
|
||||||
[disabled]="showLoading" [class.uk-disabled]="showLoading">
|
<button class="uk-button uk-button-default uk-flex uk-flex-middle" (click)="newPortal()"
|
||||||
<icon name="add" [flex]="true"></icon>
|
[disabled]="showLoading" [class.uk-disabled]="showLoading">
|
||||||
<span class="uk-margin-small-left uk-text-bold uk-text-uppercase">Add portal</span>
|
<icon name="add" [flex]="true"></icon>
|
||||||
</button>
|
<span class="uk-margin-small-left uk-text-bold uk-text-uppercase">Add portal</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
<aside id="sidebar_main">
|
<aside id="sidebar_main">
|
||||||
<div id="sidebar_content">
|
<div id="sidebar_content">
|
||||||
<div *ngIf="items.length > 0" class="menu_section uk-margin-xlarge-top" style="min-height: 30vh">
|
<div *ngIf="items.length > 0" class="menu_section uk-margin-xlarge-top" style="min-height: 30vh">
|
||||||
<div *ngIf="items[activeIndex]" class="active" [style]="'--index: ' + activeIndex + '; --size: ' + (items[activeIndex].icon?'40px':0)"></div>
|
|
||||||
<ul class="uk-list uk-nav uk-nav-default" uk-nav>
|
<ul class="uk-list uk-nav uk-nav-default" uk-nav>
|
||||||
<ng-template ngFor [ngForOf]="items" let-item let-i="index">
|
<ng-template ngFor [ngForOf]="items" let-item let-i="index">
|
||||||
<li [class.uk-active]="isTheActiveMenuItem(item)"
|
<li [class.uk-active]="isTheActiveMenuItem(item)"
|
||||||
|
|
|
@ -11,9 +11,9 @@ import {OpenaireEntities} from "../utils/properties/searchFields";
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'error',
|
selector: 'error',
|
||||||
template: `
|
template: `
|
||||||
<div id="tm-main" class=" uk-section tm-middle">
|
<div class="uk-section">
|
||||||
<div uk-grid class="uk-margin-small-top">
|
<div class="uk-margin-small-top uk-grid">
|
||||||
<div class="tm-main uk-width-1-1@s uk-width-1-1@m uk-width-1-1@l uk-row-first ">
|
<div class="tm-main uk-width-1-1@s uk-width-1-1@m uk-width-1-1@l uk-row-first">
|
||||||
<div class="uk-container">
|
<div class="uk-container">
|
||||||
<h3>
|
<h3>
|
||||||
<span *ngIf="page !='-1'">Bad karma: we can't find that page!</span>
|
<span *ngIf="page !='-1'">Bad karma: we can't find that page!</span>
|
||||||
|
|
|
@ -100,7 +100,7 @@ declare var UIkit;
|
||||||
<div class="uk-label uk-label-small uk-flex uk-flex-middle"
|
<div class="uk-label uk-label-small uk-flex uk-flex-middle"
|
||||||
[attr.uk-tooltip]="(tooltip)?('title: ' + getLabel(chip.value) + '; delay: 500; pos: bottom-left'):null">
|
[attr.uk-tooltip]="(tooltip)?('title: ' + getLabel(chip.value) + '; delay: 500; pos: bottom-left'):null">
|
||||||
<span class="uk-text-truncate uk-width-expand">{{getLabel(chip.value)}}</span>
|
<span class="uk-text-truncate uk-width-expand">{{getLabel(chip.value)}}</span>
|
||||||
<icon [class.uk-invisible]="!focused" (click)="remove(i, $event)" class="uk-link-text uk-margin-small-left clickable" [flex]="true"
|
<icon *ngIf="focused" (click)="remove(i, $event)" class="uk-link-text uk-margin-small-left clickable" [flex]="true"
|
||||||
name="close" ratio="0.7"></icon>
|
name="close" ratio="0.7"></icon>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue