2019-11-05 15:59:06 +01:00
|
|
|
<aside id="sidebar_main">
|
|
|
|
<div *ngIf="stakeholder" class="sidebar_main_header">
|
2019-11-01 19:30:11 +01:00
|
|
|
<div class="uk-padding-small">
|
|
|
|
<img class="uk-margin-bottom" *ngIf="stakeholder.logoUrl" [src]="stakeholder.logoUrl">
|
2019-11-12 16:55:37 +01:00
|
|
|
<h4 class="uk-text-bold uk-margin-remove">{{stakeholder.index_name}}</h4>
|
|
|
|
<span class="uk-text-large">Admin Dashboard</span>
|
2019-11-01 19:30:11 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-05 15:59:06 +01:00
|
|
|
<div *ngIf="stakeholder" class="menu_section">
|
2019-11-01 19:30:11 +01:00
|
|
|
<ul>
|
|
|
|
<li [class.current_section]="analysisOpen"
|
|
|
|
[class.act_section]="analysisOpen"
|
|
|
|
title="Analysis Indicators"
|
|
|
|
class="submenu_trigger">
|
|
|
|
<a [routerLink]="" (click)="analysisOpen = !analysisOpen">
|
|
|
|
<span class="menu_icon"><i class="material-icons">donut_large</i></span>
|
|
|
|
<span class="menu_title">Analysis Indicators</span>
|
|
|
|
</a>
|
|
|
|
<ul [style.display]="(analysisOpen?'block':'none')">
|
2019-11-05 15:59:06 +01:00
|
|
|
<ng-template ngFor [ngForOf]="stakeholder.topics" let-topic let-i="index">
|
2019-11-01 19:30:11 +01:00
|
|
|
<li>
|
2019-11-12 16:55:37 +01:00
|
|
|
<a (click)="navigateTo(topic.alias)">
|
2019-11-01 19:30:11 +01:00
|
|
|
<span *ngIf="topic.icon" class="menu_icon uk-margin-small-right"><i
|
|
|
|
class="material-icons">{{topic.icon}}</i></span>
|
2019-11-12 16:55:37 +01:00
|
|
|
<div class="menu_title uk-inline">
|
|
|
|
{{topic.name}}
|
|
|
|
<button class="uk-position-center-right-out uk-margin-right uk-button uk-button-link onHover"
|
|
|
|
(click)="$event.stopPropagation();saveTopicOpen(editTopic, i)">
|
|
|
|
<i class="material-icons">more_horiz</i>
|
|
|
|
</button>
|
|
|
|
</div>
|
2019-11-01 19:30:11 +01:00
|
|
|
</a>
|
2019-11-12 16:55:37 +01:00
|
|
|
<div uk-drop="mode: none; offset: -2; delay-hide: 0;" #editTopic
|
|
|
|
class="uk-padding-large uk-padding-remove-vertical uk-padding-remove-right uk-drop">
|
|
|
|
<div *ngIf="copyTopic">
|
|
|
|
<div class="md-card">
|
|
|
|
<div class="md-card-content uk-position-relative">
|
|
|
|
<a [routerLink]="" class="uk-position-top-right">
|
|
|
|
<i (click)="hide(editTopic)" class="material-icons">close</i>
|
|
|
|
</a>
|
|
|
|
<div class="uk-grid-small" uk-grid>
|
|
|
|
<div class="uk-width-1-1">
|
|
|
|
<label class="uk-text-bold">Topic Settings</label>
|
|
|
|
<input class="uk-input uk-form-small" [(ngModel)]="copyTopic.name"
|
|
|
|
[class.uk-form-danger]="!valid" type="text">
|
|
|
|
</div>
|
|
|
|
<div class="uk-width-1-1">
|
|
|
|
<label>Description</label>
|
|
|
|
<textarea class="uk-textarea" [(ngModel)]="copyTopic.description"
|
|
|
|
rows="3"
|
|
|
|
[class.uk-form-danger]="!valid" type="text"></textarea>
|
|
|
|
</div>
|
|
|
|
<div class="uk-width-1-2">
|
|
|
|
<select class="uk-select uk-form-small" [(ngModel)]="copyTopic.isPublic">
|
|
|
|
<option [value]="true">Public</option>
|
|
|
|
<option [value]="false">Private</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="uk-width-1-2">
|
|
|
|
<select class="uk-select uk-form-small" [(ngModel)]="copyTopic.isActive">
|
|
|
|
<option [value]="true">Active</option>
|
|
|
|
<option [value]="false">Inactive</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<div class="uk-grid-small uk-child-width-1-2" uk-grid>
|
|
|
|
<div>
|
|
|
|
<button class="md-btn md-btn-small" (click)="deleteTopicOpen(editTopic, i)">Delete</button>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<button class="md-btn md-btn-small md-btn-primary uk-float-right"
|
|
|
|
(click)="saveTopic(editTopic, i)">Save
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-01 19:30:11 +01:00
|
|
|
</li>
|
|
|
|
</ng-template>
|
|
|
|
<li>
|
2019-11-12 16:55:37 +01:00
|
|
|
<a [routerLink]="" (click)="saveTopicOpen(newTopic)">
|
2019-11-01 19:30:11 +01:00
|
|
|
<span class="menu_icon"><i class="material-icons">add</i></span>
|
|
|
|
<span class="menu_title">Create new Topic</span>
|
|
|
|
</a>
|
2019-11-12 16:55:37 +01:00
|
|
|
<div uk-drop="mode: none; offset: -2; delay-hide: 0" #newTopic
|
2019-11-01 19:30:11 +01:00
|
|
|
class="uk-padding-large uk-padding-remove-vertical uk-padding-remove-right uk-drop">
|
2019-11-12 16:55:37 +01:00
|
|
|
<div *ngIf="copyTopic">
|
2019-11-01 19:30:11 +01:00
|
|
|
<div class="md-card">
|
|
|
|
<div class="md-card-content uk-position-relative">
|
|
|
|
<a [routerLink]="" class="uk-position-top-right">
|
2019-11-08 16:47:47 +01:00
|
|
|
<i (click)="hide(newTopic)" class="material-icons">close</i>
|
2019-11-01 19:30:11 +01:00
|
|
|
</a>
|
|
|
|
<div class="uk-grid-small" uk-grid>
|
|
|
|
<div class="uk-width-1-1">
|
|
|
|
<label class="uk-text-bold">New Topic</label>
|
2019-11-12 16:55:37 +01:00
|
|
|
<input class="uk-input uk-form-small" [(ngModel)]="copyTopic.name"
|
2019-11-01 19:30:11 +01:00
|
|
|
[class.uk-form-danger]="!valid" type="text">
|
|
|
|
</div>
|
2019-11-12 16:55:37 +01:00
|
|
|
<div class="uk-width-1-1">
|
|
|
|
<label>Description</label>
|
|
|
|
<textarea class="uk-textarea" [(ngModel)]="copyTopic.description"
|
|
|
|
rows="3"
|
|
|
|
[class.uk-form-danger]="!valid" type="text"></textarea>
|
|
|
|
</div>
|
2019-11-01 19:30:11 +01:00
|
|
|
<div class="uk-width-1-2">
|
2019-11-12 16:55:37 +01:00
|
|
|
<select class="uk-select uk-form-small" [(ngModel)]="copyTopic.isPublic">
|
2019-11-01 19:30:11 +01:00
|
|
|
<option [value]="true">Public</option>
|
|
|
|
<option [value]="false">Private</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="uk-width-1-2">
|
2019-11-12 16:55:37 +01:00
|
|
|
<select class="uk-select uk-form-small" [(ngModel)]="copyTopic.isActive">
|
2019-11-01 19:30:11 +01:00
|
|
|
<option [value]="true">Active</option>
|
|
|
|
<option [value]="false">Inactive</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<div class="uk-grid-small uk-child-width-1-2" uk-grid>
|
|
|
|
<div>
|
2019-11-08 16:47:47 +01:00
|
|
|
<button class="md-btn md-btn-small" (click)="hide(newTopic)">Cancel</button>
|
2019-11-01 19:30:11 +01:00
|
|
|
</div>
|
|
|
|
<div>
|
2019-11-12 16:55:37 +01:00
|
|
|
<button class="md-btn md-btn-small md-btn-primary uk-float-right" (click)="saveTopic(newTopic)">
|
|
|
|
Create
|
|
|
|
</button>
|
2019-11-01 19:30:11 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</aside>
|
|
|
|
<div id="page_content" click-outside-or-esc targetId="page_content" (clickOutside)="toggleOpen($event)">
|
|
|
|
<div id="page_content_inner">
|
|
|
|
<h4 class="uk-text-bold">
|
|
|
|
Customise your Monitor Dashboard!
|
|
|
|
</h4>
|
|
|
|
<div class="uk-text-large uk-margin-bottom">
|
|
|
|
<div>
|
|
|
|
Modify or add new topics, categories and content.<br><br>
|
2019-11-12 16:55:37 +01:00
|
|
|
Start your navigation through the <span class="md-color-blue-900">left side menu!</span>
|
2019-11-01 19:30:11 +01:00
|
|
|
</div>
|
|
|
|
<div class="uk-margin-small-top uk-margin-small-bottom uk-margin-large-left">
|
2019-11-05 15:59:06 +01:00
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="30" height="88" viewBox="0 0 30 88">
|
2019-11-01 19:30:11 +01:00
|
|
|
<g id="Group_749" data-name="Group 749" transform="translate(-872.168 -490.5)">
|
|
|
|
<text class="fill_text" id="OR" transform="translate(872.168 540.271)" font-size="18"
|
|
|
|
font-family="OpenSans-Bold, Open Sans" font-weight="900" opacity="0.8">
|
|
|
|
<tspan x="0" y="0">OR</tspan>
|
|
|
|
</text>
|
|
|
|
<line class="stroke_line" id="Line_225" data-name="Line 225" y2="30" transform="translate(885.5 490.5)"
|
|
|
|
fill="none" stroke="#000" stroke-width="1" opacity="0.2"/>
|
|
|
|
<line class="stroke_line" id="Line_226" data-name="Line 226" y2="30" transform="translate(885.5 548.5)"
|
|
|
|
fill="none" stroke="#000" stroke-width="1" opacity="0.2"/>
|
|
|
|
</g>
|
|
|
|
</svg>
|
|
|
|
</div>
|
|
|
|
<div class="uk-width-1-1">
|
2019-11-12 16:55:37 +01:00
|
|
|
Select one of the <span class="md-color-blue-900">topics below</span>!
|
2019-11-01 19:30:11 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-12 16:55:37 +01:00
|
|
|
<div *ngIf="stakeholder" class="uk-child-width-1-3@m uk-child-width-1-1@s uk-grid-medium" uk-grid
|
2019-11-13 12:16:35 +01:00
|
|
|
uk-height-match="target: .md-card; row: true">
|
2019-11-01 19:30:11 +01:00
|
|
|
<ng-template ngFor [ngForOf]="stakeholder.topics" let-topic>
|
|
|
|
<div>
|
|
|
|
<a [routerLink]="topic.alias">
|
2019-11-13 12:16:35 +01:00
|
|
|
<div class="md-card">
|
2019-11-01 19:30:11 +01:00
|
|
|
<div class="md-card-content">
|
|
|
|
<h6 class="uk-text-bold">{{topic.name}}</h6>
|
|
|
|
<div class="uk-text-secondary">
|
|
|
|
{{topic.description}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</ng-template>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-12 16:55:37 +01:00
|
|
|
<modal-alert #deleteTopicModal (alertOutput)="deleteTopic()"></modal-alert>
|