Fixes #180
Help text added for actions form. Fixed invialid redirection in dashboard
This commit is contained in:
@@ -21,7 +21,7 @@ class Dashboard::PollsController < Dashboard::BaseController
|
||||
|
||||
@poll = Poll.new(poll_params.merge(author: current_user, related: proposal, stats_enabled: false))
|
||||
if @poll.save
|
||||
redirect_to proposal_dashboard_poll_path(proposal, poll), notice: t("flash.actions.create.poll")
|
||||
redirect_to proposal_dashboard_polls_path(proposal), notice: t("flash.actions.create.poll")
|
||||
else
|
||||
render :new
|
||||
end
|
||||
|
||||
@@ -41,11 +41,13 @@
|
||||
<div class="small-12 medium-4 large-4 column">
|
||||
<%= f.label :day_offset %>
|
||||
<%= f.number_field :day_offset, label: false, step: 1, min: 0 %>
|
||||
<p class="help-text"><%= t('admin.proposal_dashboard_actions.form.day_offset_help_text') %></p>
|
||||
</div>
|
||||
|
||||
<div class="small-12 medium-4 large-4 column">
|
||||
<%= f.label :required_supports %>
|
||||
<%= f.number_field :required_supports, label: false, step: 1, min: 0 %>
|
||||
<p class="help-text"><%= t('admin.proposal_dashboard_actions.form.required_supports_help_text') %></p>
|
||||
</div>
|
||||
|
||||
<div class="small-12 medium-4 large-4 column">
|
||||
|
||||
@@ -1115,6 +1115,8 @@ en:
|
||||
success: Action successfully deleted
|
||||
form:
|
||||
submit_button: Save
|
||||
day_offset_help_text: Enter 0 so that this value is not taken into account.
|
||||
required_supports_help_text: Enter 0 so that this value is not taken into account.
|
||||
signature_sheets:
|
||||
author: Author
|
||||
created_at: Creation date
|
||||
|
||||
@@ -1113,6 +1113,8 @@ es:
|
||||
back: Volver a la lista
|
||||
form:
|
||||
submit_button: Guardar
|
||||
day_offset_help_text: Introduce 0 para que este valor no se tenga en cuenta.
|
||||
required_supports_help_text: Introduce 0 para que este valor no se tenga en cuenta.
|
||||
delete:
|
||||
success: Acción borrada con éxito
|
||||
signature_sheets:
|
||||
|
||||
Reference in New Issue
Block a user