Reload form with same data
This commit is contained in:
parent
ecbf830e81
commit
d5e7f6c4b3
1 changed files with 2 additions and 2 deletions
|
|
@ -11,11 +11,11 @@
|
||||||
<form action="/votes/new" method="post">
|
<form action="/votes/new" method="post">
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="title" class="form-label"><%= _("Title") %></label>
|
<label for="title" class="form-label"><%= _("Title") %></label>
|
||||||
<input type="text" name="title" class="form-control">
|
<input type="text" name="title" value="<%= params[:title] %>" class="form-control">
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="description" class="form-label"><%= _("Description") %></label>
|
<label for="description" class="form-label"><%= _("Description") %></label>
|
||||||
<textarea type="text" name="description" class="form-control"></textarea>
|
<textarea type="text" name="description" class="form-control"><%= params[:description] %></textarea>
|
||||||
</div>
|
</div>
|
||||||
<button type="submit" class="btn btn-primary"><%= _("Create new vote") %></button>
|
<button type="submit" class="btn btn-primary"><%= _("Create new vote") %></button>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue