Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update organizations#edit Trix style #4213

Merged
merged 1 commit into from
Mar 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion app/views/organizations/edit.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
<style>
trix-editor {
border: 1px solid #ced4da;
border-radius: 0.25rem;
margin-top: 0.5em;
padding: 0.5em;
}
.trix-dialog--link input[type='url'] {
border: 1px solid #ced4da;
margin: 1em 0;
}
.trix-dialog--link input[type='button'] {
margin-right: 1em;
}
button.trix-active {
background-color: #999;
border-color: #999;
}
</style>
<section class="content-header">
<div class="container-fluid">
<div class="mb-2 row">
Expand Down Expand Up @@ -89,7 +108,7 @@

<% default_email_text_hint = "You can use the variables <code>%{partner_name}</code>, <code>%{delivery_method}</code>, <code>%{distribution_date}</code>, and <code>%{comment}</code> to include the partner's name, delivery method, distribution date, and comments sent in the request." %>
<%= f.input :default_email_text, label: "Distribution Email Content", hint: default_email_text_hint.html_safe do %>
<%= f.rich_text_area :default_email_text %>
<%= f.rich_text_area :default_email_text, placeholder: 'Enter distribution email content...' %>
<% end %>

<%= f.input :logo, wrapper: :input_group do %>
Expand Down