docbrown/app/views/admin/invitations/new.html.erb
Rajat Talesra 93f73636c7
Post bootstrap changes - remove headings from admin.scss (#19019)
* h1 and h2 design fixes

* h2 redesign fixes

* Removed incorrect code

* Revert incorrect test code

* h3 heading redesign

* h4,h4,h5 headings redesign

* Minor design fixes

* Fixed all heading styles

* Test case fix

* Revert incorrect if condition

* Revert incorrect if condition

* Removed non required div
2023-02-02 15:52:35 +05:30

37 lines
1.5 KiB
Text

<% smtp_enabled = ForemInstance.smtp_enabled? %>
<% unless smtp_enabled %>
<div class="crayons-card">
<div class="crayons-card__body p-4">
<h1 class="crayons-title">Setup SMTP to invite users</h1>
<div class="my-4">
SMTP settings are required so that your Forem can send emails.
If you wish to send invites, email digests and activity notifications you will need to
specify which email host will relay those messages for you. You can
<a href="https://admin.forem.com/docs/advanced-customization/config/email-server-settings" target="_blank">read more about SMTP Settings in our admin guide</a>.
</div>
<div class="my-4">
Please note that you will need to reload this page after configuring your SMTP Settings.
</div>
<div class="fw-bold">
<%= link_to "Configure your SMTP Settings here.", admin_config_path(anchor: "smtp-section"), target: "_blank", rel: :noopener %>
</div>
</div>
</div>
<% end %>
<% if smtp_enabled %>
<h1 class="crayons-title">Invite Users</h1>
<%= form_for(User.new, url: admin_invitations_path) do |f| %>
<div class="crayons-field mt-6">
<%= f.label :email, class: "crayons-field__label" %>
<%= f.text_field :email,
class: "crayons-textfield",
placeholder: "Email of invitee",
required: true %>
</div>
<div class="mt-6">
<%= f.submit "Invite User", class: "crayons-btn" %>
</div>
<% end %>
<% end %>