Adds i18n and styles to admin polls index and new

This commit is contained in:
Alberto Garcia Cabeza
2016-09-16 19:07:12 +02:00
committed by kikito
parent 00721bac12
commit 2acd1a69cd
4 changed files with 102 additions and 2 deletions

View File

@@ -1 +1,36 @@
polls index
<h2 class="inline-block"><%= t("admin.polls.index.title") %></h2>
<%= link_to t("admin.polls.index.create"), new_admin_poll_path, class: "button success float-right" %>
<!-- If polls == 0 -->
<div class="callout primary">
<%= t("admin.polls.index.no_polls") %>
</div>
<!-- Else -->
<table>
<thead>
<th><%= t("admin.polls.index.name") %></th>
<th><%= t("admin.polls.index.status") %></th>
<th>&nbsp;</th>
</thead>
<tbody>
<!-- @polls.each do |poll| -->
<tr>
<td>
<strong>
<%= link_to "Votación de propuestas 2016", "#" %>
</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"), "#", class: "button hollow" %>
</td>
</tr>
<!-- end -->
</tbody>
</table>

View File

@@ -1 +1,36 @@
poll new
<%= render 'shared/back_link' %>
<h2><%= t("admin.polls.new.title") %></h2>
<form>
<div class="row">
<div class="small-12 medium-6 column">
<label><%= t("admin.polls.new.name") %></label>
<input type="text" placeholder="<%= t('admin.polls.new.name') %>">
</div>
<div class="small-12 medium-6 column">
<label><%= t("admin.polls.new.reference") %></label>
<input type="text" placeholder="<%= t('admin.polls.new.reference') %>">
</div>
</div>
<div class="row">
<div class="small-12 medium-6 column">
<label><%= t("admin.polls.new.open_date") %></label>
<input type="date">
</div>
<div class="small-12 medium-6 column">
<label><%= t("admin.polls.new.close_date") %></label>
<input type="date">
</div>
</div>
<div class="row">
<div class="small-12 medium-4 column">
<input type="submit" value="<%= t('admin.polls.new.submit_button') %>" class="button success expanded">
</div>
</div>
</form>