Resource cards show the request status:

* Green solved by administrator.
* Blue + button: Available
* Blue + help text: Requested
* Red: Locked

A tooltip has been added to the card to improve its readability.
This commit is contained in:
Juan Salvador Pérez García
2018-07-16 11:09:07 +02:00
parent 3ca90634d3
commit 7a9faef775
9 changed files with 73 additions and 20 deletions

View File

@@ -37,8 +37,9 @@ class ProposalsDashboardController < Dashboard::BaseController
if @proposal_executed_dashboard_action.save
AdministratorTask.create(source: @proposal_executed_dashboard_action)
redirect_to proposal_dashboard_index_path(proposal.to_param), { flash: { info: t('.success') } }
redirect_to progress_proposal_dashboard_index_path(proposal.to_param), { flash: { info: t('.success') } }
else
flash.now[:alert] = @proposal_executed_dashboard_action.errors.full_messages.join('<br>')
render :new_request
end
end