Skip to content

Commit 4d4b8bb

Browse files
authored
Small frontend improvements (description mandatory elements, improved download output, function for dropdown) (#164)
* Added description for mandatory elements * Changed dropdown functionality to be a function. Also, improved formatting for foundation.js file * Added functionality to remove empty values from metadata download * Added additional documentation for symbol info string
1 parent 5cdbf98 commit 4d4b8bb

3 files changed

Lines changed: 1040 additions & 949 deletions

File tree

meta_creator/templates/meta_creator/showdata.html

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,20 @@
3131
</div>
3232

3333
<!-- Displaying the color coding -->
34-
<div class="color-code-container">
35-
<div class="color-code">
36-
<span class="red"></span>
37-
<span class="color-code-text">Missed metadata</span>
38-
</div>
39-
<div class="color-code">
40-
<span class="yellow"></span>
41-
<span class="color-code-text">Better to curate the metadata</span>
34+
<div class="color-code-container">
35+
<div class="color-code">
36+
<span class="red"></span>
37+
<span class="color-code-text">Missed metadata</span>
38+
</div>
39+
<div class="color-code">
40+
<span class="yellow"></span>
41+
<span class="color-code-text">Better to curate the metadata</span>
42+
</div>
43+
<div class="color-code">
44+
<span class="symbol"></span>
45+
<span class="color-code-text">Mandatory elements</span>
46+
</div>
4247
</div>
43-
</div>
4448

4549
<!-- Pop-up message for new repository URL on Contributor and Author tabs -->
4650
<div id="popup" class="popup">
@@ -216,7 +220,7 @@ <h1>Extra Hints!</h1>
216220
</span>
217221
<i class="fa fa-info-circle" aria-hidden="true"></i>
218222
</div>
219-
<select name="developmentStatus" id="developmentStatusDropdown">
223+
<select name="developmentStatus" id="developmentStatusDropdown" data-dropdown-schema="developmentStatus">
220224
<option value=""></option>
221225
</select>
222226
<div id="suggestions"></div>

static/foundation/css/foundation.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,6 +1175,7 @@ input:checked + .slider:before {
11751175
}
11761176

11771177
/************************************Color-code-info**************************************/
1178+
/* Create info strings to explain color and other codes */
11781179
.color-code-container {
11791180
align-items: center;
11801181
background-color: #ccc;
@@ -1210,6 +1211,24 @@ input:checked + .slider:before {
12101211
border: yellow solid 1px;
12111212
}
12121213

1214+
/* Create info string for the '*' symbol */
1215+
.color-code > span:first-child.symbol {
1216+
width: 15px;
1217+
height: 15px;
1218+
border-radius: 0; /* Remove the circle shape */
1219+
display: flex; /* Use flexbox for centering */
1220+
justify-content: center; /* Center horizontally */
1221+
background-color: transparent; /* No background for the symbol */
1222+
font-size: 18px; /* Match the size of the circle */
1223+
color: #e15e5e; /* Match the color of the circle */
1224+
font-weight: bold; /* Make the * bold */
1225+
line-height: 1; /* Ensure proper vertical alignment */
1226+
}
1227+
1228+
.color-code > span:first-child.symbol::before {
1229+
content: "*"; /* Add the * symbol */
1230+
}
1231+
12131232
/********************* Responsiveness **********************/
12141233

12151234
@media (min-width: 1024px) and (max-width: 1700px) {

0 commit comments

Comments
 (0)