1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-08 07:22:38 +00:00

Added tournament search

This commit is contained in:
2016-01-04 19:20:05 +00:00
parent 7a14e5f74a
commit c012682e77
4 changed files with 16 additions and 4 deletions

View File

@@ -8,8 +8,8 @@
<li><%= link_to "About", "/static_pages/about" %></li>
<% if user_signed_in? %>
<li><%=link_to "Log out", destroy_user_session_url ,:method => 'delete' %></li>
<li><%=link_to "Edit user", edit_user_registration_path %></li>
<li><%=link_to "My tournaments","/static_pages/my_tournaments" %></li>
<li><%=link_to "Edit user", edit_user_registration_path %></li>
<li><%=link_to "My tournaments","/static_pages/my_tournaments" %></li>
<% else %>
<li><%= link_to "Log In" , new_user_session_path %></li>
<% end %>

View File

@@ -1,4 +1,8 @@
<h1>Pick A Tournament</h1>
<h1>Upcoming Tournaments</h1> <%= form_tag(tournaments_path, :method => "get", id: "search-form") do %>
<%= text_field_tag :search, params[:search], placeholder: "Search Tournaments" %>
<%= submit_tag "Search" %>
<% end %>
<p>Search by name or date YYYY-MM-DD</p>
<script>
// $(document).ready(function() {
// $('#tournamentList').dataTable();