From a9670e8b39bac09305b049b00fd1b64174d2b133 Mon Sep 17 00:00:00 2001 From: donrestarone Date: Sun, 30 May 2021 17:08:41 -0400 Subject: [PATCH] fix style in message threads --- app/views/mailbox/message_threads/_form.haml | 14 ++++++++------ app/views/messages/_form.haml | 8 +++++--- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/app/views/mailbox/message_threads/_form.haml b/app/views/mailbox/message_threads/_form.haml index 9ae241b65..8b3d9bb87 100644 --- a/app/views/mailbox/message_threads/_form.haml +++ b/app/views/mailbox/message_threads/_form.haml @@ -1,8 +1,10 @@ = form_for @message_thread, url: mailbox_message_threads_path, method: :post do |f| - %label - recipients: - = f.text_field :recipients, multiple: true, required: true - %label - Subject: - = f.text_field :subject + .form-group + %label + recipients: + = f.text_field :recipients, multiple: true, required: true, class: 'form-control' + .form-group + %label + Subject: + = f.text_field :subject, class: 'form-control' = render partial: 'messages/form', locals: { f: f } \ No newline at end of file diff --git a/app/views/messages/_form.haml b/app/views/messages/_form.haml index 9b4598487..32e683518 100644 --- a/app/views/messages/_form.haml +++ b/app/views/messages/_form.haml @@ -1,3 +1,5 @@ -= f.fields_for Message.new do |message_form| - = message_form.rich_text_area :content -= f.submit \ No newline at end of file +.my-3 + = f.fields_for Message.new do |message_form| + = message_form.rich_text_area :content + .my-3 + = f.submit "Send", class: 'btn btn-primary' \ No newline at end of file