Skip to content

Commit 756fbe0

Browse files
committed
Allow iframe building block / shortcode so we can use the self-hosted forms
1 parent f1079d8 commit 756fbe0

File tree

5 files changed

+78
-58
lines changed

5 files changed

+78
-58
lines changed

content/english/technical-tools/documentation.md

Lines changed: 11 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
type: regular
33
title: Documentation for AI-systems
44
subtitle: >
5-
Open-source templates for model documentation. Based on
6-
AI Act requirements and soft law frameworks, such as the
7-
[Research framework Algorithms](https://www.rijksoverheid.nl/documenten/rapporten/2023/07/11/onderzoekskader-algoritmes-adr-2023#:~:text=De%20Auditdienst%20Rijk%20heeft%20een,risico's%20beheerst%20\(kunnen\)%20worden.)
8-
of the Netherlands Executive Audit Agency, the
9-
[Algorithm framework](https://minbzk.github.io/Algoritmekader/) of the Dutch Ministry of the Interior
10-
and the Dutch Fundamental Rights Impact Assessment
11-
([IAMA](https://www.rijksoverheid.nl/documenten/rapporten/2021/02/25/impact-assessment-mensenrechten-en-algoritmes)).
5+
Open-source templates for model documentation. Based on AI Act requirements
6+
and soft law frameworks, such as the [Research framework
7+
Algorithms](https://www.rijksoverheid.nl/documenten/rapporten/2023/07/11/onderzoekskader-algoritmes-adr-2023#:~:text=De%20Auditdienst%20Rijk%20heeft%20een,risico's%20beheerst%20\(kunnen\)%20worden.)
8+
of the Netherlands Executive Audit Agency, the [Algorithm
9+
framework](https://minbzk.github.io/Algoritmekader/) of the Dutch Ministry of
10+
the Interior and the Dutch Fundamental Rights Impact Assessment
11+
([IAMA](https://www.rijksoverheid.nl/documenten/rapporten/2021/02/25/impact-assessment-mensenrechten-en-algoritmes)).
1212
1313
1414
Help developing and share feedback through
@@ -18,61 +18,15 @@ image: /images/svg-illustrations/case_repository.svg
1818
overview_block:
1919
- title: Identification of AI-systems and high-risk algorithms
2020
content: >
21-
By answering maximum 8 targeted questions, you can determine whether a data-driven application qualifies as an AI-system or as an impactful algorithm. Complete the dynamic questionnaire to find out.
21+
By answering maximum 8 targeted questions, you can determine whether a
22+
data-driven application qualifies as an AI-system or as an impactful
23+
algorithm. Complete the dynamic questionnaire to find out.
2224
icon: fas fa-search
2325
id: quick-scan
2426
items:
2527
- title: Identify
2628
icon: fas fa-star
2729
link: classification-quick-scan/#form
28-
# - title: Documentatie en classificatie tool
29-
# content: >
30-
# Organisatiebreed algoritmemanagementbeleid vraagt om pragmatische kaders.
31-
# Hierbij is een risico-georienteerde aanpak vaak leidend. Dit is in lijn
32-
# met nationale en internationale wetgeving voor algoritmes, zoals de AI
33-
# Verordening. Hieronder vindt u een voorbeeld van verschillende dynamische
34-
# vragenlijsten die organisaties helpen om algoritmes en AI-systemen te
35-
# indexeren, documenteren en classificeren.
36-
# icon: far fa-file
37-
# id: organisation-wide
38-
# items:
39-
# - title: 1. Intakeformulier
40-
# icon: fa fa-plus
41-
# link: intake/#form
42-
# - title: 2. Sturing en verantwoording
43-
# icon: fas fa-user-tag
44-
# link: roles-and-responsibilities/#form
45-
# - title: 3. Privacy
46-
# icon: fa fa-eye
47-
# link: privacy/#form
48-
# - title: 4. Data en model
49-
# icon: fas fa-share-alt
50-
# link: data-and-model/#form
51-
# - title: AI Verordening
52-
# content: >
53-
# Deze dynamische vragenlijsten helpen je grip te krijgen op de AI
54-
# Verordening.
55-
# icon: fas fa-gavel
56-
# id: ai-act
57-
# items:
58-
# - title: AI-systeem classificatie
59-
# icon: fas fa-code-branch
60-
# link: AI-system-classification/#form
61-
# - title: Risicoclassificatie
62-
# icon: fas fa-mountain
63-
# link: risk-classification/#form
6430
---
6531

66-
{{< container_open icon="fas fa-wrench" title="Documentatie en classificatie tool" id="landing-container" >}}
67-
68-
Maak gebruik van dynamische vragenlijsten om algoritmes en AI-systemen te documenten en classificeren.
69-
70-
* [Identificatie van AI-systemen en hoog-risico algoritmes (max. 8 vragen)](#quick-scan)
71-
72-
{{< container_close >}}
73-
74-
{{< overview_block index="0" >}}
75-
76-
<!-- {{< overview_block index="1" >}}
77-
78-
{{< overview_block index="2" >}} -->
32+
{{< iframe src="https://ai-documentation.s3.eu-central-1.amazonaws.com/index.html" id="forms" height="700px" >}}

layouts/shortcodes/iframe.html

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{{ $_hugo_config := `{ "version": 1 }` }}
2+
3+
<div class="container-fluid mt-5 p-0">
4+
<div class="shadow mobile-desktop-container-layout-web-app rounded-lg" id='{{.Get "id" }}'>
5+
<div class="row">
6+
<div class="col-12">
7+
<div class="i-frame__container" style="margin: 0px -20px;">
8+
<iframe class="iframe" src='{{.Get "src" }}'
9+
title="">
10+
</iframe>
11+
</div>
12+
<style>
13+
.i-frame__container {
14+
background-color: #fff;
15+
width: 100%;
16+
display: flex;
17+
flex-direction: column;
18+
justify-content: center;
19+
align-items: center;
20+
}
21+
22+
.iframe {
23+
border: none;
24+
width: 100%;
25+
height: {{.Get "height" }};
26+
}
27+
</style>
28+
</div>
29+
</div>
30+
</div>
31+
</div>

tina/collections/shared/page/building_blocks.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import dynamic_form_engine from "../templates/dynamic_form_engine";
1515
import embed_pdf from "../templates/embed_pdf";
1616
import form1 from "../templates/form1";
1717
import form2 from "../templates/form2";
18+
import iframe from "../templates/iframe";
1819
import template_image from "../templates/image";
1920
import overview_block from "../templates/overview_block";
2021
import pdf_frame from "../templates/pdf_frame";
@@ -56,6 +57,7 @@ const building_blocks: TinaField[] = [
5657
form1,
5758
form2,
5859
template_image,
60+
iframe,
5961
overview_block,
6062
pdf_frame,
6163
promo_bar,
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import { RichTextTemplate } from "@tinacms/schema-tools/dist/types/index";
2+
const iframe: RichTextTemplate = {
3+
name: "iframe",
4+
label: "iFrame",
5+
match: {
6+
start: "{{<",
7+
end: ">}}",
8+
},
9+
fields: [
10+
{
11+
name: "id",
12+
label: "ID",
13+
type: "string",
14+
description: "Use top level template",
15+
required: true,
16+
},
17+
{
18+
name: "src",
19+
label: "URL",
20+
type: "string",
21+
description: "URL of the web app",
22+
required: true,
23+
},
24+
{
25+
name: "height",
26+
label: "Height",
27+
type: "string",
28+
description: "Height of the iframe (i.e. 500px)",
29+
required: true,
30+
},
31+
],
32+
};
33+
export default iframe;

tina/tina-lock.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)