Adds i18n and styles to admin polls index and new
This commit is contained in:
committed by
kikito
parent
00721bac12
commit
2acd1a69cd
@@ -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> </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>
|
||||
|
||||
@@ -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>
|
||||
@@ -9,6 +9,7 @@ en:
|
||||
restore: Restore
|
||||
mark_featured: Featured
|
||||
unmark_featured: Unmark featured
|
||||
edit: Edit
|
||||
banners:
|
||||
index:
|
||||
title: Banners
|
||||
@@ -153,6 +154,20 @@ en:
|
||||
email_placeholder: Search user by email
|
||||
search: Search
|
||||
user_not_found: User not found
|
||||
polls:
|
||||
index:
|
||||
title: "List of polls"
|
||||
no_polls: "There are any poll."
|
||||
create: "Create poll"
|
||||
name: "Name"
|
||||
status: "Status"
|
||||
new:
|
||||
title: "New poll"
|
||||
name: "Name"
|
||||
reference: "Reference number"
|
||||
open_date: "Open date"
|
||||
close_date: "Close date"
|
||||
submit_button: "Create poll"
|
||||
officials:
|
||||
edit:
|
||||
destroy: Remove 'Official' status
|
||||
|
||||
@@ -9,6 +9,7 @@ es:
|
||||
restore: Volver a mostrar
|
||||
mark_featured: Destacar
|
||||
unmark_featured: Quitar destacado
|
||||
edit: Editar
|
||||
banners:
|
||||
index:
|
||||
title: Banners
|
||||
@@ -151,6 +152,20 @@ es:
|
||||
email_placeholder: Buscar usuario por email
|
||||
search: Buscar
|
||||
user_not_found: Usuario no encontrado
|
||||
polls:
|
||||
index:
|
||||
title: "Listado de votaciones"
|
||||
no_polls: "No hay ninguna votación."
|
||||
create: "Crear votación"
|
||||
name: "Nombre"
|
||||
status: "Estado"
|
||||
new:
|
||||
title: "Nueva votación"
|
||||
name: "Nombre"
|
||||
reference: "Número de referencia"
|
||||
open_date: "Fecha de apertura"
|
||||
close_date: "Fecha de cierre"
|
||||
submit_button: "Crear votación"
|
||||
officials:
|
||||
edit:
|
||||
destroy: Eliminar condición de 'Cargo Público'
|
||||
|
||||
Reference in New Issue
Block a user