1
+ {namespace f=TYPO3Fluid\Fluid\ViewHelpers}
1
2
{namespace nf=Neos\FluidAdaptor\ViewHelpers}
2
3
{namespace neos=Neos\Neos\ViewHelpers}
3
4
{namespace fusion=Neos\Fusion\ViewHelpers}
4
- < script src ="../../../Public/JavaScript/jquery-1.10.2.min.js "> </ script >
5
- < script >
6
- $ ( function ( ) {
7
- $ ( '#newCommentForm' ) . submit ( function ( event ) {
8
- var form = $ ( this ) ;
9
- $ . ajax ( {
10
- type : form . attr ( 'method' ) ,
11
- url : form . attr ( 'action' ) ,
12
- data : form . serialize ( )
13
- } ) . done ( function ( result ) {
14
- alert ( result ) ;
15
- location . reload ( true ) ;
16
- } ) . fail ( function ( result ) {
17
- alert ( result . responseText . substring ( 4 ) ) ;
18
- } ) ;
19
- event . preventDefault ( ) ;
20
- } ) ;
21
- } ) ;
22
- </ script >
23
5
< article itemscope ="" itemtype ="http://schema.org/Article " class ="robertlemke-plugin-blog " xmlns:f ="http://www.w3.org/1999/html ">
24
6
< nf:flashMessages class ="flashmessages "/>
25
7
< header >
@@ -30,7 +12,7 @@ <h1 itemprop="name headline">
30
12
by
31
13
< span itemprop ="author " itemscope ="" itemtype ="http://schema.org/Person "> < span itemprop ="name "> {author}</ span > </ span >
32
14
on
33
- < time datetime ="{f :format.date(date: node.properties.datePublished, format: 'c')} " itemprop ="datePublished "> {nf:format.date(date: node.properties.datePublished, format: 'F jS, Y')}
15
+ < time datetime ="{nf :format.date(date: node.properties.datePublished, format: 'c')} " itemprop ="datePublished "> {nf:format.date(date: node.properties.datePublished, format: 'F jS, Y')}
34
16
</ time >
35
17
</ div >
36
18
< br />
@@ -42,33 +24,33 @@ <h1 itemprop="name headline">
42
24
< div id ="comments " class ="comments ">
43
25
< f:if condition ="{numberOfComments} ">
44
26
< h3 >
45
- < f :translate package ="RobertLemke.Plugin.Blog "> Comments</ f :translate>
27
+ < nf :translate package ="RobertLemke.Plugin.Blog "> Comments</ nf :translate>
46
28
</ h3 >
47
29
< ol class ="commentlist ">
48
30
< fusion:render path ="comments "/>
49
31
</ ol >
50
32
< div class ="clear "> </ div >
51
33
</ f:if >
52
34
< h3 >
53
- < f :translate package ="RobertLemke.Plugin.Blog "> Leave a reply</ f :translate>
35
+ < nf :translate package ="RobertLemke.Plugin.Blog "> Leave a reply</ nf :translate>
54
36
</ h3 >
55
37
< f:render partial ="FormErrors " arguments ="{for: 'newComment'} "/>
56
- < f :form action ="create " controller ="Comment " package ="RobertLemke.Plugin.Blog " object ="{newComment} " name ="newComment " class ="newcomment " id ="newCommentForm ">
57
- < f :form.hidden name ="postNode " value ="{node.path} "/>
38
+ < nf :form action ="create " controller ="Comment " package ="RobertLemke.Plugin.Blog " object ="{newComment} " name ="newComment " class ="newcomment " id ="newCommentForm ">
39
+ < nf :form.hidden name ="postNode " value ="{node.path} "/>
58
40
< label for ="comment.author ">
59
41
< f:format .raw >
60
- < f :translate package ="RobertLemke.Plugin.Blog "> Name < span class ="required "> *</ span > </ f :translate>
42
+ < nf :translate package ="RobertLemke.Plugin.Blog "> Name < span class ="required "> *</ span > </ nf :translate>
61
43
</ f:format .raw>
62
44
</ label >
63
- < f :form.textfield id ="comment.author " property ="author "/>
45
+ < nf :form.textfield id ="comment.author " property ="author "/>
64
46
< label for ="comment.emailaddress ">
65
47
< f:format .raw >
66
- < f :translate package ="RobertLemke.Plugin.Blog "> Email < span class ="required "> *</ span > (won't be displayed)</ f :translate>
48
+ < nf :translate package ="RobertLemke.Plugin.Blog "> Email < span class ="required "> *</ span > (won't be displayed)</ nf :translate>
67
49
</ f:format .raw>
68
50
</ label >
69
- < f :form.textfield id ="comment.emailaddress " property ="emailAddress "/>
70
- < f :form.textarea id ="comment.text " property ="text " rows ="10 " cols ="50 "/>
71
- < button class ="secondary button "> {f :translate(value: 'Submit', package: 'Neos.Flow ')}</ button >
72
- </ f :form>
51
+ < nf :form.textfield id ="comment.emailaddress " property ="emailAddress "/>
52
+ < nf :form.textarea id ="comment.text " property ="text " rows ="10 " cols ="50 "/>
53
+ < button class ="secondary button " type =" submit " > {nf :translate(value: 'Submit')}</ button >
54
+ </ nf :form>
73
55
</ div >
74
56
</ article >
0 commit comments