File tree Expand file tree Collapse file tree 4 files changed +14
-11
lines changed Expand file tree Collapse file tree 4 files changed +14
-11
lines changed Original file line number Diff line number Diff line change 1
1
<div class =" field date" >
2
- <label class =" label" >{{ label }} </label >
2
+ <label class =" label" >{{ label }}{{ ^ required }}{{ ^ readonly }} {{ #i18n ' label.suffix-optional ' }} (optional) {{ /i18n }}{{ /readonly }}{{ /required }} </label >
3
3
<div class =" control" >
4
4
<input name ={{ name }} class =" input with-help" type =" text" {{ #unless readonly }} placeholder =" 1952-09-01 (YYYY-MM-DD)" {{ /unless }} {{ #readonly }} readonly{{ /readonly }} {{ #required }} required{{ /required }} >
5
5
<p class =" help" >{{{ additionalHelpText }}}
Original file line number Diff line number Diff line change 11
11
</div >
12
12
</div >
13
13
<div class =" field" >
14
- <label class =" label" >{{ #i18n ' label.editor-opt ' }} Editor (optional){{ /i18n }} </label >
14
+ <label class =" label" >{{ #i18n ' label.editor' }} Editor{{ /i18n }} {{ ^ readonly }} {{ #i18n ' label.suffix-optional ' }} (optional){{ /i18n }}{{ /readonly }} </label >
15
15
<div class =" control" >
16
16
<input name =" editor" class =" input" type =" text" {{ #unless readonly }} placeholder =" C.S. Lewis" {{ /unless }} {{ #readonly }} readonly{{ /readonly }} >
17
17
</div >
18
18
</div >
19
19
<div class =" field" >
20
- <label class =" label" >{{ #i18n ' label.publisher-opt ' }} Publisher (optional){{ /i18n }} </label >
20
+ <label class =" label" >{{ #i18n ' label.publisher' }} Publisher{{ /i18n }} {{ ^ readonly }} {{ #i18n ' label.suffix-optional ' }} (optional){{ /i18n }}{{ /readonly }} </label >
21
21
<div class =" control" >
22
22
<input name =" publisher" class =" input" type =" text" {{ #unless readonly }} placeholder =" Geoffrey Bles" {{ /unless }} {{ #readonly }} readonly{{ /readonly }} >
23
23
</div >
24
24
</div >
25
25
<div class =" field" >
26
- <label class =" label" >{{ #i18n ' label.repository-opt ' }} Repository (optional){{ /i18n }} </label >
26
+ <label class =" label" >{{ #i18n ' label.repository' }} Repository{{ /i18n }} {{ ^ readonly }} {{ #i18n ' label.suffix-optional ' }} (optional){{ /i18n }}{{ /readonly }} </label >
27
27
<div class =" control" >
28
28
<input
29
29
name =" repository"
130
130
</div >
131
131
</div >
132
132
<div class =" field url" >
133
- <label class =" label" >{{ #i18n ' label.url-opt ' }} URL (optional){{ /i18n }} </label >
133
+ <label class =" label" >{{ #i18n ' label.url' }} URL{{ /i18n }} {{ ^ readonly }} {{ #i18n ' label.suffix-optional ' }} (optional){{ /i18n }}{{ /readonly }} </label >
134
134
<div class =" control" >
135
135
<input name =" url" class =" input" type =" url" {{ #unless readonly }} placeholder =" https://www.wikidata.org/wiki/Q331656" {{ /unless }} {{ #readonly }} readonly{{ /readonly }} >
136
136
</div >
Original file line number Diff line number Diff line change @@ -114,8 +114,8 @@ export default class SourceMetadataView extends CompositeView {
114
114
model : this . getNode ( "dateCreated" ) ,
115
115
name : "dateCreated" ,
116
116
label : i18next . t (
117
- "label.creation-date-opt " ,
118
- "Creation date (optional) "
117
+ "label.creation-date" ,
118
+ "Creation date"
119
119
) ,
120
120
additionalHelpText : i18next . t (
121
121
"upload.creation-date-help" ,
@@ -127,8 +127,8 @@ export default class SourceMetadataView extends CompositeView {
127
127
model : this . getNode ( "dateRetrieved" ) ,
128
128
name : "dateRetrieved" ,
129
129
label : i18next . t (
130
- "label.retrieval-date-opt " ,
131
- "Retrieval date (optional) "
130
+ "label.retrieval-date" ,
131
+ "Retrieval date"
132
132
) ,
133
133
additionalHelpText : i18next . t (
134
134
"upload.retrieval-date-help" ,
Original file line number Diff line number Diff line change 31
31
padding-left : 0
32
32
padding-right : 0
33
33
34
- & .is-static input
35
- @extend .is-static
34
+ & .is-static
35
+ input
36
+ @extend .is-static
37
+ .help , .help-text
38
+ display : none
36
39
37
40
.source-list
38
41
.source-summary
You can’t perform that action at this time.
0 commit comments