forked from External/greenlight
handle errors and fix join form
This commit is contained in:
7
app/views/errors/internal_error.html.erb
Normal file
7
app/views/errors/internal_error.html.erb
Normal file
@ -0,0 +1,7 @@
|
||||
<div class="text-center center-page">
|
||||
<h1 class="display-2 font-weight-400">Oh no!</h1>
|
||||
<h3>Looks like something went wrong on our end.</h3>
|
||||
<%= link_to root_url do %>
|
||||
<h4>Return to home page.</h4>
|
||||
<% end %>
|
||||
</div>
|
8
app/views/errors/not_found.html.erb
Normal file
8
app/views/errors/not_found.html.erb
Normal file
@ -0,0 +1,8 @@
|
||||
<div class="text-center center-page">
|
||||
<h1 class="display-2 font-weight-400">Whoops!</h1>
|
||||
<h2>Looks like we can't find that resource.</h2>
|
||||
<h3>Is it possible its been removed?</h3>
|
||||
<%= link_to root_url do %>
|
||||
<h4>Return to home page.</h4>
|
||||
<% end %>
|
||||
</div>
|
7
app/views/errors/unprocessable.html.erb
Normal file
7
app/views/errors/unprocessable.html.erb
Normal file
@ -0,0 +1,7 @@
|
||||
<div class="text-center center-page">
|
||||
<h1 class="display-2 font-weight-400">Oops!</h1>
|
||||
<h3>Request is unprocessable.</h3>
|
||||
<%= link_to root_url do %>
|
||||
<h4>Return to home page.</h4>
|
||||
<% end %>
|
||||
</div>
|
@ -1,7 +1,12 @@
|
||||
<%= render 'shared/room_event' do %>
|
||||
<%= form_for room_path, method: :post do |f| %>
|
||||
<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 : ''}" %>
|
||||
<%= f.text_field :join_name,
|
||||
required: true,
|
||||
class: "form-control main-large",
|
||||
placeholder: "Enter your name!",
|
||||
value: "#{current_user ? current_user.name : ''}",
|
||||
readonly: !current_user.nil? %>
|
||||
<span class="input-group-append">
|
||||
<%= f.submit "Join", class: "btn btn-primary px-7 main-large" %>
|
||||
</span>
|
||||
|
@ -3,6 +3,7 @@
|
||||
<p class="subtitle"><%= subtitle %></p>
|
||||
</div>
|
||||
<% if search %>
|
||||
<!--
|
||||
<div class="col-3">
|
||||
<div class="input-icon">
|
||||
<span class="input-icon-addon">
|
||||
@ -11,6 +12,7 @@
|
||||
<input type="text" class="form-control btn-pill" placeholder="Search...">
|
||||
</div>
|
||||
</div>
|
||||
-->
|
||||
<% end %>
|
||||
</div>
|
||||
<hr class="mt-0">
|
||||
|
Reference in New Issue
Block a user