Skip to content

Commit 974f5bd

Browse files
Merge pull request #120 from NessieCanCode/update-institution-profile-section-layout
Revamp institution profile with collapsible panels and contacts
2 parents 0e9032a + c351675 commit 974f5bd

File tree

3 files changed

+531
-119
lines changed

3 files changed

+531
-119
lines changed

src/institution.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,29 @@
11
{
22
"institutionName": "",
3+
"institutionAbbreviation": "",
4+
"campusDivision": "",
5+
"institutionType": "",
6+
"primaryContact": {
7+
"fullName": "",
8+
"title": "",
9+
"email": "",
10+
"phone": ""
11+
},
12+
"secondaryContact": {
13+
"fullName": "",
14+
"email": "",
15+
"phone": ""
16+
},
317
"streetAddress": "",
418
"city": "",
519
"state": "",
620
"postalCode": "",
721
"country": "",
22+
"fiscalYearStartMonth": "",
823
"defaultCurrency": "USD",
924
"departmentName": "",
1025
"costCenter": "",
26+
"notes": "",
1127
"logo": ""
1228
}
29+

src/slurmcostmanager.css

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,50 @@ nav button:hover {
146146
margin-top: 0.5em;
147147
}
148148

149+
.institution-banner {
150+
display: flex;
151+
align-items: center;
152+
gap: 1em;
153+
}
154+
155+
.collapsible-panel {
156+
border: 1px solid #ccc;
157+
margin-top: 1em;
158+
}
159+
160+
.collapsible-header {
161+
background: #f5f5f5;
162+
padding: 0.5em;
163+
cursor: pointer;
164+
display: flex;
165+
justify-content: space-between;
166+
align-items: center;
167+
}
168+
169+
.collapsible-content {
170+
padding: 0.5em 1em;
171+
}
172+
173+
.save-cancel-bar {
174+
position: sticky;
175+
bottom: 0;
176+
background: #fff;
177+
padding: 0.5em;
178+
border-top: 1px solid #ccc;
179+
text-align: right;
180+
}
181+
182+
.required {
183+
color: red;
184+
margin-left: 0.25em;
185+
}
186+
187+
.help-icon {
188+
cursor: help;
189+
color: #555;
190+
margin-left: 0.25em;
191+
}
192+
149193
@media (max-width: 600px) {
150194
nav button {
151195
display: block;

0 commit comments

Comments
 (0)