1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-13 16:40:48 +00:00

Added date to tournament

This commit is contained in:
2015-12-30 18:48:49 +00:00
parent 6d21e8ebdf
commit c82d6d727b
12 changed files with 48 additions and 17 deletions

View File

@@ -1,19 +1,20 @@
<h1>My Tournaments</h1>
<script>
$(document).ready(function() {
$('#tournamentList').dataTable();
pagingType: "bootstrap";
} );
// $(document).ready(function() {
// $('#tournamentList').dataTable();
// pagingType: "bootstrap";
// } );
</script>
<% if user_signed_in? %>
<%= link_to 'New Tournament', new_tournament_path, :class=>"btn btn-success" %>
<% end %>
</br>
</br>
<table class="display compact cell-border" id="tournamentList">
<table class="table table-striped table-bordered" id="tournamentList">
<thead>
<tr>
<th>Name</th>
<th>Date</th>
<th></th>
</tr>
</thead>
@@ -22,6 +23,7 @@
<% @tournaments.each do |tournament| %>
<tr>
<td><%= tournament.name %></td>
<td><%= tournament.date %></td>
<td><%= link_to 'Show', tournament, :class=>"btn btn-default" %>
<% if tournament_permissions(tournament) %>
<%= link_to 'Edit', edit_tournament_path(tournament), :class=>"btn btn-primary" %>

View File

@@ -27,6 +27,10 @@
<%= f.label :director_email %><br>
<%= f.text_field :director_email %>
</div>
<div class="field">
<%= f.label :date %><br>
<%= f.date_field :date %>
</div>
<div>
<%= f.label :tournament_type %><br>
<%= f.select :tournament_type, @tournament.tournament_types %>

View File

@@ -1,19 +1,20 @@
<h1>Pick A Tournament</h1>
<script>
$(document).ready(function() {
$('#tournamentList').dataTable();
pagingType: "bootstrap";
} );
// $(document).ready(function() {
// $('#tournamentList').dataTable();
// pagingType: "bootstrap";
// } );
</script>
<% if user_signed_in? %>
<%= link_to 'New Tournament', new_tournament_path, :class=>"btn btn-success" %>
<% end %>
</br>
</br>
<table class="display compact cell-border" id="tournamentList">
<table class="table table-striped table-bordered" id="tournamentList">
<thead>
<tr>
<th>Name</th>
<th>Date</th>
<th></th>
</tr>
</thead>
@@ -22,6 +23,7 @@
<% @tournaments.each do |tournament| %>
<tr>
<td><%= tournament.name %></td>
<td><%= tournament.date %></td>
<td><%= link_to 'Show', tournament, :class=>"btn btn-default" %>
<% if tournament_permissions(tournament) %>
<%= link_to 'Edit', edit_tournament_path(tournament), :class=>"btn btn-primary" %>