Skip to content

Commit ed2cf2b

Browse files
author
Néstor Diaz
authored
Add title as display name to templates (#448)
1 parent e738246 commit ed2cf2b

11 files changed

Lines changed: 16 additions & 4 deletions

File tree

src/app/pages/submission/submission-other/new-submission-button/add-subm-modal.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ <h4 class="modal-title">New submission</h4>
1616
<input id="{{tmpl.name}}" type="radio" class="form-check-input" [name]="tmpl.name" [value]="tmpl.name"
1717
[(ngModel)]="selected">
1818
<label class="form-check-label" for="{{tmpl.name}}" [tooltip]="tmpl.description"
19-
placement="right">{{tmpl.name}}</label>
19+
placement="right">{{tmpl.title}}</label>
2020
</div>
2121
</ng-container>
2222
</div>

src/app/pages/submission/submission-other/new-submission-button/add-subm-modal.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { BsModalRef } from 'ngx-bootstrap/modal';
88
export class AddSubmModalComponent {
99
onOk?: (selected: string) => void;
1010
selected: string = 'Default';
11-
templates?: Array<{ description: string; name: string }> = [];
11+
templates?: Array<{ description: string; name: string; title: string }> = [];
1212

1313
constructor(public bsModalRef: BsModalRef) {}
1414

src/app/pages/submission/submission-shared/model/templates/arrayexpress.template.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export const arrayExpressTemplate = {
22
name: 'ArrayExpress',
3+
title: 'ArrayExpress',
34
description: 'ArrayExpress studies',
45
display: 'readonly',
56
sectionType: {

src/app/pages/submission/submission-shared/model/templates/bia.template.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export const biaTemplate = {
22
name: 'BioImages',
3+
title: 'BioImages',
34
description: 'High Content Screen Image Study',
45
sectionType: {
56
display: 'required',

src/app/pages/submission/submission-shared/model/templates/default.template.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export const defaultTemplate = {
22
name: 'Default',
3+
title: 'Default',
34
description: 'Generic submission for stand-alone or generic studies',
45
sectionType: {
56
name: 'Study',

src/app/pages/submission/submission-shared/model/templates/empty.template.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export const emptyTemplate = {
22
name: 'Empty',
3+
title: 'Empty',
34
description: 'Empty Template',
45
sectionType: {
56
name: 'Empty section'

src/app/pages/submission/submission-shared/model/templates/eutoxrisk.template.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export const euToxRiskTemplate = {
22
name: 'EU-ToxRisk',
3+
title: 'EU-ToxRisk',
34
description: 'Integrated European programme for mechanism-based Toxicity testing and Risk assessment',
45
sectionType: {
56
name: 'Study',

src/app/pages/submission/submission-shared/model/templates/hecatos.template.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export const hecatosTemplate = {
22
name: 'HeCaToS',
3+
title: 'HeCaToS',
34
description: 'Hepatic and Cardiac Toxicity Systems modelling',
45
sectionType: {
56
name: 'Study',

src/app/pages/submission/submission-shared/model/templates/proteindesigns.template.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
export const proteinDesignsTemplate = {
22
name: 'ProteinDesigns',
3-
description: 'Protein Designs Template',
3+
title: 'Protein Designs',
4+
description: 'Protein Engineering and Design project',
45
sectionType: {
56
name: 'Study',
67
displayAnnotations: true,

src/app/pages/submission/submission-shared/model/templates/readonly.template.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export const readonlyTemplate = {
22
name: 'ReadOnly',
3+
title: 'Read Only',
34
description: 'Readonly studies',
45
display: 'readonly',
56
sectionType: {

0 commit comments

Comments
 (0)