-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
form options: item type and location
* Adds custom widgets * Adds a new column "type" on item_type * Adds a new column "is_online" on location Co-Authored-by: Bertrand Zuchuat <[email protected]> Co-Authored-by: Alicia Zangger <[email protected]>
- Loading branch information
1 parent
66d5964
commit bfb4d49
Showing
18 changed files
with
511 additions
and
30 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,8 @@ | |
"$schema", | ||
"pid", | ||
"name", | ||
"organisation" | ||
"organisation", | ||
"type" | ||
], | ||
"properties": { | ||
"$schema": { | ||
|
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
43 changes: 43 additions & 0 deletions
43
ui/src/app/records/editor/checkbox-is-online/checkbox-is-online.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,43 @@ | ||
<!-- | ||
RERO ILS | ||
Copyright (C) 2019 RERO | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Affero General Public License as published by | ||
the Free Software Foundation, version 3 of the License. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU Affero General Public License for more details. | ||
You should have received a copy of the GNU Affero General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
--> | ||
<label | ||
[attr.for]="'control' + layoutNode?._id" | ||
[class]="options?.itemLabelHtmlClass || ''"> | ||
<input *ngIf="boundControl" | ||
[formControl]="formControl" | ||
[attr.aria-describedby]="'control' + layoutNode?._id + 'Status'" | ||
[id]="'control' + layoutNode?._id" | ||
[name]="controlName" | ||
[readonly]="options?.readonly ? 'readonly' : null" | ||
type="checkbox"> | ||
<input *ngIf="!boundControl" | ||
[attr.aria-describedby]="'control' + layoutNode?._id + 'Status'" | ||
[checked]="isChecked ? 'checked' : null" | ||
[disabled]="controlDisabled" | ||
[id]="'control' + layoutNode?._id" | ||
[name]="controlName" | ||
[readonly]="options?.readonly ? 'readonly' : null" | ||
[value]="controlValue" | ||
type="checkbox" | ||
(change)="updateValue($event)"> | ||
<span *ngIf="options?.label" | ||
[style.display]="options?.nolabel ? 'none' : ''" | ||
[class]="options?.label ? 'ml-2' : ''" | ||
[innerHTML]="options?.label"></span> | ||
</label> |
18 changes: 18 additions & 0 deletions
18
ui/src/app/records/editor/checkbox-is-online/checkbox-is-online.component.scss
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,18 @@ | ||
/* | ||
RERO ILS | ||
Copyright (C) 2019 RERO | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Affero General Public License as published by | ||
the Free Software Foundation, version 3 of the License. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU Affero General Public License for more details. | ||
You should have received a copy of the GNU Affero General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ |
43 changes: 43 additions & 0 deletions
43
ui/src/app/records/editor/checkbox-is-online/checkbox-is-online.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,43 @@ | ||
/* | ||
RERO ILS | ||
Copyright (C) 2019 RERO | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Affero General Public License as published by | ||
the Free Software Foundation, version 3 of the License. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU Affero General Public License for more details. | ||
You should have received a copy of the GNU Affero General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { CheckboxIsOnlineComponent } from './checkbox-is-online.component'; | ||
|
||
describe('CheckboxIsOnlineComponent', () => { | ||
let component: CheckboxIsOnlineComponent; | ||
let fixture: ComponentFixture<CheckboxIsOnlineComponent>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ CheckboxIsOnlineComponent ] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(CheckboxIsOnlineComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
Oops, something went wrong.