From 82555bd0b94da40a8ad6729da0f56a1825929a4d Mon Sep 17 00:00:00 2001 From: Katrina Wheelan Date: Tue, 16 Jul 2024 10:58:38 -0400 Subject: [PATCH] #5 added Qs from technical insructions --- js/components/accordion/accordion.js | 7 +------ js/views/06_new_initiatives/helpers.js | 9 +++++++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/js/components/accordion/accordion.js b/js/components/accordion/accordion.js index d3060a7..fd8a1b4 100644 --- a/js/components/accordion/accordion.js +++ b/js/components/accordion/accordion.js @@ -1,8 +1,5 @@ - -import { fetchJSON } from "../../utils/data_utils/JSON_data_handlers.js"; -import { DATA_ROOT } from "../../init.js"; import { Fund } from "../../utils/data_utils/local_storage_handlers.js"; -import { cleanString, formatCurrency } from "../../utils/common_utils.js"; +import { formatCurrency } from "../../utils/common_utils.js"; import Table from "../table/table.js"; import { FundLookupTable } from "../../utils/data_utils/budget_data_handlers.js"; @@ -13,7 +10,6 @@ const FundTable = { var table = document.createElement('table'); table.id = this.table_id(fund); table.classList.add('accordion-table'); - console.log(document.querySelector('.accordion')); var parent = document.querySelector(`#fund_${fund}_content .accordion-body`); parent.appendChild(table); }, @@ -67,7 +63,6 @@ const Item = { item_element.classList.add('accordion-item'); item_element.innerHTML = this.html(fund); parent.appendChild(item_element); - console.log(parent); FundTable.fill(fund); }, FundTable : FundTable, diff --git a/js/views/06_new_initiatives/helpers.js b/js/views/06_new_initiatives/helpers.js index ff68d29..d5b74a1 100644 --- a/js/views/06_new_initiatives/helpers.js +++ b/js/views/06_new_initiatives/helpers.js @@ -40,11 +40,16 @@ export function setUpForm() { // Set up form Form.new('modal-body'); Form.NewField.shortText('Initiative Name:', 'Initiative Name', true); - Form.NewField.longText('Explain why this initiative is necessary and describe its potential impact.', 'Explanation', true); + Form.NewField.longText(`Describe what the Initiative is and why it is needed and should be funded: + i). What is the business case for the Initiative? + ii). Why is the initiative needed? What is the value-add to residents? What is the Department’s plan for implementing the Initiative? + iii). Why can’t the Initiative be funded with the Department’s baseline budget?`, 'Explanation', true); + + Form.NewField.numericInput('What is your ballpark estimate of TOTAL ADDITONAL expenses associated with this initiative?', 'Revenue', false); - Form.NewField.numericInput('Estimate of ADDITONAL revenue associated with this initiative?', 'Revenue', false); Form.NewField.numericInput('Estimate of ADDITONAL personnel cost?', 'Personnel Cost', false); Form.NewField.numericInput('Estimate of ADDITONAL nonpersonnel cost?', 'Non-personnel Cost', false); + Form.NewField.numericInput('Estimate of ADDITONAL revenue (if applicable)?', 'Revenue', false); // TODO: implement this option // Form.NewField.numericInput(`If you cannot answer the above, please provide a ballpark estimate of