Skip to content

Commit

Permalink
Adapt views to use SignUp component
Browse files Browse the repository at this point in the history
  • Loading branch information
vpereira committed Sep 15, 2021
1 parent b3a7fb6 commit 7252c0d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/api/app/views/webui/main/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
.card.mb-3
%h5.card-header New here? Sign up!
.card-body
= render partial: 'webui/shared/sign_up', locals: { submit_btn_text: 'Sign Up' }
= render SignUpComponent.new
- if @status_messages.present? || User.admin_session?
= render partial: 'status_messages', locals: { status_messages: @status_messages }
= render(partial: 'latest_updates') if @latest_updates && (::Configuration.anonymous || User.session)
4 changes: 2 additions & 2 deletions src/api/app/views/webui/users/new.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.card-body
.col-lg-6.pl-0
- if can_register?
%h3= @pagetitle.capitalize
= render partial: 'webui/shared/sign_up', locals: { submit_btn_text: @submit_btn_text.capitalize }
%h3= @pagetitle.titleize
= render SignUpComponent.new(create_page: params.key?(:submit_btn_text))
- else
%p Sorry, sign up is disabled

0 comments on commit 7252c0d

Please sign in to comment.