Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lib
unicaen
auth
Commits
90967cd6
Commit
90967cd6
authored
Feb 19, 2013
by
Bertrand Gauthier
Browse files
Amélioration de la prise en charge de la traduction.
parent
d37defe4
Changes
3
Show whitespace changes
Inline
Side-by-side
view/zfc-user/user/index.phtml
0 → 100644
View file @
90967cd6
<div
style=
"float:left; padding-right:16px;"
>
<?php
echo
$this
->
gravatar
(
$this
->
zfcUserIdentity
()
->
getEmail
())
?>
</div>
<h3>
<?php
echo
$this
->
translate
(
"Hello,"
);
?>
<?php
echo
$this
->
zfcUserDisplayName
()
?>
!
</h3>
<a
href=
"
<?php
echo
$this
->
url
(
'zfcuser/logout'
)
?>
"
>
[Sign Out]
</a>
<div
style=
"clear:both;"
></div>
view/zfc-user/user/login.phtml
0 → 100644
View file @
90967cd6
<h1>
<?php
echo
$this
->
translate
(
"Sign In"
);
?>
</h1>
<?php
$form
=
$this
->
loginForm
;
$form
->
prepare
();
$form
->
setAttribute
(
'action'
,
$this
->
url
(
'zfcuser/login'
));
$form
->
setAttribute
(
'method'
,
'post'
);
?>
<?php
echo
$this
->
form
()
->
openTag
(
$form
)
?>
<dl
class=
"zend_form"
>
<?php
echo
$this
->
formElementErrors
(
$form
->
get
(
'identity'
))
?>
<dt>
<?php
echo
$this
->
formLabel
(
$form
->
get
(
'identity'
))
?>
</dt>
<dd>
<?php
echo
$this
->
formInput
(
$form
->
get
(
'identity'
))
?>
</dd>
<dt>
<?php
echo
$this
->
formLabel
(
$form
->
get
(
'credential'
))
?>
</dt>
<dd>
<?php
echo
$this
->
formInput
(
$form
->
get
(
'credential'
))
?>
</dd>
<?php
if
(
$this
->
redirect
)
:
?>
<input
type=
"hidden"
name=
"redirect"
value=
"
<?php
echo
$this
->
redirect
?>
"
/>
<?php
endif
?>
<dd>
<?php
echo
$this
->
formButton
(
$form
->
get
(
'submit'
))
?>
</dd>
</dl>
<?php
echo
$this
->
form
()
->
closeTag
()
?>
<?php
if
(
$this
->
enableRegistration
)
:
?>
<?php
echo
$this
->
translate
(
"Not registered?"
);
?>
<a
href=
"
<?php
echo
$this
->
url
(
'zfcuser/register'
)
.
(
$this
->
redirect
?
'?redirect='
.
$this
->
redirect
:
''
)
?>
"
>
<?php
echo
$this
->
translate
(
"Sign up!"
);
?>
</a>
<?php
endif
;
?>
view/zfc-user/user/register.phtml
0 → 100644
View file @
90967cd6
<h1>
<?php
echo
$this
->
translate
(
"Register"
);
?>
</h1>
<?php
if
(
!
$this
->
enableRegistration
)
{
print
$this
->
translate
(
"Registration is disabled"
);
return
;
}
$form
=
$this
->
registerForm
;
$form
->
prepare
();
$form
->
setAttribute
(
'action'
,
$this
->
url
(
'zfcuser/register'
));
$form
->
setAttribute
(
'method'
,
'post'
);
?>
<?php
echo
$this
->
form
()
->
openTag
(
$form
)
?>
<dl
class=
"zend_form"
>
<?php
foreach
(
$form
as
$element
)
:
?>
<?php
if
(
!
$element
instanceof
Zend\Form\Element\Button
)
:
?>
<dt>
<?php
echo
$this
->
formLabel
(
$element
)
?>
</dt>
<?php
endif
?>
<?php
if
(
$element
instanceof
Zend\Form\Element\Button
)
:
?>
<dd>
<?php
echo
$this
->
formButton
(
$element
)
?>
</dd>
<?php
elseif
(
$element
instanceof
Zend\Form\Element\Captcha
)
:
?>
<dd>
<?php
echo
$this
->
formCaptcha
(
$element
)
.
$this
->
formElementErrors
(
$element
)
?>
</dd>
<?php
else
:
?>
<dd>
<?php
echo
$this
->
formInput
(
$element
)
.
$this
->
formElementErrors
(
$element
)
?>
</dd>
<?php
endif
?>
<?php
endforeach
?>
</dl>
<?php
if
(
$this
->
redirect
)
:
?>
<input
type=
"hidden"
name=
"redirect"
value=
"
<?php
echo
$this
->
redirect
?>
"
/>
<?php
endif
?>
<?php
echo
$this
->
form
()
->
closeTag
()
?>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment