%= render 'shared/room_event' do %>
<%= form_for room_path(@room), method: :post do |f| %>
<%= f.text_field :join_name,
required: true,
class: "form-control join-form",
placeholder: "Enter your name!",
value: "#{current_user ? current_user.name : ''}",
readonly: !current_user.nil? %>
<%= f.submit "Join", class: "btn btn-primary px-7 join-form" %>
<% end %>
<% end %>