Conversation
c165596 to
4249e8a
Compare
|
@decidim/core this has been approved by @decidim/product, can you review it please? 😄 |
|
Hi @mrcasals , Can you add the corresponding errors to each mandatory field please? Also the "Accepted" radio button looses its value. It would be great to keep it set between requests. |
|
@tramuntanal I fixed it in the last commit, the problem was that if there was any error, then the controller was redirecting, thus losing the form errors. Here's a screen capture of the code behaving correctly: I've pushed it to staging again for you to check, just in case. |
|
Can you merge master in order to re-execute all tests please? |
cc8cd32 to
2c51087
Compare
* Estimated costs in proposal view * Description tag updated * Lited CSS * Add migration with new fields * Add step attribute * Update Gemfile.lock * Use defaults instead of overwriting all values * Add fields to proposal answer form * Update answers with costs * Show costs in proposal page * Add changelog * Rubocop fixes * Add text toggle on cost report * Render action on error Co-authored-by: Javier Usobiaga <javier@swwweet.com>

🎩 What? Why?
This PR adds some fields to proposal answers. These new fields are only required if the proposal is accepted.
📌 Related Issues
📋 Subtasks
CHANGELOGentrynull: falserestriction from DB📷 Screenshots (optional)
New fields in the proposal page in admin:

Costs in the public page:

When cost report is long, a toggle appears by default:

You can expand the toggle to read the full report:
