Skip to content

Commit

Permalink
Add support for bootstrap theme
Browse files Browse the repository at this point in the history
  • Loading branch information
mlewis-everley committed Sep 21, 2017
1 parent 846ab21 commit 0ae106e
Show file tree
Hide file tree
Showing 6 changed files with 107 additions and 95 deletions.
52 changes: 27 additions & 25 deletions templates/Layout/UserAccount.ss
Original file line number Diff line number Diff line change
@@ -1,31 +1,33 @@
<div class="units-row row users-account line">
<% include Users_Profile_SideBar %>
<div class="container">
<div class="units-row row users-account line">
<% include Users_Profile_SideBar %>

<div class="users-content-container typography col-xs-12 col-sm-8 unit-75 unit size3of4 lastUnit">
<% if $RequireVerification %>
<div class="message message-bad">
<p>
<% _t("Users.NotVerified", "You have not verified your email address") %>
<a href="{$BaseHref}users/register/sendverification">
<% _t("Users.Send", "Send now") %>
</a>
</p>
</div>
<% end_if %>
<div class="users-content-container typography col-xs-12 col-sm-8 unit-75 unit size3of4 lastUnit">
<% if $RequireVerification %>
<div class="message message-bad">
<p>
<% _t("Users.NotVerified", "You have not verified your email address") %>
<a href="{$BaseHref}users/register/sendverification">
<% _t("Users.Send", "Send now") %>
</a>
</p>
</div>
<% end_if %>

<h1><%t Users.ProfileSummary "Profile Summary" %></h1>
<h1><%t Users.ProfileSummary "Profile Summary" %></h1>

<% with $CurrentUser %>
<div class="users-profile-summary">
<p>
<strong><% _t('Member.FIRSTNAME',"First Name") %></strong> $FirstName<br/>
<strong><% _t('Member.SURNAME',"Surname") %></strong> $Surname<br/>
<strong><% _t("Member.EMAIL","Email") %></strong> $Email<br/>
</p>
</div>
<% end_with %>
<% with $CurrentUser %>
<div class="users-profile-summary">
<p>
<strong><% _t('Member.FIRSTNAME',"First Name") %></strong> $FirstName<br/>
<strong><% _t('Member.SURNAME',"Surname") %></strong> $Surname<br/>
<strong><% _t("Member.EMAIL","Email") %></strong> $Email<br/>
</p>
</div>
<% end_with %>


$Form
$Form
</div>
</div>
</div>
</div>
34 changes: 18 additions & 16 deletions templates/Layout/UserAccount_changepassword.ss
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
<div class="units-row row users-account line">
<% include Users_Profile_SideBar %>
<div class="container">
<div class="units-row row users-account line">
<% include Users_Profile_SideBar %>

<div class="users-content-container typography col-xs-12 col-sm-8 unit-75 unit size3of4 lastUnit">
<% if $RequireVerification %>
<div class="message message-bad">
<p>
<% _t("Users.NotVerified", "You have not verified your email address") %>
<a href="{$BaseHref}users/register/sendverification">
<% _t("Users.Send", "Send now") %>
</a>
</p>
</div>
<% end_if %>
<div class="users-content-container typography col-xs-12 col-sm-8 unit-75 unit size3of4 lastUnit">
<% if $RequireVerification %>
<div class="message message-bad">
<p>
<% _t("Users.NotVerified", "You have not verified your email address") %>
<a href="{$BaseHref}users/register/sendverification">
<% _t("Users.Send", "Send now") %>
</a>
</p>
</div>
<% end_if %>

<h1><%t Security.ChangeYourPassword "Change your password" %></h1>
<h1><%t Security.ChangeYourPassword "Change your password" %></h1>

$Form
$Form
</div>
</div>
</div>
</div>
34 changes: 18 additions & 16 deletions templates/Layout/UserAccount_edit.ss
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
<div class="units-row row users-account line">
<% include Users_Profile_SideBar %>
<div class="container">
<div class="units-row row users-account line">
<% include Users_Profile_SideBar %>

<div class="users-content-container typography col-xs-12 col-sm-8 unit-75 unit size3of4 lastUnit">
<% if $RequireVerification %>
<div class="message message-bad">
<p>
<% _t("Users.NotVerified", "You have not verified your email address") %>
<a href="{$BaseHref}users/register/sendverification">
<% _t("Users.Send", "Send now") %>
</a>
</p>
</div>
<% end_if %>
<div class="users-content-container typography col-xs-12 col-sm-8 unit-75 unit size3of4 lastUnit">
<% if $RequireVerification %>
<div class="message message-bad">
<p>
<% _t("Users.NotVerified", "You have not verified your email address") %>
<a href="{$BaseHref}users/register/sendverification">
<% _t("Users.Send", "Send now") %>
</a>
</p>
</div>
<% end_if %>

<h1><%t Users.EditAccountDetails "Edit account details" %></h1>
<h1><%t Users.EditAccountDetails "Edit account details" %></h1>

$Form
$Form
</div>
</div>
</div>
</div>
12 changes: 7 additions & 5 deletions templates/Layout/Users_Register.ss
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<div class="users-register-container typography">
<h1>$Title</h1>
<div class="container">
<div class="users-register-container typography">
<h1>$Title</h1>

$Content
$Content

$Form
</div>
$Form
</div>
</div>
36 changes: 19 additions & 17 deletions templates/Layout/Users_Register_sendverification.ss
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
<div class="units-row row users-verify">
<div class="content-container typography">
<h1><% _t('Users.AccountVerification','Account Verification') %></h1>
<div class="container">
<div class="units-row row users-verify">
<div class="content-container typography">
<h1><% _t('Users.AccountVerification','Account Verification') %></h1>

<% if $Sent %>
<p><% _t('Users.VerificationSent','A verification has been sent to your registered email address.') %></p>
<p><% _t('Users.NextSteps','You will receive an email with a verification link. Clicking the link will verify your account.') %></p>
<% else %>
<p><% _t('Users.NotVerificationSent','Unable to send verification.') %></p>
<% end_if %>
<% if $Sent %>
<p><% _t('Users.VerificationSent','A verification has been sent to your registered email address.') %></p>
<p><% _t('Users.NextSteps','You will receive an email with a verification link. Clicking the link will verify your account.') %></p>
<% else %>
<p><% _t('Users.NotVerificationSent','Unable to send verification.') %></p>
<% end_if %>

<% if $CurrentMember %>
<p>
<a class="btn" href="{$BaseHref}users/account">
<% _t("Users.BackToAccount", "Back to your account") %>
</a>
</p>
<% end_if %>
<% if $CurrentMember %>
<p>
<a class="btn" href="{$BaseHref}users/account">
<% _t("Users.BackToAccount", "Back to your account") %>
</a>
</p>
<% end_if %>
</div>
</div>
</div>
</div>
34 changes: 18 additions & 16 deletions templates/Layout/Users_Register_verify.ss
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
<div class="units-row users-verify">
<div class="content-container typography">
<h1><% _t('Users.AccountVerification','Account Verification') %></h1>
<div class="container">
<div class="units-row users-verify">
<div class="content-container typography">
<h1><% _t('Users.AccountVerification','Account Verification') %></h1>

<% if $Verify %>
<p><% _t('Users.VerifiedMessage','Your account has been now been verified.') %></p>
<% else %>
<p><% _t('Users.NotVerifiedMessage','Your account could not be verified.') %></p>
<% end_if %>
<% if $Verify %>
<p><% _t('Users.VerifiedMessage','Your account has been now been verified.') %></p>
<% else %>
<p><% _t('Users.NotVerifiedMessage','Your account could not be verified.') %></p>
<% end_if %>

<% if $CurrentMember %>
<p>
<a class="btn" href="{$BaseHref}users/account">
<% _t("Users.BackToAccount", "Back to your account") %>
</a>
</p>
<% end_if %>
<% if $CurrentMember %>
<p>
<a class="btn" href="{$BaseHref}users/account">
<% _t("Users.BackToAccount", "Back to your account") %>
</a>
</p>
<% end_if %>
</div>
</div>
</div>
</div>

0 comments on commit 0ae106e

Please sign in to comment.