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") %>
|
||||
</div>
|
||||
|
||||
<!-- Else -->
|
||||
<!-- else -->
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
@@ -20,7 +20,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<strong>
|
||||
<%= link_to "Votación de propuestas 2016", "#" %>
|
||||
<%= link_to "Votación de propuestas 2016 (REFNUM)", "3" %>
|
||||
</strong>
|
||||
</td>
|
||||
<td>
|
||||
@@ -28,7 +28,7 @@
|
||||
<br>(<small>15/12/2016 - 15/02/2017</small>)
|
||||
</td>
|
||||
<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>
|
||||
</tr>
|
||||
<!-- 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
|
||||
form:
|
||||
submit_button: Save changes
|
||||
errors:
|
||||
form:
|
||||
errors:
|
||||
form:
|
||||
error:
|
||||
@@ -168,6 +166,19 @@ en:
|
||||
open_date: "Open date"
|
||||
close_date: "Close date"
|
||||
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:
|
||||
edit:
|
||||
destroy: Remove 'Official' status
|
||||
|
||||
@@ -166,6 +166,19 @@ es:
|
||||
open_date: "Fecha de apertura"
|
||||
close_date: "Fecha de cierre"
|
||||
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:
|
||||
edit:
|
||||
destroy: Eliminar condición de 'Cargo Público'
|
||||
|
||||
Reference in New Issue
Block a user