Render descriptions as Markdown
This commit is contained in:
parent
4593bf2b2a
commit
fa1a58bea2
10 changed files with 41 additions and 12 deletions
|
|
@ -7,7 +7,7 @@
|
|||
</p>
|
||||
<p>
|
||||
<label for="description"><%= _("Description") %></label>
|
||||
<input type="text" name="description" value="<%= @vote.description %>">
|
||||
<textarea type="text" name="description"><%= @vote.description %></textarea>
|
||||
</p>
|
||||
<button type="submit"><%= _("Save") %></button>
|
||||
</form>
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
<% @vote.candidates.each do |candidate| %>
|
||||
<h3><%= candidate.name %></h3>
|
||||
<p><%= candidate.description %></p>
|
||||
<%= markdown(candidate.description) %>
|
||||
<form action="/votes/<%= @vote.secure_id %>/candidates/<%= candidate.id %>/delete" method="post">
|
||||
<button type="submit"><%= _("Delete") %></button>
|
||||
</form>
|
||||
|
|
@ -31,7 +31,7 @@
|
|||
</p>
|
||||
<p>
|
||||
<label for="description"><%= _("Description") %></label>
|
||||
<input type="text" name="description">
|
||||
<textarea type="text" name="description"></textarea>
|
||||
</p>
|
||||
<button type="submit"><%= _("Add candidate") %></button>
|
||||
</form>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue