-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
re #76 all the templates are now factorized, we're only missing code …
…modification to share css/img/js between skins
- Loading branch information
1 parent
24e7b72
commit 8270529
Showing
10 changed files
with
139 additions
and
307 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<% c++ #include "contents/Users.h" %> | ||
<% skin %> | ||
<% view common_users_change_password uses contents::users::ChangePassword extends master %> | ||
<% template title() %><% gt "Change password" %><% end template %> | ||
|
||
|
||
<% template main_content() %> | ||
<form method="POST" action="/users/change-password_treat" > | ||
<% form as_p changePasswordForm %> | ||
</form> | ||
<% end template %> | ||
|
||
<% template annexe_content() %> | ||
|
||
<% end template %> | ||
|
||
|
||
|
||
<% end view %> | ||
<% end skin %> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<% c++ #include "contents/Users.h" %> | ||
<% skin %> | ||
<% view common_users_login uses contents::users::Login extends master %> | ||
<% template title() %><% gt "Login" %><% end template %> | ||
|
||
<% template local_css() %> | ||
<% include css_link("users/login.css") %> | ||
<% end template %> | ||
|
||
|
||
<% template main_content() %> | ||
<% include begin_module() %> | ||
<h2><% gt "Login" %></h2> | ||
<form | ||
method="POST" | ||
action="/users/login_treat" | ||
id="UserLoginForm" | ||
> | ||
<% form input loginForm.previousUrl %> | ||
<table class='input'> | ||
<% include widget_row(loginForm.username) %> | ||
<% include widget_row(loginForm.password) %> | ||
<% include widget_row(loginForm.rememberMe) %> | ||
</table> | ||
|
||
<div class="submit"> | ||
<% form input loginForm.submit %> | ||
</div> | ||
|
||
</form> | ||
|
||
<h2><% gt "No account yet?" %></h2> | ||
<div id="ClickHereToRegister"> | ||
<a href="/users/register-new" class="registerButton"><% gt "Register" %></a> | ||
</div> | ||
<% include end_module() %> | ||
<% end template %> | ||
|
||
/** | ||
* | ||
*/ | ||
<% template annexe_content() %> | ||
<% include begin_module() %> | ||
<h2><% gt "Note:" %></h2> | ||
<p> | ||
<% gt "For the moment there's no automatic 'password forgotten' mechanism, instead send an email to the administrators" %> | ||
</p> | ||
<% include end_module() %> | ||
<% end template %> | ||
|
||
|
||
|
||
|
||
|
||
<% end view %> | ||
<% end skin %> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<% c++ #include "contents/Users.h" %> | ||
<% skin %> | ||
<% view common_users_register_new uses contents::users::RegisterNew extends master %> | ||
<% template title() %><% gt "Register a new user" %><% end template %> | ||
|
||
<% template css() %><% include css_link("users/register-new.css") %><% end template%> | ||
|
||
|
||
<% template main_content() %> | ||
<% include begin_module() %> | ||
<h2><% gt "Register a new user" %></h2> | ||
<form id="UsersRegisterForm" method="POST" action="/users/register-new_treat" > | ||
<table> | ||
<% include widget_row(registerNewForm.username) %> | ||
<% include widget_row(registerNewForm.password) %> | ||
<% include widget_row(registerNewForm.email) %> | ||
</table> | ||
<div id="quiz"> | ||
<% gt "We need to make sure you are human." %> | ||
<label for="<%= registerNewForm.quiz.name()"> | ||
<%= registerNewForm.quiz.message() %> | ||
</label> | ||
<p> | ||
<% form input registerNewForm.quiz %> | ||
</p> | ||
<% gt "For instance, if your email is [email protected], the answer is \"me123\"." %> | ||
</div> | ||
<div id="termsOfUse"> | ||
<% form input registerNewForm.termsOfUse %> | ||
<label for="<%= registerNewForm.termsOfUse.name()"> | ||
<%= registerNewForm.termsOfUse.message() %> | ||
<label> | ||
</div> | ||
<div class="submit"> | ||
<% form input registerNewForm.submit %> | ||
</div> | ||
</form> | ||
<% include end_module() %> | ||
<% end template %> | ||
|
||
<% template annexe_content() %> | ||
<% include begin_module() %> | ||
<h2><% gt "Note:" %></h2> | ||
<p> | ||
<% gt "Your email address will never be given or sold to third services. It will only be used internally to send you automatic notification or in case you lose your password." %> | ||
</p> | ||
<% include end_module() %> | ||
<% end template %> | ||
|
||
<% end view %> | ||
<% end skin %> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,6 @@ | ||
<% c++ #include "contents/Users.h" %> | ||
<% skin responsive %> | ||
<% view users_register_new uses contents::users::RegisterNew extends master %> | ||
<% template title() %><% gt "Register a new user" %><% end template %> | ||
|
||
<% template css() %><% include css_link("users/register-new.css") %><% end template%> | ||
|
||
|
||
<% template main_content() %> | ||
<% include begin_module() %> | ||
<h2><% gt "Register a new user" %></h2> | ||
<form id="UsersRegisterForm" method="POST" action="/users/register-new_treat" > | ||
<table> | ||
<tr> | ||
<td><%= registerNewForm.username.message() %></td> | ||
<td><% form input registerNewForm.username %></td> | ||
</tr> | ||
<tr> | ||
<td><%= registerNewForm.password.message() %></td> | ||
<td><% form input registerNewForm.password %></td> | ||
</tr> | ||
<tr> | ||
<td><%= registerNewForm.email.message() %></td> | ||
<td><% form input registerNewForm.email%></td> | ||
</tr> | ||
</table> | ||
<div id="quiz"> | ||
<% gt "We need to make sure you are human." %> | ||
<label for="<%= registerNewForm.quiz.name()"> | ||
<%= registerNewForm.quiz.message() %> | ||
</label> | ||
<p> | ||
<% form input registerNewForm.quiz %> | ||
</p> | ||
<% gt "For instance, if your email is [email protected], the answer is \"me123\"." %> | ||
</div> | ||
<div id="termsOfUse"> | ||
<% form input registerNewForm.termsOfUse %> | ||
<label for="<%= registerNewForm.termsOfUse.name()"> | ||
<%= registerNewForm.termsOfUse.message() %> | ||
<label> | ||
</div> | ||
<div class="submit"> | ||
<% form input registerNewForm.submit %> | ||
</div> | ||
</form> | ||
<% include end_module() %> | ||
<% end template %> | ||
|
||
<% template annexe_content() %> | ||
<% include begin_module() %> | ||
<h2><% gt "Note:" %></h2> | ||
<p> | ||
<% gt "Your email address will never be given or sold to third services. It will only be used internally to send you automatic notification or in case you lose your password." %> | ||
</p> | ||
|
||
</div> | ||
<% include end_module() %> | ||
<% end template %> | ||
|
||
|
||
<% skin %> | ||
<% view users_register_new uses contents::users::RegisterNew extends common_users_register_new %> | ||
|
||
<% end view %> | ||
<% end skin %> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.