fix: Update admin templates with player names and edit links
This commit is contained in:
@@ -1 +1,19 @@
|
||||
<h1>EuchreCamp::Views::Admin::Players::New</h1>
|
||||
<h1>Add New Player</h1>
|
||||
|
||||
<form action="/admin/players" method="POST" class="player-form">
|
||||
<div class="form-group">
|
||||
<label for="player_name">Player Name</label>
|
||||
<input type="text" id="player_name" name="player[name]" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="player_rating">Initial Rating</label>
|
||||
<input type="number" id="player_rating" name="player[rating]" value="1000" min="0" max="3000">
|
||||
<small>Default rating is 1000</small>
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<button type="submit" class="btn btn-primary">Create Player</button>
|
||||
<a href="/admin/players" class="btn">Cancel</a>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user