join page tweaks

This commit is contained in:
Josh
2018-06-08 16:59:09 -04:00
parent 4f70c9a8e5
commit 2b0f75e62b
2 changed files with 8 additions and 21 deletions

View File

@ -1,14 +1,10 @@
<%= render 'shared/room_event' do %>
<%= form_for room_path, method: :post do |f| %>
<div class="input-group" style="height: 60px;">
<% if current_user %>
<%= f.submit "Join", class: "btn btn-primary px-7 main-large join-button"%>
<% else %>
<%= f.text_field :join_name, class: "form-control main-large", placeholder: "Enter your name!" %>
<span class="input-group-append">
<%= f.submit "Join", class: "btn btn-primary px-7 main-large" %>
</span>
<% end %>
<div class="input-group" style="height: 48px;">
<%= f.text_field :join_name, class: "form-control main-large", placeholder: "Enter your name!", value: "#{current_user ? current_user.name : ''}" %>
<span class="input-group-append">
<%= f.submit "Join", class: "btn btn-primary px-7 main-large" %>
</span>
</div>
<% end %>
<% end %>