Skip to content

Commit 213a522

Browse files
committed
Update labels and add tooltip on upload edit page, adjust dropdowns to render on same row
1 parent 2f8a336 commit 213a522

File tree

1 file changed

+44
-5
lines changed

1 file changed

+44
-5
lines changed

src/src/components/uploads/editUploads.jsx

Lines changed: 44 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -961,13 +961,16 @@ renderReorganizeButton() {
961961
renderDatasetTypeDropdown(){
962962
return (
963963
<Select
964-
fullWidth
964+
// fullWidth
965965
size="small"
966966
name="intended_dataset_type"
967967
className={
968968
"form-control " +
969969
this.errorClass(this.state.formErrors.intended_dataset_type)
970970
}
971+
sx={{
972+
margin:"10px auto"
973+
}}
971974
value={this.state.intended_dataset_type}
972975
id="intended_dataset_type"
973976
labelid="type_label"
@@ -990,7 +993,7 @@ renderReorganizeButton() {
990993
// console.debug('%c◉ organList ', 'color:#0033ff', this.state.organList);
991994
return (
992995
<Select
993-
fullWidth
996+
// fullWidth
994997
size="small"
995998
name="intended_organ"
996999
className={
@@ -1003,7 +1006,7 @@ renderReorganizeButton() {
10031006
value={this.state.intended_organ}
10041007
id="intended_organ"
10051008
labelid="organ_label"
1006-
label="Organ"
1009+
label="Intended Organ Type"
10071010
onChange={(e) => this.updateInputValue(e)}>
10081011
<MenuItem key={0} ></MenuItem>
10091012
{Object.entries(this.state.organList).map(([key, value], index) => {
@@ -1263,9 +1266,45 @@ renderReorganizeButton() {
12631266
</div>
12641267
</div>
12651268
)}
1269+
<div className="row mt-4 ">
1270+
<div className='form-group col-6'>
1271+
<label htmlFor='Organ'>Intended Organ Type <span className='text-danger'>*</span></label>
1272+
<span className="px-2">
1273+
<FontAwesomeIcon
1274+
icon={faQuestionCircle}
1275+
data-tip
1276+
data-for='Organ_tooltip'/>
1277+
<ReactTooltip
1278+
id='Organ_tooltip'
1279+
place='top'
1280+
type='info'
1281+
effect='solid'>
1282+
<p>Select the organ type that the data in this Upload is intended to be derived from.</p>
1283+
</ReactTooltip>
1284+
</span>
1285+
{this.renderOrganDropdown()}
1286+
</div>
1287+
<div className='form-group col-6'>
1288+
<label htmlFor='Dataset Type'>Intended Dataset Type <span className='text-danger'>*</span></label>
1289+
<span className="px-2">
1290+
<FontAwesomeIcon
1291+
icon={faQuestionCircle}
1292+
data-tip
1293+
data-for='Dataset Type_tooltip'/>
1294+
<ReactTooltip
1295+
id='Dataset Type_tooltip'
1296+
place='top'
1297+
type='info'
1298+
effect='solid'>
1299+
<p>Select the data type that this Upload will contain.</p>
1300+
</ReactTooltip>
1301+
</span>
1302+
{this.renderDatasetTypeDropdown()}
1303+
</div>
1304+
</div>
1305+
12661306

1267-
{this.renderOrganDropdown()}
1268-
{this.renderDatasetTypeDropdown()}
1307+
12691308
{!this.state.data_admin && this.state.assigned_to_group_name && this.state.ingest_task && (
12701309
<div className="row mt-4 ">
12711310
<div className='form-group col-6'>

0 commit comments

Comments
 (0)