Skip to content

Commit

Permalink
Version 2
Browse files Browse the repository at this point in the history
  • Loading branch information
davetaz committed Oct 1, 2024
1 parent 0615c79 commit 5bee7f2
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 34 deletions.
3 changes: 3 additions & 0 deletions private/js/edit-project.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,9 @@ function loadNavBar(data,projectId) {
dimension.activities.forEach(activity => {
const dimensionPrefix = dimension.name.toLowerCase().replace(/\s+/g, '-');
const activityId = dimensionPrefix + "-" + activity.title.toLowerCase().replace(/\s+/g, '-');
if (defaultActivity === "") {
defaultActivity = activityId;
}
const activityItem = document.createElement('li');
activityItem.classList.add('nav-activity-item'); // Add class for styling

Expand Down
13 changes: 7 additions & 6 deletions private/schemas/newProject.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"title": {
"type": "string",
"title": "Project Title",
"title": "Project title",
"minLength": 1,
"required": true
},
Expand All @@ -23,22 +23,23 @@
"organisation": {
"type": "object",
"title": "Organisation",
"required": true,
"properties": {
"title": {
"type": "string",
"title": "Organisation Title"
"title": "Organisation title"
},
"country": {
"type": "object",
"title": "Country",
"properties": {
"name": {
"type": "string",
"title": "Country Name"
"title": "Country name"
},
"code": {
"type": "string",
"title": "Country Code"
"title": "Country code"
}
}
}
Expand All @@ -57,7 +58,7 @@
},
{
"key": "title",
"title": "Project Title",
"title": "Project title",
"validationMessage": "Please enter the project title."
},
{
Expand All @@ -70,7 +71,7 @@
},
{
"key": "organisation.title",
"title": "Organisation Name"
"title": "Organisation name"
},
{
"key": "organisation.country.name"
Expand Down
4 changes: 2 additions & 2 deletions views/pages/home.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<h1>Welcome to the ODI Maturity Assessment Tool</h1>
<p> The ODI Maturity Assessment Tool helps organisations evaluate their data maturity across key domains such as open data, data ethics, and overall data practices. Our maturity models provide a clear, structured framework for assessing your current capabilities, identifying areas for improvement.</p>
<p>Using this tool, you can conduct an assessment based on our maturity models to evaluate how well your organisation manages and utilises data. After completing your assessment, you'll receive a detailed report containing actionable insights tailored to your organisation’s specific needs.</p>
<p> If you're an ODI member, the tool leverages AI to enhance your experience further. Based on your assessment responses, the AI generates human-readable summaries for each model area, along with an overall executive summary. </p>
<p> If you're an ODI member, the tool leverages Artificial Intelligence (AI) to enhance your experience further. Based on your assessment responses, the AI generates human-readable summaries for each model area, along with an overall executive summary. </p>
<p>Whether you're seeking to refine your data strategy or benchmark your organisation's progress, the ODI Maturity Assessment Tool is an invaluable resource to guide your next steps.</p>
</div>
<img src="/images/steps.png" alt="Maturity steps" style="display: none;"/>
Expand All @@ -29,7 +29,7 @@
</div>
<div class="assessment-item">
<img src="/images/data-ethics-maturity.png" alt="Data Ethics Maturity Model" class="assessment-image"/>
<h3>Data Ethics Maturity Model (Coming Soon)</h3>
<h3>Data Ethics Maturity Model</h3>
<p>
The Data Ethics Maturity Model is a tool for anyone who collects, uses and shares data. It helps assess and benchmark how widely embedded data ethics culture and practices are across your organisation.
</p>
Expand Down
13 changes: 0 additions & 13 deletions views/pages/projects/edit.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,6 @@
<form id="dataForm"></form>
</section>
</section>
<!-- Modal Structure -->
<div id="statement-modal" class="modal">
<div class="modal-content">
<span class="close">&times;</span>
<h2 id="modal-statement"></h2>
<p id="modal-context"></p>
<div class="button-group">
<button id="modal-true-button" class="true-button">True</button>
<button id="modal-false-button" class="false-button">False</button>
</div>
<textarea id="modal-notes" placeholder="Add your notes here..."></textarea>
</div>
</div>

</section>
<%- include('../../partials/footer') %>
2 changes: 1 addition & 1 deletion views/pages/projects/new.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
countries.sort((a, b) => a.name.common.localeCompare(b.name.common));
// Create the label and dropdown elements
const countryLabel = $('<label for="countryDropdown" class="form-control">Organisation Location (Country)</label>');
const countryLabel = $('<label for="countryDropdown" class="form-control">Organisation location (country)</label>');
const countryDropdown = $('<select id="countryDropdown" class="form-control"></select>');
countryDropdown.append('<option value="">Select a country</option>');
Expand Down
24 changes: 12 additions & 12 deletions views/pages/projects/view.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function renderMyProjects() {
},
{
data: 'organisation.title',
title: 'Organisation Name',
title: 'Organisation name',
width: '10%',
defaultContent: ''
},
Expand All @@ -101,16 +101,16 @@ function renderMyProjects() {
},
{
data: 'assessmentData.activityCompletionPercentage',
title: 'Activities Complete (%)',
title: 'Activities complete (%)',
width: '10%',
defaultContent: '0%',
render: function(data, type, row) {
return data ? data + '%' : '0%';
}
},
{
data: 'assessmentData.statementCompletionPercentage',
title: 'Statements Complete (%)',
data: 'assessmentData.questionCompletionPercentage',
title: 'Questions answered (%)',
width: '10%',
defaultContent: '0%',
render: function(data, type, row) {
Expand All @@ -119,7 +119,7 @@ function renderMyProjects() {
},
{
data: 'lastModified',
title: 'Last Modified',
title: 'Last modified',
width: '10%',
render: function(data, type, row) {
// Parse the date string into a Date object
Expand All @@ -135,7 +135,7 @@ function renderMyProjects() {
return '<button class="editBtn" data-id="' + row._id + '">Edit</button>' +
'<button class="shareBtn" data-id="' + row._id + '">Share</button>' +
'<button class="deleteBtn" data-id="' + row._id + '">Delete</button>' +
'<button class="reportBtn" data-id="' + row._id + '">View Report</button>'
'<button class="reportBtn" data-id="' + row._id + '">View report</button>'
}
}
],
Expand Down Expand Up @@ -269,7 +269,7 @@ function renderSharedProjects(data) {
},
{
data: 'organisation.title',
title: 'Organisation Name',
title: 'Organisation name',
width: '10%',
defaultContent: ''
},
Expand All @@ -281,16 +281,16 @@ function renderSharedProjects(data) {
},
{
data: 'assessmentData.activityCompletionPercentage',
title: 'Activities Complete (%)',
title: 'Activities complete (%)',
width: '10%',
defaultContent: '0%',
render: function(data, type, row) {
return data ? data + '%' : '0%';
}
},
{
data: 'assessmentData.statementCompletionPercentage',
title: 'Statements Complete (%)',
data: 'assessmentData.questionCompletionPercentage',
title: 'Questions answered (%)',
width: '10%',
defaultContent: '0%',
render: function(data, type, row) {
Expand All @@ -305,7 +305,7 @@ function renderSharedProjects(data) {
},
{
data: 'lastModified',
title: 'Last Modified',
title: 'Last modified',
width: '10%',
render: function(data, type, row) {
// Parse the date string into a Date object
Expand All @@ -319,7 +319,7 @@ function renderSharedProjects(data) {
width: '20%',
render: function (data, type, row) {
return '<button class="editBtn" data-id="' + row._id + '">Edit</button>' +
'<button class="reportBtn" data-id="' + row._id + '">View Report</button>'
'<button class="reportBtn" data-id="' + row._id + '">View report</button>'
}
}
],
Expand Down

0 comments on commit 5bee7f2

Please sign in to comment.