Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
encyclopedia-gui
Commits
097e4a66
Commit
097e4a66
authored
Jan 14, 2021
by
Iker Hurtado
Browse files
Add several minor adaptations (properties panel and MaterialList component) to the new API
parent
044ad359
Pipeline
#91114
skipped with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
client/src/search-mod/FilterPanel.view.js
View file @
097e4a66
...
...
@@ -77,9 +77,12 @@ class FilterPanel {
let
propertiesGroupBox
=
this
.
createPropsGroupBox
(
'
Properties
'
)
this
.
element
.
append
(
propertiesGroupBox
);
/* The mass density field is disabled for now
const massDensityField = new MassDensityField();
this.fields.push(massDensityField)
propertiesGroupBox.append(massDensityField.element);
*/
const
boolValueFields
=
new
CheckboxesField
(
'
Results containing...
'
,
undefined
,
[
{
value
:
'
Band structure
'
,
text
:
'
Band structure
'
,
id
:
'
has_band_structure
'
},
...
...
@@ -228,6 +231,8 @@ class CheckboxesField{
}
/* Temporarily the select field is disabled
so that the only option to look for is "by number" */
class
SpaceGroupField
{
constructor
(){
...
...
@@ -235,7 +240,7 @@ class SpaceGroupField{
this
.
element
.
className
=
'
filter-quantity-box
'
;
this
.
element
.
innerHTML
=
`
<div class="field-title"> <span info-sys-data="space-group">Space group</span></div>
<select id="space-group-dropdown-list">
<select id="space-group-dropdown-list"
disabled
>
<option value="by-number">by number</option>
<option value="by-symbol">by short symbol</option>
</select>
...
...
client/src/search-mod/MaterialList.view.js
View file @
097e4a66
...
...
@@ -278,15 +278,15 @@ class MatListContainer{
`<tr class="mat-row" data-mat-id="
${
mat
.
material_id
}
">
<td >
${
label
}
[
${
mat
.
formula
}
] </td>
<td style="text-align:center" >
${
mat
.
space_group_number
===
null
?
''
:
mat
.
space_group_number
}
${
mat
.
space_group_number
?
mat
.
space_group_number
:
''
}
</td>
<td>
${
mat
.
space_group_international_short_symbol
===
null
?
''
:
mat
.
space_group_international_short_symbol
}
${
mat
.
space_group_international_short_symbol
?
mat
.
space_group_international_short_symbol
:
''
}
</td>
<td>
${
mat
.
structure_type
===
null
?
''
:
mat
.
structure_type
}
</td>
<td style="text-align:center" >
${
mat
.
n
r_of
_calculations
}
</td>
<td>
${
mat
.
structure_type
?
mat
.
structure_type
:
''
}
</td>
<td style="text-align:center" >
${
mat
.
n
_calculations
?
mat
.
n
_calculations
:
''
}
</td>
</tr>`
;
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment