Update the Copy for the "Emails" Tab in the Admin Member Detail View (#16693)

* Adjusts the copy and layout of the Emails section

* Revert design changes to the Emails tab
This commit is contained in:
Julianna Tetreault 2022-02-25 07:33:52 -07:00 committed by GitHub
parent 70e6aecfc3
commit 0fd55d1c14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 6 deletions

View file

@ -1,10 +1,11 @@
<h2 class="crayons-subtitle-1">Send an email</h2>
<p class="fs-m fw-normal mb-2">To: <%= @user.name %> (<%= @user.email %>)</p>
<%= form_with url: send_email_admin_user_path(@user), local: true, class: "grid gap-4 pt-3" do |f| %>
<%= f.hidden_field(:user_id, value: @user.id) %>
<div class="crayons-field">
<%= f.label :email_subject, "Subject", class: "crayons-field__label" %>
<%= f.text_field :email_subject, class: "crayons-textfield", placeholder: "Short and descriptive subject line...", required: true %>
<%= f.text_field :email_subject, class: "crayons-textfield", placeholder: "What do you want to say in the subject line?", required: true %>
</div>
<div class="crayons-field">

View file

@ -2,8 +2,8 @@
<h2 class="crayons-subtitle-1">Previous emails (<%= @user.email_messages.count %>)</h2>
<% if @user.email_messages.empty? %>
<div class="align-center flex flex-col justify-center my-auto py-7">
<h3 class="fs-xl fw-normal mb-2">📭 No emails found.</h3>
<p class="color-secondary">Any emails sent to <%= @user.email %> can be found here.</p>
<h3 class="fs-xl fw-normal mb-2">No previous emails found for <%= @user.name %>.</h3>
<p class="color-secondary">Any emails sent to <%= @user.email %> will be found here.</p>
</div>
<% else %>
<div class="pt-3">

View file

@ -1,13 +1,13 @@
<%= form_with url: verify_email_ownership_admin_user_path(@user), local: true, class: "crayons-card mb-4 p-3 m:p-4 s:pl-4 m:pl-7 pr-4 flex flex-col s:flex-row justify-between gap-4 s:items-center" do |f| %>
<% unless @last_email_verification_date %>
<div>
<h2 class="crayons-subtitle-2">Email not verified...</h2>
<p class="color-secondary">The user's email address, <%= @user.email %>, hasn't been verified yet.</p>
<h2 class="crayons-subtitle-2">Email not verified</h2>
<p class="color-secondary"><%= @user.name %>'s email hasn't been verified yet.</p>
</div>
<%= f.button "Verify email address", class: "c-btn c-btn--secondary whitespace-nowrap" %>
<% else %>
<p>
Email verified on:
Last verified on
<time datetime="<%= @last_email_verification_date.strftime("%Y-%m-%dT%H:%M:%S%z") %>" class="fw-medium whitespace-nowrap">
<%= @last_email_verification_date.strftime("%b %e '%y, %H:%M") %>
</time>