Adds content to edit and show views
This commit is contained in:
committed by
kikito
parent
2acd1a69cd
commit
7b24e73999
@@ -1 +1,36 @@
|
|||||||
poll edit
|
<%= render 'shared/back_link' %>
|
||||||
|
|
||||||
|
<h2><%= t("admin.polls.edit.title") %></h2>
|
||||||
|
|
||||||
|
<form>
|
||||||
|
<div class="row">
|
||||||
|
<div class="small-12 medium-6 column">
|
||||||
|
<label><%= t("admin.polls.edit.name") %></label>
|
||||||
|
<input type="text" placeholder="<%= t('admin.polls.edit.name') %>">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="small-12 medium-6 column">
|
||||||
|
<label><%= t("admin.polls.edit.reference") %></label>
|
||||||
|
<input type="text" placeholder="<%= t('admin.polls.edit.reference') %>">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="small-12 medium-6 column">
|
||||||
|
<label><%= t("admin.polls.edit.open_date") %></label>
|
||||||
|
<input type="date">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="small-12 medium-6 column">
|
||||||
|
<label><%= t("admin.polls.edit.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.edit.submit_button') %>" class="button success expanded">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</form>
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
<%= t("admin.polls.index.no_polls") %>
|
<%= t("admin.polls.index.no_polls") %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Else -->
|
<!-- else -->
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<strong>
|
<strong>
|
||||||
<%= link_to "Votación de propuestas 2016", "#" %>
|
<%= link_to "Votación de propuestas 2016 (REFNUM)", "3" %>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
<br>(<small>15/12/2016 - 15/02/2017</small>)
|
<br>(<small>15/12/2016 - 15/02/2017</small>)
|
||||||
</td>
|
</td>
|
||||||
<td class="text-right">
|
<td class="text-right">
|
||||||
<%= link_to t("admin.actions.edit"), "#", class: "button hollow" %>
|
<%= link_to t("admin.actions.edit"), "3/edit", class: "button hollow" %>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<!-- end -->
|
<!-- end -->
|
||||||
|
|||||||
@@ -1 +1,41 @@
|
|||||||
poll show
|
<%= render "shared/back_link" %>
|
||||||
|
<div class="clear"></div>
|
||||||
|
|
||||||
|
<h2 class="inline-block">Votación de propuestas 2016</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" %>
|
||||||
|
|
||||||
|
<!-- If booth in this poll == 0 -->
|
||||||
|
<div class="callout primary">
|
||||||
|
<%= t("admin.polls.show.no_booths") %>
|
||||||
|
</div>
|
||||||
|
<!-- else -->
|
||||||
|
|
||||||
|
<h2><%= t("admin.polls.show.booths_title") %></h2>
|
||||||
|
|
||||||
|
<table>
|
||||||
|
<thead>
|
||||||
|
<th><%= t("admin.polls.show.name") %></th>
|
||||||
|
<th><%= t("admin.polls.show.location") %></th>
|
||||||
|
<th> </th>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<!-- @booths.each do |booth| -->
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<strong>
|
||||||
|
<%= link_to "Urna Moncloa (REFNUM)", "#" %>
|
||||||
|
</strong>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
C/ Isaac Peral, 25. 28003, Madrid
|
||||||
|
</td>
|
||||||
|
<td class="text-right">
|
||||||
|
<%= link_to t("admin.actions.edit"), "#", class: "button hollow" %>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<!-- end -->
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|||||||
@@ -33,8 +33,6 @@ en:
|
|||||||
editing: Edit banner
|
editing: Edit banner
|
||||||
form:
|
form:
|
||||||
submit_button: Save changes
|
submit_button: Save changes
|
||||||
errors:
|
|
||||||
form:
|
|
||||||
errors:
|
errors:
|
||||||
form:
|
form:
|
||||||
error:
|
error:
|
||||||
@@ -168,6 +166,19 @@ en:
|
|||||||
open_date: "Open date"
|
open_date: "Open date"
|
||||||
close_date: "Close date"
|
close_date: "Close date"
|
||||||
submit_button: "Create poll"
|
submit_button: "Create poll"
|
||||||
|
edit:
|
||||||
|
title: "Edit poll"
|
||||||
|
name: "Name"
|
||||||
|
reference: "Reference number"
|
||||||
|
open_date: "Open date"
|
||||||
|
close_date: "Close date"
|
||||||
|
submit_button: "Update poll"
|
||||||
|
show:
|
||||||
|
no_booths: "There is no booths in this poll."
|
||||||
|
add_booth: "Add booth"
|
||||||
|
booths_title: "List of booths"
|
||||||
|
name: "Name"
|
||||||
|
location: "Location"
|
||||||
officials:
|
officials:
|
||||||
edit:
|
edit:
|
||||||
destroy: Remove 'Official' status
|
destroy: Remove 'Official' status
|
||||||
|
|||||||
@@ -166,6 +166,19 @@ es:
|
|||||||
open_date: "Fecha de apertura"
|
open_date: "Fecha de apertura"
|
||||||
close_date: "Fecha de cierre"
|
close_date: "Fecha de cierre"
|
||||||
submit_button: "Crear votación"
|
submit_button: "Crear votación"
|
||||||
|
edit:
|
||||||
|
title: "Editar votación"
|
||||||
|
name: "Nombre"
|
||||||
|
reference: "Número de referencia"
|
||||||
|
open_date: "Fecha de apertura"
|
||||||
|
close_date: "Fecha de cierre"
|
||||||
|
submit_button: "Actualizar votación"
|
||||||
|
show:
|
||||||
|
no_booths: "No hay urnas en esta votación."
|
||||||
|
add_booth: "Añadir urna"
|
||||||
|
booths_title: "Listado de urnas"
|
||||||
|
name: "Nombre"
|
||||||
|
location: "Ubicación"
|
||||||
officials:
|
officials:
|
||||||
edit:
|
edit:
|
||||||
destroy: Eliminar condición de 'Cargo Público'
|
destroy: Eliminar condición de 'Cargo Público'
|
||||||
|
|||||||
Reference in New Issue
Block a user