-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
91a1adc
commit 4da7dca
Showing
9 changed files
with
378 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 20 additions & 14 deletions
34
src/app/components/proceedings/context-menu/context-menu.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/app/modals/download-modal/download-modal.component.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
.conversion { | ||
margin-right: 5px; | ||
margin-bottom: 2px; | ||
font-size: 0.9em; | ||
display: inline; | ||
background-color: whitesmoke; | ||
padding: 3px; | ||
float: left; | ||
white-space: nowrap; | ||
} | ||
|
||
.conversion * { | ||
cursor: pointer; | ||
} | ||
|
||
.conversion input { | ||
margin-right: 3px; | ||
} | ||
|
||
.conversion label { | ||
margin-bottom: 3px; | ||
} |
30 changes: 30 additions & 0 deletions
30
src/app/modals/download-modal/download-modal.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<ng-template #content let-c="close" let-d="dismiss"> | ||
<div class="modal-header"> | ||
<h4 class="modal-title">Download results by {{type}}</h4> | ||
<button type="button" class="close" aria-label="Close" (click)="d()"> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
</div> | ||
<div class="modal-body"> | ||
<p>Add conversions (optional):</p> | ||
<div> | ||
<ng-container *ngFor="let conversion of AppInfo.converters; let i = index"> | ||
<div class="conversion"> | ||
<input class="conversion-check" [attr.id]="'check-' + i" type="checkbox" | ||
[name]="conversion.obj.name"/> <label [attr.for]="'check-' + i"> <i class="fa fa-file-text" | ||
[ngStyle]="{color: conversion.color}"></i> | ||
{{conversion.obj.name}} ({{conversion.obj.extension}})</label> | ||
</div> | ||
</ng-container> | ||
<div class="clearfix"></div> | ||
</div> | ||
<ng-container *ngIf="type === 'line'"> | ||
<input type="checkbox" id="remove-check"/> <label style="margin-left:3px;" for="remove-check">remove | ||
selected lines from table</label><br/><br/> | ||
</ng-container> | ||
<button class="btn btn-primary" style="width:100%;" (click)="process()">DOWNLOAD</button> | ||
</div> | ||
<div class="modal-footer"> | ||
<button type="button" class="btn btn-outline-dark" (click)="c()">Close</button> | ||
</div> | ||
</ng-template> |
25 changes: 25 additions & 0 deletions
25
src/app/modals/download-modal/download-modal.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import {async, ComponentFixture, TestBed} from '@angular/core/testing'; | ||
|
||
import {DownloadModalComponent} from './download-modal.component'; | ||
|
||
describe('DownloadModalComponent', () => { | ||
let component: DownloadModalComponent; | ||
let fixture: ComponentFixture<DownloadModalComponent>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [DownloadModalComponent] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(DownloadModalComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
Oops, something went wrong.