1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2026-01-18 22:09:46 +00:00

initial commit from appmail

هذا الالتزام موجود في:
Adam Cooke
2017-04-19 13:07:25 +01:00
الأصل a3eff53792
التزام 2fdba0ceb5
474 ملفات معدلة مع 51228 إضافات و0 حذوفات

عرض الملف

@@ -0,0 +1,55 @@
- page_title << "My Settings"
.pageHeader
%h1.pageHeader__title
My Settings
.pageContent.pageContent--compact
= form_for @user, :url => settings_path, :remote => true do |f|
= f.error_messages
%fieldset.fieldSet
.fieldSet__field
= label_tag :password, 'Your Password', :class => 'fieldSet__label'
.fieldSet__input
= password_field_tag :password, params[:password], :autofocus => @password_correct.nil?, :disabled => @password_correct, :class => 'input input--text', :placeholder => "Enter your current password to change your details"
- if @password_correct
= hidden_field_tag :password, params[:password]
%p.fieldSet__text
In order to protect your account, you need to enter your current password in the field above
to authenticate the change of your details.
.fieldSet__title
Your details
.fieldSet__field
= f.label :first_name, "Name", :class => 'fieldSet__label'
.fieldSet__input
.inputPair
= f.text_field :first_name, :class => 'input input--text', :autofocus => @password_correct
= f.text_field :last_name, :class => 'input input--text'
.fieldSet__field
= f.label :email_address, :class => 'fieldSet__label'
.fieldSet__input
= f.text_field :email_address, :class => 'input input--text'
%p.fieldSet__text
If you change your e-mail address, you'll need to verify that you own the new one before
you can continue using your account.
.fieldSet__field
= f.label :time_zone, :class => 'fieldSet__label'
.fieldSet__input
= f.time_zone_select :time_zone, [], {}, :class => 'input input--select'
%p.fieldSet__text
Choose the time zone that you'd like times to be displayed to you when you use our
web interface. By default, times are displayed in UTC.
.fieldSet__title
Change your password?
.fieldSet__field
= f.label :password, "New Password", :class => 'fieldSet__label'
.fieldSet__input
.inputPair
= f.password_field :password, :class => 'input input--text', :placeholder => "•••••••••••", :value => @user.password
= f.password_field :password_confirmation, :class => 'input input--text', :placeholder => "and confirm it", :value => @user.password_confirmation
%p.fieldSetSubmit.buttonSet
= f.submit "Save Settings", :class => 'button button--positive js-form-submit'

عرض الملف

@@ -0,0 +1,16 @@
- page_title << "Join Organization"
.pageHeader
%h1.pageHeader__title
Join Organization
.pageContent.pageContent--compact
%h2.pageContent__intro.u-margin
Welcome to Postal.
- if @organizations.size == 1
You've been invited to join the <b>#{@organizations.first.name}</b> organization. Once accepted, you'll be able to
access this organization's mail servers.
- else
You've been invited to join an organization
%p.buttonSet
= link_to "Accept " + (@organizations.size == 1 ? "Invitation" : "Invitations"), '', :class => "button button--positive", :remote => true, :method => :post
= link_to "Reject " + (@organizations.size == 1 ? "Invitation" : "Invitations"), '', :class => "button button--danger", :remote => true, :method => :delete

عرض الملف

@@ -0,0 +1,39 @@
- @wide = true
- page_title << "Signup"
.subPageBox__title
Create your own Postal account
= display_flash
.subPageBox__content
%p.subPageBox__text
To create an account, just enter your details below and you'll be on your way.
Be sure to enter a valid e-mail address because we'll send you a verification
e-mail as part of the signup process.
.signupForm
= form_for @user, :url => signup_path do |f|
= hidden_field_tag 'return_to', params[:return_to]
= f.error_messages
.fieldSet.fieldSet--compact.u-margin
.fieldSet__fieldPair
.fieldSet__field
= f.label :first_name, :class => 'fieldSet__label'
.fieldSet__input= f.text_field :first_name, :class => 'input input--text input--onWhite', :autofocus => true
.fieldSet__field
= f.label :last_name, :class => 'fieldSet__label'
.fieldSet__input= f.text_field :last_name, :class => 'input input--text input--onWhite'
.fieldSet__field
= f.label :email_address, :class => 'fieldSet__label'
.fieldSet__input= f.text_field :email_address, :class => 'input input--text input--onWhite'
.fieldSet__fieldPair
.fieldSet__field
= f.label :password, :class => 'fieldSet__label'
.fieldSet__input= f.password_field :password, :class => 'input input--text input--onWhite', :placeholder => '•••••••••••'
.fieldSet__field
= f.label :password_confirmation, "&nbsp;".html_safe, :class => 'fieldSet__label'
.fieldSet__input= f.password_field :password_confirmation, :class => 'input input--text input--onWhite', :placeholder => '•••••••••••'
.loginForm__submit
%ul.loginForm__links
%li= link_to "Back to login", login_path(:return_to => params[:return_to])
%p= submit_tag "Create Account", :class => 'button button--positive', :tabindex => 3

عرض الملف

@@ -0,0 +1,18 @@
- page_title << "Verify your e-mail address"
.pageHeader
%h1.pageHeader__title
Please verify your e-mail address
.pageContent.pageContent--compact
%h2.pageContent__intro.u-margin
We need to verify that you're the owner of the e-mail address on your account. It is currently <b>#{current_user.email_address}</b>. To
do this, we've sent you an e-mail with a 6-digit code. Please check your e-mail and enter the code within in the box below.
%p.pageContent__text
If you need to change your e-mail address, you can do this in from your #{link_to 'settings page', settings_path, :class => "u-link"}.
If you haven't received the e-mail, you can #{link_to 'click here to resend it', '', :class => "u-link"}.
= form_tag request.fullpath, :remote => true do
= hidden_field_tag 'return_to', params[:return_to]
%p.u-margin
= text_field_tag "code", params[:code], :autofocus => true, :class => 'input input--text js-multibox'
.buttonSet.u-center
= submit_tag "Verify my e-mail address", :class => 'button button--positive js-form-submit'