This repository has been archived on 2021-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
greenlight/app/views/rooms/join.html.erb

16 lines
554 B
Plaintext

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