Merge branch 'poll-questions' of github.com:AyuntamientoMadrid/participacion into poll-questions
This commit is contained in:
@@ -398,3 +398,18 @@ table.investment-projects-summary {
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.geozone {
|
||||||
|
background: #ececec;
|
||||||
|
border-radius: rem-calc(6);
|
||||||
|
color: $text;
|
||||||
|
display: inline-block;
|
||||||
|
font-size: $small-font-size;
|
||||||
|
margin-bottom: $line-height/3;
|
||||||
|
padding: $line-height/4 $line-height/3;
|
||||||
|
text-decoration: none;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: #e0e0e0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,42 +1,55 @@
|
|||||||
<div class="small-12 column">
|
<%= render "shared/back_link" %>
|
||||||
|
|
||||||
|
<div class="clear"></div>
|
||||||
|
|
||||||
|
<div class="row margin-top">
|
||||||
|
<div class="small-12 medium-9 column">
|
||||||
<% if @question.proposal.present? %>
|
<% if @question.proposal.present? %>
|
||||||
<div>
|
<%= t("admin.questions.show.proposal") %>
|
||||||
<%= I18n.t("admin.questions.show.proposal") %>:
|
|
||||||
<%= link_to @question.proposal.title, proposal_path(@question.proposal) %>
|
<%= link_to @question.proposal.title, proposal_path(@question.proposal) %>
|
||||||
</div>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<div>
|
<strong><%= t("admin.questions.show.title") %></strong>
|
||||||
<%= I18n.t("admin.questions.show.title") %>:
|
<h1><%= @question.title %></h1>
|
||||||
<%= @question.title %>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div>
|
<p>
|
||||||
<%= I18n.t("admin.questions.show.author") %>:
|
<strong><%= t("admin.questions.show.author") %></strong>
|
||||||
|
<br>
|
||||||
<%= link_to @question.author.name, user_path(@question.author) %>
|
<%= link_to @question.author.name, user_path(@question.author) %>
|
||||||
</div>
|
</p>
|
||||||
|
|
||||||
<div>
|
<p>
|
||||||
<%= I18n.t("admin.questions.show.valid_answers") %>:
|
<strong><%= t("admin.questions.show.valid_answers") %></strong>
|
||||||
<%= @question.valid_answers.join(", ") %>
|
</p>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div>
|
<% @question.valid_answers.each do |answer| %>
|
||||||
<%= I18n.t("admin.questions.show.summary") %>:
|
<span class="button">
|
||||||
<%= @question.summary %>
|
<%= answer %>
|
||||||
</div>
|
</span>
|
||||||
|
|
||||||
<div>
|
|
||||||
<%= I18n.t("admin.questions.show.description") %>:
|
|
||||||
<%= @question.description %>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
<%= I18n.t("admin.questions.show.geozones") %>:
|
|
||||||
<% @question.geozones.each do |geozone| %>
|
|
||||||
<div>
|
|
||||||
<%= geozone.name %>
|
|
||||||
</div>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<strong><%= t("admin.questions.show.summary") %></strong>
|
||||||
|
<br>
|
||||||
|
<%= @question.summary %>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<strong><%= t("admin.questions.show.description") %></strong>
|
||||||
|
<br>
|
||||||
|
<%= @question.description %>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<strong><%= t("admin.questions.show.geozones") %></strong>
|
||||||
|
<br>
|
||||||
|
<% @question.geozones.each do |geozone| %>
|
||||||
|
<span class="geozone">
|
||||||
|
<%= geozone.name %>
|
||||||
|
</span>
|
||||||
|
<% end %>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<%= link_to t("admin.questions.show.preview"), question_path(@question) %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -193,6 +193,7 @@ en:
|
|||||||
summary: Summary
|
summary: Summary
|
||||||
description: Description
|
description: Description
|
||||||
geozones: Geozones
|
geozones: Geozones
|
||||||
|
preview: View on website
|
||||||
booths:
|
booths:
|
||||||
index:
|
index:
|
||||||
title: "List of booths"
|
title: "List of booths"
|
||||||
|
|||||||
@@ -193,6 +193,7 @@ es:
|
|||||||
summary: Resumen
|
summary: Resumen
|
||||||
description: Descripción
|
description: Descripción
|
||||||
geozones: Distritos
|
geozones: Distritos
|
||||||
|
preview: Ver en la web
|
||||||
booths:
|
booths:
|
||||||
index:
|
index:
|
||||||
title: "Lista de urnas"
|
title: "Lista de urnas"
|
||||||
|
|||||||
Reference in New Issue
Block a user