Skip to content

Commit

Permalink
#5 added Qs from technical insructions
Browse files Browse the repository at this point in the history
  • Loading branch information
katrina-cityofdetroit committed Jul 16, 2024
1 parent f801ad8 commit 82555bd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
7 changes: 1 addition & 6 deletions js/components/accordion/accordion.js
Original file line number Diff line number Diff line change
@@ -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";

Expand All @@ -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);
},
Expand Down Expand Up @@ -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,
Expand Down
9 changes: 7 additions & 2 deletions js/views/06_new_initiatives/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 82555bd

Please sign in to comment.