مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-12-01 05:43:04 +00:00
refactor: user management
هذا الالتزام موجود في:
@@ -1,16 +0,0 @@
|
||||
- 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
|
||||
@@ -1,41 +0,0 @@
|
||||
- @wide = true
|
||||
- page_title << "Signup"
|
||||
.subPageBox__title
|
||||
Join the #{@user_invite.organizations.first.name} organization
|
||||
= display_flash
|
||||
|
||||
.subPageBox__content
|
||||
%p.subPageBox__text
|
||||
If you don't already have an account on this system, you can create one below. Otherwise, you should
|
||||
#{link_to "login to your existing account", login_path(:return_to => join_path(@user_invite.uuid)), :class => 'u-link'}
|
||||
and add this organization to that.
|
||||
|
||||
.signupForm
|
||||
= form_for @user, :url => signup_path do |f|
|
||||
= hidden_field_tag 'return_to', params[:return_to]
|
||||
= hidden_field_tag 'invite_token', params[:invite_token]
|
||||
= 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, " ".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
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
- 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'
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم