1
0
Fork 0
mirror of synced 2024-05-20 04:32:37 +12:00

Deprecated UI translations

This commit is contained in:
eldadfux 2019-09-26 21:47:48 +03:00
parent ffc8cb9acc
commit ee62af9b1f
20 changed files with 148 additions and 379 deletions

View file

@ -6,240 +6,7 @@ return [
'settings.direction' => 'ltr',
// General
'general.description' => 'Appwrite cuts up to 70% of the time and costs required for building a modern application. We abstract and simplify common development tasks behind a REST APIs, to help you grow your business in a fast and secure way.',
'general.loading' => 'Loading...',
'general.next' => 'Next',
'general.back' => 'Back',
'general.optional' => 'optional',
'general.learn-more-about' => 'Learn more about your',
'general.confirm.alert' => 'Please confirm your account by clicking the verification link sent to your email',
'general.confirm.resend' => 'send again',
'general.confirm.resend.success' => 'Confirmation mail sent successfully',
'general.confirm.resend.failure' => 'Confirmation mail failed to send. Please try again later',
'general.roles.owner' => 'Owner',
'general.roles.developer' => 'Developer',
'general.roles.admin' => 'Admin',
'general.alerts.cookie' => 'We are using cookies to make this website easier to use.',
'general.alerts.learn' => 'Learn More',
'navigation.home' => 'Home',
'navigation.features' => 'Features',
'navigation.pricing' => 'Pricing',
'navigation.signup' => 'Sign Up',
'navigation.signin' => 'Sign In',
'navigation.console' => 'Console',
'footer.blog' => 'Blog',
'footer.about' => 'About',
'footer.security' => 'Security',
'footer.status' => 'Status',
'footer.support' => 'Support',
'footer.contact' => 'Contact',
'footer.twitter' => 'on Twitter',
'footer.facebook' => 'on Facebook',
'footer.instagram' => 'on Instagram',
'footer.linkedin' => 'on LinkedIn',
'footer.copyright' => 'Copyright',
'footer.terms' => 'Terms',
'footer.privacy' => 'Privacy',
'footer.cookies' => 'Cookies',
'home.press.title' => 'Press Kit',
'home.press.subtitle' => 'For media inquires and more information, email us at team@appwrite.io',
'home.press.title.logos' => 'Logos',
'home.press.title.colors' => 'Brand Colors',
'home.press.title.photos' => 'Product Photos',
'home.cookies.title' => 'Cookies',
'home.cookies.paragraph-1' => 'When someone visits '.APP_NAME.', we collect standard internet log information and details of visitor behaviour patterns. We do this to find out things such as the number of visitors to the various parts of the site. We collect this information in a way which does not personally identify anyone.',
'home.cookies.paragraph-2' => 'Most web browsers allow some control of most cookies through the browser settings. To find out more about cookies, including how to see what cookies have been set and how to manage and delete them, visit',
'home.cookies.set' => 'Cookies set by '.APP_NAME,
'home.cookies.cell.name' => 'Name',
'home.cookies.cell.description' => 'Description',
'home.cookies.cell.duration' => 'Duration',
'home.cookies.more' => 'Read More',
'home.cookies.months' => 'months',
'home.cookies.days' => 'days',
'home.cookies.hours' => 'hours',
'home.cookies.minutes' => 'minutes',
'home.cookies.description1' => 'Keeps your website session alive.',
'home.cookies.description2' => 'Google Analytics cookie, used to distinguish users.',
'home.cookies.description3' => 'Google Analytics cookie, used to distinguish users.',
'home.cookies.description4' => 'Google Analytics cookie, Used to throttle request rate.',
'home.cookies.description5' => 'Google Analytics cookie, Contains campaign related information for the user.',
'home.cookies.description6' => 'Google cookie, Contains information that changes the way the site behaves or looks, such as your preferred language or the region you are in.',
'home.cookies.description7' => 'System user interface preferred language.',
'home.contact.title' => 'Contact Us',
'home.contact.subtitle' => 'Wed love your input: questions, feature requests, bugs or compliments',
'home.contact.form.name' => 'Name',
'home.contact.form.email' => 'Email',
'home.contact.form.subject' => 'Subject',
'home.contact.form.message' => 'Message',
'home.contact.form.submit' => 'Submit',
'home.contact.form.social' => 'Social Networks',
'home.contact.form.company' => 'Company Name',
'home.contact.form.size' => 'Company Size',
'home.contact.thanks.title' => 'Thank You!',
'home.contact.thanks.subtitle' => 'Your message has been sent successfully. We appreciate your feedback, our team will try to get back to you as soon as possible!',
'home.contact.thanks.back' => 'Back to Homepage',
'home.support.title' => 'Support',
'home.support.healthy' => 'Service is healthy.',
'home.support.unhealthy' => 'We are experiencing some service disruption.',
'home.support.view' => 'View Status',
'home.support.uptime' => 'uptime in last 24h',
'home.support.updated' => 'Last updated at',
'home.support.powered' => 'Powered by',
// Auth - Signin
'home.auth.signin.title' => 'Sign In',
'home.auth.signin.regular.title' => 'Login using email and password',
'home.auth.signin.oauth.title' => 'Login using your favorite OAuth provider',
'home.auth.signin.oauth.facebook' => 'Sign in with Facebook',
'home.auth.signin.oauth.linkedin' => 'Sign in with LinkedIn',
'home.auth.signin.oauth.github' => 'Sign in with GitHub',
'home.auth.signin.labels.email' => 'Email',
'home.auth.signin.labels.password' => 'Password',
'home.auth.signin.labels.password.validation' => 'Six or more characters',
'home.auth.signin.labels.action1' => 'Sign In',
'home.auth.signin.labels.action2' => 'Forgot password?',
'home.auth.signin.labels.action3' => 'Sign up now',
'home.auth.signin.labels.or' => 'or don\'t have an account?',
'home.auth.signin.failure' => 'Login failed. Please check your credentials.',
// Auth - Signup
'home.auth.signup.title' => 'Sign Up',
'home.auth.signup.required' => 'All fields are required',
'home.auth.signup.labels.name' => 'Name',
'home.auth.signup.labels.email' => 'Email',
'home.auth.signup.labels.password' => 'Password',
'home.auth.signup.labels.password.validation' => 'Six or more characters',
'home.auth.signup.labels.agree' => 'By signing up, you agree to the',
'home.auth.signup.labels.and' => ' and ',
'home.auth.signup.labels.terms' => 'Terms and Conditions',
'home.auth.signup.labels.privacy' => 'Privacy Policy',
'home.auth.signup.labels.action' => 'Sign Up',
'home.auth.signup.failure' => 'Registration Failed. Please try again later',
// Auth - Recovery
'home.auth.recovery.title' => 'Password Recovery',
'home.auth.recovery.required' => 'All fields are required',
'home.auth.recovery.labels.email' => 'Email',
'home.auth.recovery.action' => 'Recover',
'home.auth.recovery.back' => 'Back to sign in',
'home.auth.recovery.success' => 'We have sent you a mail with a password reset link',
'home.auth.recovery.failure' => 'Password recovery failed',
// Auth - Reset
'home.auth.reset.title' => 'Password Reset',
'home.auth.reset.required' => 'All fields are required',
'home.auth.reset.labels.passwordA' => 'Password',
'home.auth.reset.labels.passwordB' => 'Password Again',
'home.auth.reset.labels.password.validation' => 'Six or more characters',
'home.auth.reset.action' => 'Apply',
'home.auth.reset.success' => 'Password Reset Completed',
'home.auth.reset.failure' => 'Password Reset Failed',
// Auth - Confirm
'home.auth.confirm.title' => 'Account Confirmation in Progress',
'home.auth.confirm.subtitle' => 'Please wait a few seconds while your account is verified.',
'home.auth.confirm.success' => 'Confirmation Completed Successfully',
'home.auth.confirm.failure' => 'Confirmation Failed',
// Auth - Join
'home.auth.join.title' => 'Invitation',
'home.auth.join.subtitle' => 'You have been invited to join %s team on '.APP_NAME,
'home.auth.join.success' => 'Joined Team Successfully',
'home.auth.join.failure' => 'Failed to join team. Please try again later',
'home.auth.join.agree' => 'By accepting the invitation, you agree to the %s and %s.',
'home.auth.join.terms' => 'Terms and Conditions',
'home.auth.join.privacy' => 'Privacy Policy',
'home.auth.join.accept' => 'Accept',
'home.auth.join.cancel' => 'Cancel',
'console.title' => 'Console',
// Console - Account
'console.account.title' => 'Account',
'console.account.section.overview.title' => 'Overview',
'console.account.section.overview.labels.name' => 'Name',
'console.account.section.overview.labels.email' => 'Email',
'console.account.section.overview.labels.password' => 'Password',
'console.account.section.overview.labels.password1' => 'Current Password',
'console.account.section.overview.labels.password2' => 'New Password',
'console.account.section.overview.labels.localization' => 'Localization',
'console.account.section.overview.labels.language' => 'Language',
'console.account.section.overview.labels.timezone' => 'Timezone',
'console.account.section.overview.actions.update-name' => 'Update Name',
'console.account.section.overview.actions.update-email' => 'Update Email',
'console.account.section.overview.actions.update-password' => 'Update Password',
'console.account.section.overview.actions.update-avatar' => 'Upload',
'console.account.section.overview.actions.update-avatar-via' => 'via',
'console.account.section.overview.actions.update' => 'Update',
'console.account.section.overview.actions.cancel' => 'Cancel',
'console.account.section.overview.actions.logout' => 'Logout',
'console.account.section.overview.danger.title' => 'Danger Zone',
'console.account.section.overview.danger.subtitle' => 'This is the area where you can delete your account.',
'console.account.section.overview.danger.disclaimer' => 'By deleting your account you will lose access to any of your teams and shared data.',
'console.account.section.overview.danger.note' => 'PLEASE NOTICE: Account deletion is irreversible.',
'console.account.section.overview.danger.action' => 'Delete Account',
'console.account.section.security.title' => 'Security',
'console.account.section.security.devices.title' => 'Devices and Sessions',
'console.account.section.security.devices.logout' => 'Logout',
'console.account.section.security.devices.logout.failure' => 'Logout from Session Failed',
'console.account.section.security.devices.logout-all' => 'Logout from all devices',
'console.account.section.security.devices.logout-all.failure' => 'Logout from All Sessions Failed',
'console.account.section.security.devices.current' => 'Current Session',
'console.account.section.security.devices.unknown' => 'Unknown Location',
'console.account.section.security.recent-activity.title' => 'Recent Activity',
'console.account.section.security.recent-activity.date' => 'Date',
'console.account.section.security.recent-activity.event' => 'Event',
'console.account.section.security.recent-activity.client' => 'Client',
'console.account.section.security.recent-activity.location' => 'Location',
'console.account.section.security.recent-activity.ip' => 'IP',
'console.notifications.title' => 'Notifications',
'console.settings.title' => 'Settings',
'console.settings.section.overview.title' => 'Overview',
'console.settings.section.keys.title' => 'API Keys',
'console.settings.section.webhooks.title' => 'Webhooks',
'console.settings.section.tasks.title' => 'Tasks',
'console.settings.section.members.title' => 'Members',
'console.settings.section.members.labels.leave' => 'Leave',
'console.settings.section.members.labels.resend' => 'Resend',
'console.settings.section.members.labels.pending' => 'Pending Approval',
'console.settings.section.members.labels.invite' => 'Invite Member',
'console.settings.section.members.labels.send' => 'Send Invite',
'console.settings.section.members.labels.cancel' => 'Cancel',
'console.settings.section.members.labels.name' => 'Name',
'console.settings.section.members.labels.email' => 'Email',
'console.settings.section.members.labels.role' => 'Role',
'console.settings.section.members.invite.success' => 'Invitation Sent Successfully',
'console.settings.section.members.invite.failure' => 'Failed to Send Invite',
'console.settings.section.members.leave.success' => 'Member Removed Successfully',
'console.settings.section.members.leave.failure' => 'Failed to Remove Member',
'console.home.title' => 'Console',
'console.database.title' => 'Database',
'console.storage.title' => 'Storage',
'console.users.title' => 'Users',
'console.users.section.users.title' => 'Users',
'console.users.section.teams.title' => 'Teams',
'console.users.section.providers.title' => 'Providers',
'console.users.section.templates.title' => 'Templates',
'console.webhooks.title' => 'Webhooks',
'console.keys.title' => 'API Keys',
'console.tasks.title' => 'Tasks',
// Service - Users
'auth.emails.team' => '%s Team',

View file

@ -1,9 +1,13 @@
<?php
return [
'settings.inspire' => '"The art of being wise is the art of knowing what to overlook."',
'settings.locale' => 'he',
'settings.direction' => 'rtl',
// General
'general.loading' => 'Loading...',
// Service - Users
'auth.emails.team' => 'צוות %s',
'auth.emails.confirm.title' => 'אימות חשבון',

View file

@ -66,7 +66,7 @@ $utopia->get('/console')
;
$layout
->setParam('title', APP_NAME.' - '.Locale::getText('console.title'))
->setParam('title', APP_NAME.' - Console')
->setParam('body', $page);
});
@ -83,7 +83,7 @@ $utopia->get('/console/account')
;
$layout
->setParam('title', APP_NAME.' - '.Locale::getText('console.account.title'))
->setParam('title', 'Account - ' . APP_NAME)
->setParam('body', $page);
});
@ -95,7 +95,7 @@ $utopia->get('/console/notifications')
$page = new View(__DIR__.'/../views/v1/console/notifications/index.phtml');
$layout
->setParam('title', APP_NAME.' - '.Locale::getText('console.notifications.title'))
->setParam('title', APP_NAME.' - Notifications')
->setParam('body', $page);
});
@ -107,7 +107,7 @@ $utopia->get('/console/home')
$page = new View(__DIR__.'/../views/console/home/index.phtml');
$layout
->setParam('title', APP_NAME.' - '.Locale::getText('console.home.title'))
->setParam('title', APP_NAME.' - Console')
->setParam('body', $page);
});
@ -119,7 +119,7 @@ $utopia->get('/console/settings')
$page = new View(__DIR__.'/../views/console/settings/index.phtml');
$layout
->setParam('title', APP_NAME.' - '.Locale::getText('console.settings.title'))
->setParam('title', APP_NAME.' - Settings')
->setParam('body', $page);
});
@ -131,7 +131,7 @@ $utopia->get('/console/webhooks')
$page = new View(__DIR__.'/../views/console/webhooks/index.phtml');
$layout
->setParam('title', APP_NAME.' - '.Locale::getText('console.webhooks.title'))
->setParam('title', APP_NAME.' - Webhooks')
->setParam('body', $page);
});
@ -143,7 +143,7 @@ $utopia->get('/console/keys')
$page = new View(__DIR__.'/../views/console/keys/index.phtml');
$layout
->setParam('title', APP_NAME.' - '.Locale::getText('console.keys.title'))
->setParam('title', APP_NAME.' - API Keys')
->setParam('body', $page);
});
@ -155,7 +155,7 @@ $utopia->get('/console/tasks')
$page = new View(__DIR__.'/../views/console/tasks/index.phtml');
$layout
->setParam('title', APP_NAME.' - '.Locale::getText('console.tasks.title'))
->setParam('title', APP_NAME.' - Tasks')
->setParam('body', $page);
});
@ -167,7 +167,7 @@ $utopia->get('/console/database')
$page = new View(__DIR__.'/../views/console/database/index.phtml');
$layout
->setParam('title', APP_NAME.' - '.Locale::getText('console.database.title'))
->setParam('title', APP_NAME.' - Database')
->setParam('body', $page);
});
@ -190,7 +190,7 @@ $utopia->get('/console/database/collection')
;
$layout
->setParam('title', APP_NAME.' - '.Locale::getText('console.database.title'))
->setParam('title', APP_NAME.' - Database')
->setParam('body', $page);
});
@ -202,7 +202,7 @@ $utopia->get('/console/storage')
$page = new View(__DIR__.'/../views/console/storage/index.phtml');
$layout
->setParam('title', APP_NAME.' - '.Locale::getText('console.storage.title'))
->setParam('title', APP_NAME.' - Storage')
->setParam('body', $page);
});

View file

@ -9,7 +9,7 @@ use Utopia\Locale\Locale;
$layout
->setParam('title', APP_NAME)
->setParam('description', Locale::getText('general.description'))
->setParam('description', '')
->setParam('class', 'home')
->setParam('header', [new View(__DIR__.'/../views/home/comps/header.phtml')])
;
@ -35,7 +35,7 @@ $utopia->get('/auth/signin')
$page = new View(__DIR__.'/../views/home/auth/signin.phtml');
$layout
->setParam('title', Locale::getText('home.auth.signin.title').' - '.APP_NAME)
->setParam('title', 'Sign In - '.APP_NAME)
->setParam('body', $page);
});
@ -47,7 +47,7 @@ $utopia->get('/auth/signup')
$page = new View(__DIR__.'/../views/home/auth/signup.phtml');
$layout
->setParam('title', Locale::getText('home.auth.signup.title').' - '.APP_NAME)
->setParam('title', 'Sign Up - '.APP_NAME)
->setParam('body', $page);
});
@ -59,7 +59,7 @@ $utopia->get('/auth/recovery')
$page = new View(__DIR__.'/../views/home/auth/recovery.phtml');
$layout
->setParam('title', Locale::getText('home.auth.recovery.title').' - '.APP_NAME)
->setParam('title', 'Password Recovery - '.APP_NAME)
->setParam('body', $page);
});
@ -71,7 +71,7 @@ $utopia->get('/auth/confirm')
$page = new View(__DIR__.'/../views/home/auth/confirm.phtml');
$layout
->setParam('title', Locale::getText('home.auth.confirm.title').' - '.APP_NAME)
->setParam('title', 'Account Confirmation - '.APP_NAME)
->setParam('body', $page);
});
@ -83,7 +83,7 @@ $utopia->get('/auth/join')
$page = new View(__DIR__.'/../views/home/auth/join.phtml');
$layout
->setParam('title', Locale::getText('home.auth.join.title').' - '.APP_NAME)
->setParam('title', 'Invitation - '.APP_NAME)
->setParam('body', $page);
});
@ -95,7 +95,7 @@ $utopia->get('/auth/recovery/reset')
$page = new View(__DIR__.'/../views/home/auth/recovery/reset.phtml');
$layout
->setParam('title', Locale::getText('home.auth.reset.title').' - '.APP_NAME)
->setParam('title', 'Password Reset - '.APP_NAME)
->setParam('body', $page);
});

View file

@ -6,9 +6,9 @@ use Utopia\Locale\Locale;
Locale::$exceptions = false;
$roles = [
['type' => 'owner', 'label' => Locale::getText('general.roles.owner')],
['type' => 'developer', 'label' => Locale::getText('general.roles.developer')],
['type' => 'admin', 'label' => Locale::getText('general.roles.admin')],
['type' => 'owner', 'label' => 'Owner'],
['type' => 'developer', 'label' => 'Developer'],
['type' => 'admin', 'label' => 'Admin'],
];
$layout = new View(__DIR__.'/../../views/layouts/default.phtml');
@ -20,7 +20,6 @@ if (!empty($request->getQuery('version', ''))) {
$layout
->setParam('title', APP_NAME)
->setParam('description', Locale::getText('general.description'))
->setParam('protocol', $request->getServer('REQUEST_SCHEME', 'https'))
->setParam('domain', $domain)
->setParam('home', $request->getServer('_APP_HOME'))

View file

@ -4,7 +4,7 @@ use Utopia\Locale\Locale;
?>
<div class="cover">
<h1 class="zone xl margin-bottom-large margin-top">
<?php echo Locale::getText('console.account.title'); ?>
Account
</h1>
</div>
@ -19,7 +19,7 @@ use Utopia\Locale\Locale;
data-failure="trigger"
data-failure-param-trigger-events="logout">
<h2><span class="number"><i class="icon-user"></i></span><?php echo Locale::getText('console.account.section.overview.title'); ?></h2>
<h2><span class="number"><i class="icon-user"></i></span>Overview</h2>
<div class="row responsive">
<div class="col span-9">
<div class="box margin-bottom-xl">
@ -35,14 +35,14 @@ use Utopia\Locale\Locale;
data-failure-param-alert-text="Failed to update your name"
data-failure-param-alert-classname="error">
<label for="name"><?php echo Locale::getText('console.account.section.overview.labels.name'); ?></label>
<label for="name">Name</label>
<div class="row">
<div class="col span-8">
<input name="name" id="name" type="text" autocomplete="off" data-ls-bind="{{account.name}}" required class="margin-bottom-no">
</div>
<div class="col span-4">
<button type="submit" class="fill reverse"><?php echo Locale::getText('console.account.section.overview.actions.update-name'); ?></button>
<button type="submit" class="fill reverse">Update Name</button>
</div>
</div>
@ -64,18 +64,18 @@ use Utopia\Locale\Locale;
data-failure-param-alert-text="Failed updating email address"
data-failure-param-alert-classname="error">
<label><?php echo Locale::getText('console.account.section.overview.labels.email'); ?></label>
<label>Email</label>
<div class="row">
<div class="col span-8">
<input name="email" type="email" class="margin-bottom-no" autocomplete="off" placeholder="me@example.com" data-ls-bind="{{account.email}}" required>
</div>
<div class="col span-4">
<div data-ui-modal class="modal close width-small height-small" data-button-text="<?php echo $this->escape(Locale::getText('console.account.section.overview.actions.update-email')); ?>" data-button-class="fill reverse">
<label><?php echo Locale::getText('console.account.section.overview.labels.password'); ?></label>
<div data-ui-modal class="modal close width-small height-small" data-button-text="Update Email" data-button-class="fill reverse">
<label>Password</label>
<input name="password" type="password" class="full-width" autocomplete="off" placeholder="" required>
<footer>
<button type="submit"><?php echo Locale::getText('console.account.section.overview.actions.update'); ?></button> &nbsp; <button data-ui-modal-close="" type="button" class="reverse"><?php echo Locale::getText('console.account.section.overview.actions.cancel'); ?></button>
<button type="submit">Update</button> &nbsp; <button data-ui-modal-close="" type="button" class="reverse">Cancel</button>
</footer>
</div>
</div>
@ -84,8 +84,8 @@ use Utopia\Locale\Locale;
<hr />
<div data-ui-modal class="modal close width-small" data-button-text="<?php echo $this->escape(Locale::getText('console.account.section.overview.actions.update-password')); ?>" data-button-class="reverse">
<h1><?php echo Locale::getText('console.account.section.overview.actions.update-password'); ?></h1>
<div data-ui-modal class="modal close width-small" data-button-text="Update Password" data-button-class="reverse">
<h1>Update Password</h1>
<form name="update-password"
data-service="account.updatePassword"
@ -98,14 +98,14 @@ use Utopia\Locale\Locale;
data-failure-param-alert-text="Failed updating password"
data-failure-param-alert-classname="error">
<label><?php echo Locale::getText('console.account.section.overview.labels.password1'); ?></label>
<label>Current Password</label>
<input name="oldPassword" type="password" class="full-width" autocomplete="off" placeholder="" required>
<label><?php echo Locale::getText('console.account.section.overview.labels.password2'); ?></label>
<label>New Password</label>
<input name="password" type="password" class="full-width" autocomplete="off" placeholder="" required data-forms-password-meter>
<footer>
<button type="submit"><?php echo Locale::getText('console.account.section.overview.actions.update-password'); ?></button> &nbsp; <button data-ui-modal-close="" type="button" class="reverse"><?php echo Locale::getText('console.account.section.overview.actions.cancel'); ?></button>
<button type="submit">Update Password</button> &nbsp; <button data-ui-modal-close="" type="button" class="reverse">Cancel</button>
</footer>
</form>
</div>
@ -122,7 +122,7 @@ use Utopia\Locale\Locale;
data-failure-param-alert-text="Logout failed"
data-failure-param-alert-classname="error">
<button class="fill danger icon fill"><i class="icon-login"></i> <?php echo Locale::getText('console.account.section.overview.actions.logout'); ?></button>
<button class="fill danger icon fill"><i class="icon-login"></i> Logout</button>
</form>
</div>
@ -133,25 +133,25 @@ use Utopia\Locale\Locale;
<br />
<a href="https://en.gravatar.com/gravatars/new/" rel="noopener" class="button margin-bottom-small" target="_blank"><i class="icon-upload"></i> <?php echo Locale::getText('console.account.section.overview.actions.update-avatar'); ?></a>
<a href="https://en.gravatar.com/gravatars/new/" rel="noopener" class="button margin-bottom-small" target="_blank"><i class="icon-upload"></i> Upload</a>
<br />
<small class="text-size-small">(<?php echo Locale::getText('console.account.section.overview.actions.update-avatar-via'); ?> <a href="https://gravatar.com/" target="_blank" rel="noopener">gravatar.com <i class="icon-link-ext"></i></a>)</small>
<small class="text-size-small">(via <a href="https://gravatar.com/" target="_blank" rel="noopener">gravatar.com <i class="icon-link-ext"></i></a>)</small>
</div>
</div>
<div class="row responsive">
<div class="col span-9">
<h3 class="text-danger"><?php echo Locale::getText('console.account.section.overview.danger.title'); ?></h3>
<h3 class="text-danger">Danger Zone</h3>
<div class="box danger">
<p><?php echo Locale::getText('console.account.section.overview.danger.subtitle'); ?></p>
<p>This is the area where you can delete your account.</p>
<p><?php echo Locale::getText('console.account.section.overview.danger.disclaimer'); ?></p>
<p>By deleting your account you will lose access to any of your teams and shared data.</p>
<p><?php echo Locale::getText('console.account.section.overview.danger.note'); ?></p>
<p>PLEASE NOTICE: Account deletion is irreversible.</p>
<form class="inline"
data-service="account.deactivate"
@ -163,7 +163,7 @@ use Utopia\Locale\Locale;
data-failure="alert"
data-failure-param-alert-text="Account deactivation failed"
data-failure-param-alert-classname="error">
<button class="danger reverse"><?php echo Locale::getText('console.account.section.overview.danger.action'); ?></button>
<button class="danger reverse">Delete Account</button>
</form>
</div>
</div>
@ -172,9 +172,9 @@ use Utopia\Locale\Locale;
</div>
</li>
<li data-state="/console/account/security">
<h2><span class="number"><i class="icon-shield"></i></span><?php echo Locale::getText('console.account.section.security.title'); ?></h2>
<h2><span class="number"><i class="icon-shield"></i></span>Security</h2>
<h3><?php echo Locale::getText('console.account.section.security.devices.title'); ?></h3>
<h3>Devices and Sessions</h3>
<div class="box margin-bottom"
data-service="account.getSessions"
@ -194,11 +194,11 @@ use Utopia\Locale\Locale;
data-success="trigger"
data-success-param-trigger-events="session-delete"
data-failure="alert"
data-failure-param-alert-text="<?php echo $this->escape(Locale::getText('console.account.section.security.devices.logout.failure')); ?>"
data-failure-param-alert-text="Logout from Session Failed"
data-failure-param-alert-classname="error">
<input type="hidden" name="id" data-ls-bind="{{session.id}}">
<button class="danger"><?php echo Locale::getText('console.account.section.security.devices.logout'); ?></button>
<button class="danger">Logout</button>
</form>
</span>
@ -213,10 +213,10 @@ use Utopia\Locale\Locale;
data-success-param-trigger-events="logout"
data-success-param-redirect-url="/"
data-failure="alert"
data-failure-param-alert-text="<?php echo $this->escape(Locale::getText('console.account.section.security.devices.logout.failure')); ?>"
data-failure-param-alert-text="Logout from Session Failed"
data-failure-param-alert-classname="error">
<input type="hidden" name="id" data-ls-bind="{{session.id}}">
<button class="danger"><?php echo Locale::getText('console.account.section.security.devices.logout'); ?></button>
<button class="danger">Logout</button>
</form>
</span>
@ -225,7 +225,7 @@ use Utopia\Locale\Locale;
<span data-ls-bind="{{session.client.name}}"></span> <span data-ls-bind="{{session.client.version}}"></span> on <span data-ls-bind="{{session.model}}"></span> <span data-ls-bind="{{session.OS.name}}"></span> <span data-ls-bind="{{session.OS.version}}"></span>
&nbsp;
<span data-ls-if="true == {{session.current}}" style="display: none;">
<span class="tag green"><?php echo Locale::getText('console.account.section.security.devices.current'); ?></span>
<span class="tag green">Current Session</span>
</span>
<div class="margin-top-small">
@ -244,10 +244,10 @@ use Utopia\Locale\Locale;
data-success-param-trigger-events="session-delete"
data-success-redirect-url="/"
data-failure="alert"
data-failure-param-alert-text="<?php echo $this->escape(Locale::getText('console.account.section.security.devices.logout-all')); ?>"
data-failure-param-alert-text="Logout from All Sessions Failed"
data-failure-param-alert-classname="error">
<input type="hidden" name="id" value="0">
<button class="danger"><?php echo Locale::getText('console.account.section.security.devices.logout-all'); ?></button>
<button class="danger">Logout from all devices</button>
</form>
</li>
<li data-state="/console/account/activity">
@ -263,26 +263,26 @@ use Utopia\Locale\Locale;
<table class="vertical small">
<thead>
<tr>
<th width="140"><?php echo Locale::getText('console.account.section.security.recent-activity.date'); ?></th>
<th width="175"><?php echo Locale::getText('console.account.section.security.recent-activity.event'); ?></th>
<th><?php echo Locale::getText('console.account.section.security.recent-activity.client'); ?></th>
<th width="90"><?php echo Locale::getText('console.account.section.security.recent-activity.location'); ?></th>
<th width="90"><?php echo Locale::getText('console.account.section.security.recent-activity.ip'); ?></th>
<th width="140">Date</th>
<th width="175">Event</th>
<th>Client</th>
<th width="90">Location</th>
<th width="90">IP</th>
</tr>
</thead>
<tbody data-ls-loop="securityLogs" data-ls-as="log">
<tr>
<td data-title="<?php echo $this->escape(Locale::getText('console.account.section.security.recent-activity.date')); ?>: "><span data-ls-bind="{{log.time|date-time}}"></span></td>
<td data-title="<?php echo $this->escape(Locale::getText('console.account.section.security.recent-activity.event')); ?>: "><span data-ls-bind="{{log.event}}"></span></td>
<td data-title="<?php echo $this->escape(Locale::getText('console.account.section.security.recent-activity.client')); ?>: ">
<td data-title="Date: "><span data-ls-bind="{{log.time|date-time}}"></span></td>
<td data-title="Event: "><span data-ls-bind="{{log.event}}"></span></td>
<td data-title="Client: ">
<img data-ls-attrs="src={{env.API}}/avatars/browsers/{{log.client.short_name|lowercase}}?width=80&height=80,title={{log.client.name}},alt={{log.client.name}}" class="avatar xs inline margin-end-small" />
<span data-ls-bind="{{log.client.name}} {{log.client.version}} on {{log.model}} {{log.OS.name}} {{log.OS.version}}"></span>
</td>
<td data-title="<?php echo $this->escape(Locale::getText('console.account.section.security.recent-activity.location')); ?>: ">
<td data-title="Location: ">
<img data-ls-attrs="src={{env.API}}/avatars/flags/{{log.geo.isoCode}}?width=80&height=80" class="avatar xs inline margin-end-small" />
<span data-ls-bind="{{log.geo.country}}"></span>
</td>
<td data-title="<?php echo $this->escape(Locale::getText('console.account.section.security.recent-activity.ip')); ?>: "><span data-ls-bind="{{log.ip}}"></span></td>
<td data-title="IP: "><span data-ls-bind="{{log.ip}}"></span></td>
</tr>
</tbody>
</table>

View file

@ -4,7 +4,7 @@ use Utopia\Locale\Locale;
?>
<div class="cover">
<h1 class="zone xxl margin-bottom-large margin-top">
<?php echo Locale::getText('console.database.title'); ?>
Database
</h1>
</div>

View file

@ -17,7 +17,7 @@ $scopes = [ // TODO sync with project list
?>
<div class="cover margin-bottom-large">
<h1 class="zone xl margin-bottom-large margin-top">
<?php echo Locale::getText('console.keys.title'); ?>
API Keys
</h1>
</div>
<div class="zone xl"

View file

@ -6,7 +6,7 @@ use Utopia\Locale\Locale;
<div class="cover">
<h1 class="zone xl margin-bottom-large margin-top">
<?php echo Locale::getText('console.settings.title'); ?>
Settings
</h1>
</div>
@ -22,7 +22,7 @@ use Utopia\Locale\Locale;
<div class="zone xl">
<ul class="phases clear" data-ui-phases data-selected="{{router.params.tab}}">
<li data-state="/console/settings?project={{router.params.project}}">
<h2><?php echo Locale::getText('console.settings.section.overview.title'); ?></h2>
<h2>Overview</h2>
<form
data-service="projects.updateProject"
@ -127,7 +127,7 @@ use Utopia\Locale\Locale;
</form>
</li>
<li data-state="/console/settings/members?project={{router.params.project}}">
<h2><?php echo Locale::getText('console.settings.section.members.title'); ?></h2>
<h2>Members</h2>
<div class="zone xl"
data-service="teams.getTeamMembers"
@ -146,16 +146,16 @@ use Utopia\Locale\Locale;
data-scope="console"
data-event="submit"
data-success="alert,trigger"
data-success-param-alert-text="<?php echo Locale::getText('console.settings.section.members.leave.success'); ?>"
data-success-param-alert-text="Member Removed Successfully"
data-success-param-trigger-events="membership-delete"
data-failure="alert"
data-failure-param-alert-text="<?php echo Locale::getText('console.settings.section.members.leave.failure'); ?>"
data-failure-param-alert-text="Failed to Remove Member"
data-failure-param-alert-classname="error">
<input name="teamId" id="teamId" type="hidden" data-ls-bind="{{console-project.teamId}}">
<input name="inviteId" id="inviteId" type="hidden" data-ls-bind="{{member.inviteId}}">
<button class="danger"><?php echo Locale::getText('console.settings.section.members.labels.leave'); ?></button>
<button class="danger">Leave</button>
</form>
<div data-ls-if="false === {{member.confirm}}" class="pull-end margin-end" style="display: none;">
@ -165,34 +165,34 @@ use Utopia\Locale\Locale;
data-event="submit"
data-loading="Resending invitation, please wait..."
data-success="alert,trigger"
data-success-param-alert-text="<?php echo Locale::getText('console.settings.section.members.invite.success'); ?>"
data-success-param-alert-text="Invitation Sent Successfully"
data-success-param-trigger-events="membership-resend"
data-failure="alert"
data-failure-param-alert-text="<?php echo Locale::getText('console.settings.section.members.invite.failure'); ?>"
data-failure-param-alert-text="Failed to Send Invite"
data-failure-param-alert-classname="error">
<input name="teamId" id="teamId" type="hidden" data-ls-bind="{{console-project.teamId}}">
<input name="inviteId" id="inviteId" type="hidden" data-ls-bind="{{member.inviteId}}">
<input name="redirect" type="hidden" data-ls-bind="{{env.PROTOCOL}}://{{env.DOMAIN}}/auth/join?project={{router.params.project}}" />
<button class="reverse"><?php echo Locale::getText('console.settings.section.members.labels.resend'); ?></button>
<button class="reverse">Resend</button>
</form>
</div>
<img src="" data-ls-attrs="src={{member|gravatar}}" data-size="200" alt="User Avatar" class="avatar pull-start margin-end" loading="lazy" width="60" height="60" />
<div class="margin-bottom-small">
<span data-ls-bind="{{member.name}}"></span> &nbsp;&nbsp;<span class="tag" data-ls-bind="{{member.roles.0}}"></span> &nbsp;&nbsp;<span data-ls-if="false === {{member.confirm}}" class="tag red" style="display: none;"><?php echo Locale::getText('console.settings.section.members.labels.pending'); ?></span>
<span data-ls-bind="{{member.name}}"></span> &nbsp;&nbsp;<span class="tag" data-ls-bind="{{member.roles.0}}"></span> &nbsp;&nbsp;<span data-ls-if="false === {{member.confirm}}" class="tag red" style="display: none;">Pending Approval</span>
</div>
<small data-ls-bind="{{member.email}}"></small>
</li>
</ul>
</div>
<div data-ui-modal class="modal close width-small" data-button-text="<?php echo Locale::getText('console.settings.section.members.labels.invite'); ?>" data-button-class="">
<div data-ui-modal class="modal close width-small" data-button-text="Invite Member" data-button-class="">
<button type="button" class="close pull-end" data-ui-modal-close><i class="icon-cancel"></i></button>
<h1><?php echo Locale::getText('console.settings.section.members.labels.invite'); ?></h1>
<h1>Invite Member</h1>
<form name="teams.createTeamMembership"
data-service="teams.createTeamMembership"
@ -200,29 +200,29 @@ use Utopia\Locale\Locale;
data-event="submit"
data-loading="Sending invitation, please wait..."
data-success="alert,trigger,reset"
data-success-param-alert-text="<?php echo Locale::getText('console.settings.section.members.invite.success'); ?>"
data-success-param-alert-text="Invitation Sent Successfully"
data-success-param-trigger-events="membership-create,modal-close"
data-failure="alert"
data-failure-param-alert-text="<?php echo Locale::getText('console.settings.section.members.invite.failure'); ?>"
data-failure-param-alert-text="Failed to Send Invite"
data-failure-param-alert-classname="error">
<input name="teamId" id="teamId" type="hidden" data-ls-bind="{{console-project.teamId}}">
<input name="redirect" type="hidden" data-ls-bind="{{env.PROTOCOL}}://{{env.DOMAIN}}/auth/join?project={{router.params.project}}" />
<label for="name"><?php echo Locale::getText('console.settings.section.members.labels.name'); ?> <small>(<?php echo Locale::getText('general.optional'); ?>)</small></label>
<label for="name">Name <small>(optional)</small></label>
<input name="name" id="name" type="text" autocomplete="name">
<label for="email"><?php echo Locale::getText('console.settings.section.members.labels.email'); ?></label>
<label for="email">Email</label>
<input name="email" id="email" type="email" autocomplete="email" required>
<label for="roles"><?php echo Locale::getText('console.settings.section.members.labels.role'); ?></label>
<label for="roles">Role</label>
<select id="roles" name="roles" required data-ls-loop="env.ROLES" data-ls-as="role" data-cast-to="array">
<option data-ls-attrs="value={{role.type}}" data-ls-bind="{{role.label}}"></option>
</select>
<div class="clear">
<button><?php echo Locale::getText('console.settings.section.members.labels.send'); ?></button>
&nbsp; <button data-ui-modal-close="" type="button" class="reverse"><?php echo Locale::getText('console.settings.section.members.labels.cancel'); ?></button>
<button>Send Invite</button>
&nbsp; <button data-ui-modal-close="" type="button" class="reverse">Cancel</button>
</div>
</form>
</div>

View file

@ -4,7 +4,7 @@ use Utopia\Locale\Locale;
<div class="cover margin-bottom-large">
<h1 class="zone xl margin-bottom-large margin-top">
<?php echo Locale::getText('console.storage.title'); ?>
Storage
</h1>
</div>

View file

@ -5,7 +5,7 @@ use Utopia\Locale\Locale;
?>
<div class="cover margin-bottom-large">
<h1 class="zone xl margin-bottom-large margin-top">
<?php echo Locale::getText('console.tasks.title'); ?>
Tasks
</h1>
</div>
<div class="zone xl"

View file

@ -201,26 +201,26 @@ use Utopia\Locale\Locale;
<table class="vertical small">
<thead>
<tr>
<th width="140"><?php echo Locale::getText('console.account.section.security.recent-activity.date'); ?></th>
<th width="175"><?php echo Locale::getText('console.account.section.security.recent-activity.event'); ?></th>
<th><?php echo Locale::getText('console.account.section.security.recent-activity.client'); ?></th>
<th width="90"><?php echo Locale::getText('console.account.section.security.recent-activity.location'); ?></th>
<th width="90"><?php echo Locale::getText('console.account.section.security.recent-activity.ip'); ?></th>
<th width="140">Date</th>
<th width="175">Event</th>
<th>Client</th>
<th width="90">Location</th>
<th width="90">IP</th>
</tr>
</thead>
<tbody data-ls-loop="logs" data-ls-as="log">
<tr>
<td data-title="<?php echo $this->escape(Locale::getText('console.account.section.security.recent-activity.date')); ?>: "><span data-ls-bind="{{log.time|date-time}}"></span></td>
<td data-title="<?php echo $this->escape(Locale::getText('console.account.section.security.recent-activity.event')); ?>: "><span data-ls-bind="{{log.event}}"></span></td>
<td data-title="<?php echo $this->escape(Locale::getText('console.account.section.security.recent-activity.client')); ?>: ">
<td data-title="Date: "><span data-ls-bind="{{log.time|date-time}}"></span></td>
<td data-title="Event: "><span data-ls-bind="{{log.event}}"></span></td>
<td data-title="Client: ">
<img data-ls-attrs="src={{env.API}}/avatars/browsers/{{log.client.short_name|lowercase}}?width=80&height=80,title={{log.client.name}},alt={{log.client.name}}" class="avatar xs inline margin-end-small" />
<span data-ls-bind="{{log.client.name}} {{log.client.version}} on {{log.model}} {{log.OS.name}} {{log.OS.version}}"></span>
</td>
<td data-title="<?php echo $this->escape(Locale::getText('console.account.section.security.recent-activity.location')); ?>: ">
<td data-title="Location: ">
<img data-ls-attrs="src={{env.API}}/avatars/flags/{{log.geo.isoCode}}?width=80&height=80" class="avatar xs inline margin-end-small" />
<span data-ls-bind="{{log.geo.country}}"></span>
</td>
<td data-title="<?php echo $this->escape(Locale::getText('console.account.section.security.recent-activity.ip')); ?>: "><span data-ls-bind="{{log.ip}}"></span></td>
<td data-title="IP: "><span data-ls-bind="{{log.ip}}"></span></td>
</tr>
</tbody>
</table>

View file

@ -18,7 +18,7 @@ $events = [
?>
<div class="cover margin-bottom-large">
<h1 class="zone xl margin-bottom-large margin-top">
<?php echo Locale::getText('console.webhooks.title'); ?>
Webhooks
</h1>
</div>

View file

@ -10,13 +10,13 @@ use Utopia\Locale\Locale;
data-param-user-id="{{router.params.userId}}"
data-success="redirect,alert,trigger"
data-success-redirect-url="/console"
data-success-alert="<?php echo $this->escape(Locale::getText('home.auth.confirm.success')); ?>"
data-success-alert="Confirmation Completed Successfully"
data-success-triggers="account.update"
data-failure="alert"
data-failure-param-alert-text="<?php echo $this->escape(Locale::getText('home.auth.confirm.failure')); ?>"
data-failure-param-alert-text="Confirmation Failed"
data-failure-param-alert-classname="error">
<h2 class="margin-bottom-small"><?php echo $this->escape(Locale::getText('home.auth.confirm.title')); ?></h2>
<p><?php echo $this->escape(Locale::getText('home.auth.confirm.subtitle')); ?></p>
<h2 class="margin-bottom-small">Account Confirmation in Progress</h2>
<p>Please wait a few seconds while your account is verified.</p>
</form>
</section>

View file

@ -11,13 +11,13 @@ use Utopia\Locale\Locale;
data-param-secret="{{router.params.secret}}"
data-success="redirect,alert,trigger"
data-success-redirect-url="/console?project={{router.params.project}}"
data-success-alert="<?php echo $this->escape(Locale::getText('home.auth.join.success')); ?>"
data-success-alert="Joined Team Successfully"
data-success-triggers="account.update"
data-failure="alert"
data-failure-param-alert-text="<?php echo $this->escape(Locale::getText('home.auth.join.failure')); ?>"
data-failure-param-alert-text="Failed to join team. Please try again later"
data-failure-param-alert-classname="error">
<div class="text-danger margin-bottom-large" style="display: none;" data-ls-if="{{router.params.failure}} == 1"><?php echo $this->escape(Locale::getText('home.auth.join.failure')); ?></div>
<div class="text-danger margin-bottom-large" style="display: none;" data-ls-if="{{router.params.failure}} == 1">Failed to join team. Please try again later</div>
<input name="success" type="hidden" data-ls-bind="{{env.PROTOCOL}}://{{env.DOMAIN}}/console?company={{router.params.company}}">
<input name="failure" type="hidden" data-ls-bind="{{env.PROTOCOL}}://{{env.DOMAIN}}/auth/join?failure=1&company={{router.params.company}}&inviteId={{router.params.inviteId}}&secret={{router.params.secret}}&userId={{router.params.userId}}">
@ -31,9 +31,9 @@ use Utopia\Locale\Locale;
data-success="trigger"
data-success-triggers="api-company.load">
<h2 class="margin-bottom-small"><?php echo $this->escape(Locale::getText('home.auth.join.title')); ?></h2>
<h2 class="margin-bottom-small">Invitation</h2>
<p><?php echo sprintf($this->escape(Locale::getText('home.auth.join.subtitle')), '<span data-ls-echo="{{api-company.name}}"></span>'); ?></p>
<p>You have been invited to join <span data-ls-bind="{{api-company.name}}"></span> team on <?php echo APP_NAME; ?></p>
<div data-ls-if="{{api-company.logo}} !== '' || {{api-company.logo}} !== undefined">
<div data-ls-style="background: {{api-company.theme-color}}; color: {{api-company.theme-color-contrast}}; width: 100px; height: 100px; line-height: 100px; border-radius: 50%; margin: 0 auto; text-align: center">
@ -46,14 +46,13 @@ use Utopia\Locale\Locale;
<div class="pull-start margin-end-small margin-bottom">
<input type="checkbox" required />
</div>
<?php echo sprintf($this->escape(Locale::getText('home.auth.join.agree')),
'<a href="/policy/terms" target="_blank">' . $this->escape(Locale::getText('home.auth.join.terms')) . '</a>',
'<a href="/policy/privacy" target="_blank">' . $this->escape(Locale::getText('home.auth.join.privacy')) . '</a>'); ?>
By accepting the invitation, you agree to the <a href="/policy/terms" target="_blank">Terms and Conditions</a> and <a href="/policy/privacy" target="_blank">Privacy Policy</a>.
</div>
<div class="clear">
<button class="pull-start margin-end"><?php echo $this->escape(Locale::getText('home.auth.join.accept')); ?></button>
<a href="/" class="button reverse pull-start"><?php echo $this->escape(Locale::getText('home.auth.join.cancel')); ?></a>
<button class="pull-start margin-end">Accept</button>
<a href="/" class="button reverse pull-start">Cancel</a>
</div>
</form>
</section>

View file

@ -3,30 +3,30 @@ use Utopia\Locale\Locale;
?>
<div class="zone medium">
<h1 class="zone xl margin-bottom-large margin-top">
<?php echo $this->escape(Locale::getText('home.auth.recovery.title')); ?>
Password Recovery
</h1>
<small class="pull-end">* <?php echo $this->escape(Locale::getText('home.auth.recovery.required')); ?></small>
<small class="pull-end">* All fields are required</small>
<form name="recovery"
data-service="auth.recovery"
data-scope="console"
data-event="submit"
data-success="alert"
data-success-alert="<?php echo $this->escape(Locale::getText('home.auth.recovery.success')); ?>"
data-success-alert="We have sent you a mail with a password reset link"
data-failure="alert"
data-failure-param-alert-text="<?php echo $this->escape(Locale::getText('home.auth.recovery.failure')); ?>"
data-failure-param-alert-text="Password recovery failed"
data-failure-param-alert-classname="error">
<label><?php echo $this->escape(Locale::getText('home.auth.recovery.labels.email')); ?></label>
<label>Email</label>
<input name="email" type="email" class="full-width" autocomplete="email" placeholder="me@example.com" required>
<input name="redirect" type="hidden" data-ls-bind="{{env.PROTOCOL}}://{{env.DOMAIN}}/auth/recovery/reset" />
<button type="submit" class="btn btn-primary"><i class="fa fa-sign-in"></i> <?php echo $this->escape(Locale::getText('home.auth.recovery.action')); ?></button>
<button type="submit" class="btn btn-primary"><i class="fa fa-sign-in"></i> Recover</button>
</form>
</div>
<div class="zone medium">
<a href="/auth/signin"><?php echo $this->escape(Locale::getText('home.auth.recovery.back')); ?></a>
<a href="/auth/signin">Back to sign in</a>
</div>

View file

@ -3,10 +3,10 @@ use Utopia\Locale\Locale;
?>
<div class="zone medium">
<h1 class="zone xl margin-bottom margin-top">
<?php echo $this->escape(Locale::getText('home.auth.reset.title')); ?>
Password Reset
</h1>
<small class="pull-end">* <?php echo $this->escape(Locale::getText('home.auth.reset.required')); ?></small>
<small class="pull-end">* All fields are required</small>
<br />
<br />
@ -16,21 +16,21 @@ use Utopia\Locale\Locale;
data-scope="console"
data-event="submit"
data-success="alert,redirect"
data-success-alert="<?php echo $this->escape(Locale::getText('home.auth.reset.success')); ?>"
data-success-alert="Password Reset Completed"
data-success-redirect-url="/auth/signin"
data-failure="alert"
data-failure-param-alert-text="<?php echo $this->escape(Locale::getText('home.auth.reset.failure')); ?>"
data-failure-param-alert-text="Password Reset Failed"
data-failure-param-alert-classname="error">
<input type="hidden" name="userId" data-ls-bind="{{router.params.userId}}">
<input type="hidden" name="token" data-ls-bind="{{router.params.token}}">
<label><?php echo $this->escape(Locale::getText('home.auth.reset.labels.passwordA')); ?></label>
<input name="passwordA" type="password" autocomplete="off" placeholder="" required data-forms-password-meter pattern=".{6,}" title="<?php echo $this->escape(Locale::getText('home.auth.reset.labels.password.validation')); ?>">
<label>Password</label>
<input name="passwordA" type="password" autocomplete="off" placeholder="" required data-forms-password-meter pattern=".{6,}" title="Six or more characters">
<label><?php echo $this->escape(Locale::getText('home.auth.reset.labels.passwordB')); ?></label>
<input name="passwordB" type="password" autocomplete="off" placeholder="" required data-forms-password-meter pattern=".{6,}" title="<?php echo $this->escape(Locale::getText('home.auth.reset.labels.password.validation')); ?>">
<label>Password Again</label>
<input name="passwordB" type="password" autocomplete="off" placeholder="" required data-forms-password-meter pattern=".{6,}" title="Six or more characters">
<button type="submit" class="btn btn-primary"><i class="fa fa-sign-in"></i> <?php echo $this->escape(Locale::getText('home.auth.reset.action')); ?></button>
<button type="submit" class="btn btn-primary"><i class="fa fa-sign-in"></i> Apply</button>
</form>
</div>

View file

@ -3,12 +3,12 @@ use Utopia\Locale\Locale;
?>
<div class="zone medium">
<h1 class="zone xl margin-bottom-large margin-top">
<?php echo $this->escape(Locale::getText('home.auth.signin.title')); ?>
Sign In
</h1>
<div class="text-danger margin-bottom-large" style="display: none;" data-ls-if="{{router.params.failure}} >= 1"><?php echo $this->escape(Locale::getText('home.auth.signin.failure')); ?></div>
<div class="text-danger margin-bottom-large" style="display: none;" data-ls-if="{{router.params.failure}} >= 1">Login failed. Please check your credentials.</div>
<p><?php echo $this->escape(Locale::getText('home.auth.signin.regular.title')); ?></p>
<p>Login using email and password</p>
<form name="login"
data-service="auth.login"
@ -18,23 +18,23 @@ use Utopia\Locale\Locale;
data-success-param-trigger-events="login"
data-success-param-redirect-url="/console"
data-failure="alert"
data-failure-param-alert-text="<?php echo $this->escape(Locale::getText('home.auth.signin.failure')); ?>"
data-failure-param-alert-text="Login failed. Please check your credentials."
data-failure-param-alert-classname="error">
<input name="success" type="hidden" data-ls-bind="{{env.PROTOCOL}}://{{env.DOMAIN}}/console">
<input name="failure" type="hidden" data-ls-bind="{{env.PROTOCOL}}://{{env.DOMAIN}}/auth/signin?failure=1">
<input name="email" type="email" class="full-width" autocomplete="email" placeholder="<?php echo $this->escape(Locale::getText('home.auth.signin.labels.email')); ?>" required>
<input name="email" type="email" class="full-width" autocomplete="email" placeholder="Email" required>
<input name="password" type="password" class="full-width" autocomplete="off" placeholder="<?php echo $this->escape(Locale::getText('home.auth.signin.labels.password')); ?>" required pattern=".{6,}" title="<?php echo $this->escape(Locale::getText('home.auth.signin.labels.password.validation')); ?>">
<input name="password" type="password" class="full-width" autocomplete="off" placeholder="Password" required pattern=".{6,}" title="Six or more characters">
<button><?php echo $this->escape(Locale::getText('home.auth.signin.labels.action1')); ?></button>
<button>Sign In</button>
</form>
<br />
<br />
<div class="text-line-high-large">
<a href="/auth/recovery"><?php echo $this->escape(Locale::getText('home.auth.signin.labels.action2')); ?></a> <?php echo $this->escape(Locale::getText('home.auth.signin.labels.or')); ?> <b><a href="/auth/signup"><?php echo $this->escape(Locale::getText('home.auth.signin.labels.action3')); ?></a></b>
<a href="/auth/recovery">Forgot password?</a> or don't have an account? <b><a href="/auth/signup">Sign up now</a></b>
</div>
</div>

View file

@ -4,12 +4,12 @@ use Utopia\Locale\Locale;
?>
<div class="zone medium signup">
<h1 class="zone xl margin-bottom-large margin-top">
<?php echo $this->escape(Locale::getText('home.auth.signup.title')); ?>
Sign Up
</h1>
<div class="text-danger margin-bottom-large" style="display: none;" data-ls-if="{{router.params.failure}} == 1"><?php echo $this->escape(Locale::getText('home.auth.signup.failure')); ?></div>
<div class="text-danger margin-bottom-large" style="display: none;" data-ls-if="{{router.params.failure}} == 1">Registration Failed. Please try again later</div>
<small class="pull-end">* <?php echo $this->escape(Locale::getText('home.auth.signup.required')); ?></small>
<small class="pull-end">* All fields are required</small>
<form name="register"
data-service="auth.register"
@ -19,30 +19,30 @@ use Utopia\Locale\Locale;
data-success-param-trigger-events="auth-register"
data-success-redirect-url="/console/setup"
data-failure="alert"
data-failure-param-alert-text="<?php echo $this->escape(Locale::getText('home.auth.signup.failure')); ?>"
data-failure-param-alert-text="Registration Failed. Please try again later"
data-failure-param-alert-classname="error">
<input name="success" type="hidden" data-ls-bind="{{env.PROTOCOL}}://{{env.DOMAIN}}/console">
<input name="failure" type="hidden" data-ls-bind="{{env.PROTOCOL}}://{{env.DOMAIN}}/auth/signup?failure=1">
<label><?php echo $this->escape(Locale::getText('home.auth.signup.labels.name')); ?></label>
<label>Name</label>
<input name="name" type="text" autocomplete="name" placeholder="" required>
<label><?php echo $this->escape(Locale::getText('home.auth.signup.labels.email')); ?></label>
<label>Email</label>
<input name="email" type="email" autocomplete="email" placeholder="" required data-ls-bind="{{router.params.email}}">
<label><?php echo $this->escape(Locale::getText('home.auth.signup.labels.password')); ?></label>
<input name="password" type="password" autocomplete="off" placeholder="" required data-forms-password-meter pattern=".{6,}" title="<?php echo $this->escape(Locale::getText('home.auth.signup.labels.password.validation')); ?>">
<label>Password</label>
<input name="password" type="password" autocomplete="off" placeholder="" required data-forms-password-meter pattern=".{6,}" title="Six or more characters">
<div class="agree margin-top-large margin-bottom-large">
<div class="pull-start margin-end-small margin-bottom">
<input type="checkbox" required />
</div>
<?php echo $this->escape(Locale::getText('home.auth.signup.labels.agree')); ?><a href="/policy/terms" tabindex="-1" target="_blank"><?php echo $this->escape(Locale::getText('home.auth.signup.labels.terms')); ?></a><?php echo $this->escape(Locale::getText('home.auth.signup.labels.and')); ?><a href="/policy/privacy" target="_blank" tabindex="-1"><?php echo $this->escape(Locale::getText('home.auth.signup.labels.privacy')); ?></a>
By signing up, you agree to the <a href="/policy/terms" tabindex="-1" target="_blank">Terms and Conditions</a> and <a href="/policy/privacy" target="_blank" tabindex="-1">Privacy Policy</a>
</div>
<input name="redirect" type="hidden" data-ls-bind="{{env.PROTOCOL}}://{{env.DOMAIN}}/auth/confirm" />
<button type="submit"><?php echo $this->escape(Locale::getText('home.auth.signup.labels.action')); ?></button>
<button type="submit">Sign Up</button>
</form>
</div>

View file

@ -91,7 +91,7 @@ $canonical = $this->getParam('canonical', '');
<div class="loader"></div>
<div data-cookie-policy="<?php echo Locale::getText('general.alerts.cookie'); ?>"></div>
<div data-cookie-policy="We are using cookies to make this website easier to use."></div>
<section data-ls-ui-alerts="" class="alerts">
<ul data-ls-loop="alerts.list" data-ls-as="alert">
@ -101,7 +101,7 @@ $canonical = $this->getParam('canonical', '');
<span data-ls-bind="{{alert.text}}"></span>
<span data-ls-if="undefined !== {{alert.link}}" style="display: none;">
<a data-ls-attrs="href={{alert.link}}" data-ls-ui-alerts-delete data-message="{{alert.id}}"><?php echo Locale::getText('general.alerts.learn'); ?></a>
<a data-ls-attrs="href={{alert.link}}" data-ls-ui-alerts-delete data-message="{{alert.id}}">Learn More</a>
</span>
</div>
</li>