File tree Expand file tree Collapse file tree 3 files changed +15
-9
lines changed
templates/next/components/foo Expand file tree Collapse file tree 3 files changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -30,11 +30,11 @@ export const Form: FunctionComponent<Props> = ({ {{{lc}}} }) => {
30
30
< div >
31
31
< div >
32
32
< Head >
33
- < title > { { { { lc} } } ? `Edit {{{ucf}}} ${ { { { ~ lc } }}['@id']}` : `Create {{{ucf}}}` } </ title >
34
- < meta property = "og:title" content = "{{{ lc}}} ? `Edit {{{ucf}}} ${ {{{ ~lc}}} ['@id']}` : `Create {{{ucf}}}`" />
33
+ < title > { { { { lc} } } ? `Edit {{{ucf}}} ${ { { ~ lc } }['@id']}` : `Create {{{ucf}}}` } </ title >
34
+ < meta property = "og:title" content = { { { { lc} } } ? `Edit {{{ucf}}} ${ { { ~ lc } }['@id']}` : `Create {{{ucf}}}` } />
35
35
</ Head >
36
36
</ div >
37
- < h1 > { { { lc} } } ? `Edit {{{ucf}}} ${ { { { ~ lc } }} ['@id']}` : `Create {{{ucf}}}` < / h 1 >
37
+ < h1 > { { { { lc} } } ? `Edit {{{ucf}}} ${ { { ~ lc } }['@id']}` : `Create {{{ucf}}}` } </ h1 >
38
38
< Formik
39
39
initialValues = { { { ~ lc} } ? { ...{ { lc~ } } } : new { { { ucf} } } ( ) }
40
40
validate= { ( values ) => {
Original file line number Diff line number Diff line change @@ -38,8 +38,14 @@ export const List: FunctionComponent<Props> = ({ {{{name}}} }) => (
38
38
< td > { { #if reference} } < ReferenceLinks items = { { { { . . / lc} } } [ '{{{name}}}' ] } type = "{{{reference.title}}}" / > { { else} } { { { { . . / lc} } } [ '{{{name}}}' ] } { { / i f } } < / td>
39
39
{ { / e a c h } }
40
40
< td > < ReferenceLinks items = { { { { lc} } } [ '@id' ] } type = "{{{lc}}}" useIcon = { true} / > </td >
41
- < br > </ br >
42
- < Link href = { `${ { { ~ lc } }["@id"]}/edit` } > Edit</ Link >
41
+ < td >
42
+ < Link href = { `${ { { ~ lc } }["@id"]}/edit` } >
43
+ < a >
44
+ < i className = "bi bi-pen" aria-hidden = "true" />
45
+ < span className = "sr-only" > Edit</ span >
46
+ </ a >
47
+ </ Link >
48
+ </ td >
43
49
< / t r >
44
50
) ) }
45
51
</tbody >
Original file line number Diff line number Diff line change @@ -27,14 +27,14 @@ export const Show: FunctionComponent<Props> = ({ {{{lc}}} }) => {
27
27
} ;
28
28
29
29
return (
30
- < h1 >
30
+ < div >
31
31
< div >
32
32
< Head >
33
- < title > { `Show {{{ucf}}} ${ { { { ~ lc } }}['@id']}` } </ title >
34
- < meta property = "og:title" content = `Show { { { ucf } } } ${ { { { ~ lc} } } [ '@id' ] } ` key = "title" />
33
+ < title > { `Show {{{ucf}}} ${ { { ~ lc } }['@id']}` } </ title >
34
+ < meta property = "og:title" content = { `Show {{{ucf}}} ${ { { ~ lc } }['@id']}` } key = "title" />
35
35
</ Head >
36
36
</ div >
37
- < h1 > { `Show {{{ucf}}} ${ { { { ~ lc } }}['@id']}` } </ h1 >
37
+ < h1 > { `Show {{{ucf}}} ${ { { ~ lc } }['@id']}` } </ h1 >
38
38
< table className = "table table-responsive table-striped table-hover" >
39
39
< thead >
40
40
< tr >
You can’t perform that action at this time.
0 commit comments