handle errors and fix join form

This commit is contained in:
Josh
2018-06-11 13:05:54 -04:00
parent 2b0f75e62b
commit 2b065eb7fa
23 changed files with 114 additions and 239 deletions

View 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>

View 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>

View 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>

View File

@ -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>

View File

@ -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">