Skip to content

Commit 68f28d6

Browse files
add first rough bits to allow read only attribution details for url/title of tool rec
1 parent 70dd378 commit 68f28d6

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

src/index.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,23 @@ <h1>Choose a License for Your Work</h1>
300300
<input type="text" id="work-creation-year" name="work-creation-year" value="1999" />
301301
</div>
302302

303+
<div id="tool-rec-details">
304+
305+
<hr />
306+
307+
<div>
308+
<label for="tool-title">Title of recommended tool (read only)</label>
309+
<input type="text" id="tool-title" name="tool-title" value="recommended tool title" readonly="true" />
310+
</div>
311+
312+
<div>
313+
<label for="tool-url">URL of recommended tool (read only)</label>
314+
<input type="text" id="tool-url" name="tool-url" value="https://creativecommons.org/licenses/by/4.0/" readonly="true" />
315+
</div>
316+
317+
</div>
318+
319+
303320
</fieldset>
304321
</li>
305322

src/scripts.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,7 @@ function setDefaults(applyDefaults) {
407407

408408
document.querySelector('#tool-recommendation').classList.add('disable');
409409
document.querySelector('#mark-your-work').classList.add('disable');
410+
document.querySelector('#tool-rec-details').classList.add('hide');
410411
}
411412

412413
// stepper logic here for what parts of form are

src/style.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ ol li:has(.disable) {
8282
display: none;
8383
}
8484

85+
.hide {
86+
display: none;
87+
}
88+
8589
.tool header {
8690
display: flex;
8791
flex-wrap: wrap;
@@ -120,6 +124,10 @@ ol li:has(.disable) {
120124
margin-left: .5em;
121125
}
122126

127+
.tool-rec-details input {
128+
color: lightgray;
129+
}
130+
123131

124132
/* debug styles */
125133
.help {

0 commit comments

Comments
 (0)