tmp commit poll index, show and new

This commit is contained in:
rgarcia
2016-09-23 09:13:02 +02:00
committed by kikito
parent ebb9a5fa1d
commit 304743f64e
6 changed files with 65 additions and 18 deletions

View File

@@ -0,0 +1,16 @@
<tr id="<%= dom_id(poll) %>" class="poll">
<td>
<strong>
<%= link_to poll.name, admin_poll_path(poll) %>
</strong>ß
</td>
<td>
Próximamente <!-- Estado: Activa, Próximamente o Archivada -->
<br>(<small>15/12/2016 - 15/02/2017</small>)
</td>
<td class="text-right">
<%= link_to t("admin.actions.edit"),
edit_admin_poll_path(poll),
class: "button hollow" %>
</td>
</tr>

View File

@@ -16,21 +16,6 @@
<th>&nbsp;</th>
</thead>
<tbody>
<!-- @polls.each do |poll| -->
<tr>
<td>
<strong>
<%= link_to "Votación de propuestas 2016 (REFNUM)", "polls/3" %>
</strong>
</td>
<td>
Próximamente <!-- Estado: Activa, Próximamente o Archivada -->
<br>(<small>15/12/2016 - 15/02/2017</small>)
</td>
<td class="text-right">
<%= link_to t("admin.actions.edit"), "polls/3/edit", class: "button hollow" %>
</td>
</tr>
<!-- end -->
<%= render @polls %>
</tbody>
</table>

View File

@@ -1,8 +1,12 @@
<%= render "shared/back_link" %>
<div class="clear"></div>
<h2 class="inline-block">Votación de propuestas 2016</h2>
<h2 class="inline-block">
<%= @poll.name %>
</h2>
<%= link_to t("admin.actions.edit"), "#", class: "button hollow float-right" %>
<p>(REFNUM)</p>
<p>Próximamente <small>(15/12/2016 - 15/02/2017)</small></p>
<%= link_to t("admin.polls.show.add_booth"), "#", class: "button success" %>