Host your attachments
Upload your attachment files to your hosting location. Record the URL of each attachment file, as you will need it
later on when creating the CSV file.
You may use folders to organize files by year or type and/or establishing a simple naming convention
to avoid accidental overlaps is advisable.
Create your CSV file
This toolkit requires a CSV file having columns specified above. You can simply download the empty template Excel file, add new rows with your data,
and fill in the attachment URLs, then save it as a CSV file.
Your finished file should look like this sample CSV file.
Host your CSV file
We suggest naming the file as disclosure.csv
and hosting it in the same path as your disclosure page.
This is where the toolkit looks for CSV file by default.
If the CSV file is hosted in a different location, you will need to provide the URL of the CSV file as explained below.
Modify your disclosure page
Find where you want to embed the table, and insert the lines below.
<div id="grid"> <span class="grid-load-error">There was an error loading the interactive grid. Either one or more
components are unavailable, or you are not using a supported browser such as Chrome, Firefox, IE9 and greater, Edge or Safari.</span> </div>
<script type="text/javascript"
src="//abgov.github.io/ab-compensation-transparency-toolkit/cdn/lib/js/ab-compensation-tools.js">
</script>
Note: the URL above references the latest published version of the toolkit. If you wish to reference a specific version that will not automatically receive fixes, you may reference the
list of published versions in the
cdn folder, but be sure to reference the URL structure above and just change the filename to the version of your choosing.
If your CSV file does not have the
default name or location, insert the lines below instead to explicitly provide the URL.
<div id="grid"></div>
<script type="text/javascript">
var csv = "disclosure.csv"; // <-- (Optional) Change to URL of your CSV file.
</script>
<script type="text/javascript"
src="//abgov.github.io/ab-compensation-transparency-toolkit/cdn/lib/js/ab-compensation-tools.js">
</script>
Note that optional overrides such as for the CSV URL should be placed before the script that loads
ab-compensation-tools.js
.
Your web page should be working now.
This toolkit is designed to create the interactive grid component only, at whatever position the lines above are inserted.
You will still need to create all surrounding page contents and download links (you may link to the same CSV used in this grid).
Public Sector Body Compensation Disclosure
Public sector bodies are now required to post online the names and compensation paid to:
- all board members
- employees who earn over $125,000
This is a requirement under the Public Sector Compensation Transparency Act, which applies to:
Learn more about agencies, boards and commissions
Learn more about the Public Sector Compensation Transparency Act
If you want to include the text above, you may insert the code below to the desired location in your disclosure page.
<div id="content">
<div class="article">
<h1>Public Sector Body Compensation Disclosure</h1>
<p>Public sector bodies are now required to post online the names and compensation paid to:</p>
<ul>
<li>all board members</li>
<li>employees who earn over $125,000</li>
</ul>
<p>This is a requirement under the <i>Public Sector Compensation Transparency Act</i>, which applies to:</p>
<ul>
<li>agencies, boards and commissions governed by the
<a href="http://www.qp.alberta.ca/574.cfm?page=A31P5.cfm&leg_type=Acts&isbncln=9780779761333&display=html">
<i>Alberta Public Agencies Governance Act</i></a>
</li>
<li><a href="https://www.assembly.ab.ca/links.htm">independent offices of the Legislature</a></li>
<li>employees of Covenant Health</li>
</ul>
<p><a href="http://www.alberta.ca/agency-governance.cfm">Learn more about agencies, boards and commissions</a></p>
<p><a href="https://www.justice.alberta.ca/programs_services/law/Publications_Library_Law/PublicSectorCompTransAct.aspx">
Learn more about the <i>Public Sector Compensation Transparency Act</i></a></p>
</div>
</div>