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>
|
||||
|
||||
Reference in New Issue
Block a user