From a3b8ec074bc361dec1f61df8f2a207af44a7c0da Mon Sep 17 00:00:00 2001 From: Andrey Bakanovsky Date: Fri, 8 Sep 2023 08:57:51 +0300 Subject: [PATCH 1/2] feat(account shares): update new public share page --- app/views/public_account_shares/new.html.slim | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/app/views/public_account_shares/new.html.slim b/app/views/public_account_shares/new.html.slim index 58c63108..4ecea877 100644 --- a/app/views/public_account_shares/new.html.slim +++ b/app/views/public_account_shares/new.html.slim @@ -1,7 +1,10 @@ -.column - = link_to 'Back', account_shares_path, class: 'button is-light' -.column - p Create a new Public Account Share - -= form_with(url: account_public_account_shares_path, method: :post) do |form| - = form.submit 'Create', class: 'button is-primary' +.columns.is-centered + .column.is-one-third + h1.title.is-5.has-text-centered + | Create a new Public Account Share for: + .subtitle.is-5.has-text-centered + = link_to account.name, account_path(account) + = form_with(url: account_public_account_shares_path, method: :post) do |form| + div.buttons.is-centered + = link_to 'Back', account_shares_path(account), class: 'button is-light' + = form.submit 'Create', class: 'button is-primary' \ No newline at end of file From 048c756fb92dca31409fd9ee0c26001d1dba3e6c Mon Sep 17 00:00:00 2001 From: Andrey Bakanovsky Date: Fri, 8 Sep 2023 10:04:27 +0300 Subject: [PATCH 2/2] feat(account shares): some fixes --- app/views/public_account_shares/new.html.slim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/public_account_shares/new.html.slim b/app/views/public_account_shares/new.html.slim index 4ecea877..524f485d 100644 --- a/app/views/public_account_shares/new.html.slim +++ b/app/views/public_account_shares/new.html.slim @@ -5,6 +5,6 @@ .subtitle.is-5.has-text-centered = link_to account.name, account_path(account) = form_with(url: account_public_account_shares_path, method: :post) do |form| - div.buttons.is-centered + .buttons.is-centered = link_to 'Back', account_shares_path(account), class: 'button is-light' - = form.submit 'Create', class: 'button is-primary' \ No newline at end of file + = form.submit 'Create', class: 'button is-primary'