LP 1857351: fix field order for Course Terms
[Evergreen.git] / Open-ILS / src / eg2 / src / app / staff / admin / local / course-reserves / course-list.component.html
1 <eg-staff-banner bannerText="Course List" i18n-bannerText>
2 </eg-staff-banner>
3
4 <eg-string #successString i18n-text text="{{tableName}} Update Succeeded"></eg-string>
5 <eg-string #createString i18n-text text="{{tableName}} Was Created Successfully"></eg-string>
6 <eg-string #deleteFailedString i18n-text text="Deletion of {{tableName}} failed or was not allowed"></eg-string>
7 <eg-string #deleteSuccessString i18n-text text="Deletion of {{tableName}} was successful"></eg-string>
8 <eg-string #archiveFailedString i18n-text text="Archival of {{tableName}} failed or was not allowed"></eg-string>
9 <eg-string #archiveSuccessString i18n-text text="Archival of {{tableName}} succeeded"></eg-string>
10 <eg-string #flairTooltip i18n-text text="Limited Editing"></eg-string>
11
12 <ul ngbNav #courseListNav="ngbNav" class="nav-tabs">
13   <li ngbNavItem>
14     <a ngbNavLink i18n>Course list</a>
15     <ng-template ngbNavContent>
16       <div class="w-100 mt-2 mb-2">
17         <eg-grid #grid idlClass={{idlClass}}
18           [dataSource]="grid_source"
19           [sortable]="true">
20           <eg-grid-toolbar-button
21             label="Create {{tableName}}" (onClick)="createNew()" i18n-label>
22           </eg-grid-toolbar-button>
23           <eg-grid-toolbar-action label="Edit Selected" i18n-label (onClick)="editSelected($event)">
24           </eg-grid-toolbar-action>
25           <eg-grid-toolbar-action label="Delete Selected" i18n-label (onClick)="deleteSelected($event)">
26           </eg-grid-toolbar-action>
27           <eg-grid-toolbar-action label="Archive Selected" i18n-label (onClick)="archiveSelected($event)">
28           </eg-grid-toolbar-action>
29           <eg-grid-column label="ID" path="id" [index]=true [hidden]="true" i18n-label></eg-grid-column>
30           <eg-grid-column label="Terms taught" name="terms_map" i18n-label [cellTemplate]="termMapLink"></eg-grid-column>
31           <eg-grid-column label="Course Name" name="name" i18n-label></eg-grid-column>
32           <eg-grid-column label="Course Number" name="course_number" i18n-label></eg-grid-column>
33           <eg-grid-column label="Section Number" name="section_number" i18n-label></eg-grid-column>
34           <eg-grid-column label="Is Archived?" name="is_archived" i18n-label datatype="bool"></eg-grid-column>
35         </eg-grid>
36       </div>
37     </ng-template>
38   </li>
39   <li ngbNavItem>
40     <a ngbNavLink i18n>Terms</a>
41     <ng-template ngbNavContent>
42       <eg-admin-page idlClass="acmt" [defaultNewRecord]="defaultTerm" fieldOrder="name,owning_lib,start_date,end_date"></eg-admin-page>
43     </ng-template>
44   </li>
45   <li ngbNavItem>
46     <a ngbNavLink i18n>Course roles</a>
47     <ng-template ngbNavContent>
48       <eg-admin-page idlClass="acmr"></eg-admin-page>
49     </ng-template>
50   </li>
51 </ul>
52 <div [ngbNavOutlet]="courseListNav"></div>
53
54 <eg-fm-record-editor #editDialog
55   idlClass="acmc"
56   fieldOrder="course_number,name,owning_lib,section_number"
57   [preloadLinkedValues]="true"
58   hiddenFields="id,is_archived">
59 </eg-fm-record-editor>
60
61 <ng-template #termMapLink let-row="row">
62   <a routerLink="/staff/admin/local/asset/course_module_term_course_map" [queryParams]="acmtcmQueryParams(row)" i18n>
63     Terms taught
64   </a>
65 </ng-template>