Skip to content
Merged

Dev #3458

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions app/Nova/TrainingResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,15 @@ public function fields(Request $request): array
->nullable()
->help('Optional YouTube URL. Supports youtu.be, watch, embed, shorts.'),

Text::make('Video script URL', 'video_script_url')
->nullable()
->rules('nullable', 'url')
->help('Optional link shown under the video, e.g. DOCX/PDF script.'),

Text::make('Video script link text', 'video_script_text')
->nullable()
->help('Optional. Defaults to "Download the video script".'),

Text::make('Body image', 'body_image')
->nullable()
->help('Optional image path/URL (supports Amazon S3/CloudFront).'),
Expand All @@ -87,6 +96,18 @@ public function fields(Request $request): array
->nullable()
->help('Main training content area'),

Trix::make('PDF links section', 'pdf_links_section')
->nullable()
->help('Optional area for numbered downloadable resources (e.g. 1-6 links).'),

Trix::make('Contacts section', 'contacts_section')
->nullable()
->help('Optional contacts/extra info block.'),

Trix::make('Register box section', 'register_box_section')
->nullable()
->help('Optional text shown in a highlighted callout box (register on map, hashtags, etc).'),

Text::make('Button text', 'button_text')->nullable(),

Text::make('Button URL', 'button_url')
Expand Down
5 changes: 5 additions & 0 deletions app/TrainingResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,14 @@ class TrainingResource extends Model
'intro',
'highlight_box',
'video_url',
'video_script_url',
'video_script_text',
'body_image',
'body_image_alt',
'content',
'pdf_links_section',
'contacts_section',
'register_box_section',
'button_text',
'button_url',
'secondary_button_text',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('training_resources', function (Blueprint $table) {
$table->longText('pdf_links_section')->nullable()->after('content');
$table->longText('contacts_section')->nullable()->after('pdf_links_section');
$table->longText('register_box_section')->nullable()->after('contacts_section');
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('training_resources', function (Blueprint $table) {
$table->dropColumn([
'pdf_links_section',
'contacts_section',
'register_box_section',
]);
});
}
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('training_resources', function (Blueprint $table) {
$table->string('video_script_url')->nullable()->after('video_url');
$table->string('video_script_text')->nullable()->after('video_script_url');
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('training_resources', function (Blueprint $table) {
$table->dropColumn([
'video_script_url',
'video_script_text',
]);
});
}
};
80 changes: 80 additions & 0 deletions database/seeders/TrainingResourceVetToolkitSeeder.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<?php

namespace Database\Seeders;

use App\TrainingResource;
use Illuminate\Database\Seeder;

class TrainingResourceVetToolkitSeeder extends Seeder
{
/**
* Seed a ready-to-edit VET Toolkit training resource.
*/
public function run(): void
{
TrainingResource::updateOrCreate(
['slug' => 'eu-code-week-4-vet'],
[
'card_title' => 'EU CODE WEEK 4 VET',
'card_author' => 'Scientific author: Flavio Renga & Marta Risoli',
'card_image' => '/images/vet-toolkit-images.png',
'page_title' => 'EU CODE WEEK 4 VET',
'hero_author' => 'VET TOOLKIT',
'highlight_box' => <<<HTML
<p><strong>Scientific author:</strong> Flavio Renga &amp; Marta Risoli - EdTech researchers at Fondazione LINKS, EU Code Week Italian HUB.</p>
<p><strong>Instructional design, project management, internationalisation:</strong> Veronica Ruberti &amp; Lucia Terrone - Fondazione LINKS, EU Code Week Italian HUB Coordinator</p>
HTML,
'intro' => <<<HTML
<p>In today's rapidly evolving technological landscape, it is crucial to equip Vocational Education and Training (VET) students both with technical competencies-such as coding, 3D modelling, and the Internet of Things (IoT)-and with essential social skills, including collaboration, problem-solving, and creativity. These skills are not just valuable for those pursuing a career in the tech industry but can open doors to a wide range of opportunities across various fields.</p>
<p>To support this vision, the VET Toolkit was created as part of the EU initiative Code Week to support educators to facilitate activities for students between 13 and 18 years of age.</p>
<p>The toolkit is based on the Creative Learning approach and the TinkerCad tool to help students develop digital skills, acquire social and emotional competencies, and stay motivated to pursue careers in the digital field.</p>
<p>The Creative Learning approach is based on the 4 Ps - Projects, Passion, Peers, and Play -, and it offers a flexible framework that shifts the focus from direct instruction to personalized, hands-on exploration. The approach also promotes inclusive learning environments, where teachers act as facilitators and peer students collaborate in flexible spaces that encourage experimentation and reduce the fear of mistakes.</p>
HTML,
'body_image' => '/images/vet-toolkit-images.png',
'body_image_alt' => 'EU Code Week 4 VET learning approach',
'content' => <<<HTML
<h2>Who is the VET Toolkit for?</h2>
<p>The VET toolkit is aimed at VET teachers and educators who wants to:</p>
<ul>
<li>Design and facilitate meaningful project-based learning experiences;</li>
<li>Ensure that all students, including girls and those at risk of being left behind, are included and engaged in the learning process;</li>
<li>Foster essential social skills, including collaboration and problem-solving;</li>
<li>Foster creativity and encourage the use of technology as a "construction material" for creative expression and problem-solving;</li>
<li>Create a growing community of VET Schools and educators actively involved in EU Code Week.</li>
</ul>
<h2>How does the VET toolkit work?</h2>
<p>In this page you will discover the Learning Creative approach through an asynchronous training path in small, sequential, easy-to-follow steps, using accessible language. Every step is a downloadable PDF, easy to print and use in class. It contains theoretical background, lesson outlines, activity descriptions, facilitation prompts, and guidelines for teachers.</p>
<p>The objective is to guide you from learning the Creative Learning approach to applying it in the classroom, supported by lesson plans and scaffolding materials.</p>
<p><strong>Let's start!</strong></p>
HTML,
'pdf_links_section' => <<<HTML
<h2>PDF titles</h2>
<ul>
<li>1 - DISCOVER THE CREATIVE LEARNING APPROACH</li>
<li>2 - CREATE THE LEARNING SPACE</li>
<li>3 - EXPERIMENT WITH THE TOOL</li>
<li>4 - FACILITATE THE ACTIVITY</li>
<li>5 - SHARE YOUR EXPERIENCE</li>
<li>6 - KEEP ON LEARNING</li>
</ul>
HTML,
'button_text' => 'DOWNLOAD THE COMPLETE KIT',
'button_url' => null,
'contacts_section' => <<<HTML
<h2>Contacts</h2>
<p>For information, curiosities, and insights contact: <a href="mailto:codeweek@linksfoundation.com">codeweek@linksfoundation.com</a></p>
HTML,
'secondary_button_text' => 'Register activity',
'secondary_button_url' => 'https://codeweek.eu/add?skip=1',
'register_box_section' => <<<HTML
<p>Every time you run an activity in class, during a school event, a team building, or a training course, register it on the map of the European Code Week with the hashtag <strong>#DreamJobsinDigital</strong>. Every organizer will receive a participation certificate for their commitment and will contribute to a campaign raising awareness of digital skills and careers.</p>
<p>If you want to get in touch with an international group of enthusiastic teachers, sign up for the <a href="https://www.facebook.com/groups/774720866253044/?source_id=377506999042215" target="_blank" rel="noopener noreferrer">EU Code Week teachers' Facebook group</a>! To take a further step and collaborate with other schools in your country or across borders, join the <a href="https://codeweek.eu/codeweek4all" target="_blank" rel="noopener noreferrer">Code Week 4 All challenge</a>.</p>
HTML,
'meta_title' => 'EU Code Week 4 VET - Training Toolkit',
'meta_description' => 'A practical toolkit for VET teachers to run inclusive, creative, project-based digital activities with students aged 13-18.',
'position' => 0,
'active' => true,
]
);
}
}
112 changes: 112 additions & 0 deletions docs/training-resource-vet-toolkit-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
# Training Resource Nova Template (VET Toolkit)

Use this as a copy/paste blueprint when creating a new `Training Resource` in Nova.

## Core

- **Slug**: `eu-code-week-4-vet`
- **Card title**: `EU CODE WEEK 4 VET`
- **Card author**: `Scientific author: Flavio Renga & Marta Risoli`
- **Card image**: `https://...` (S3/CloudFront URL) or `/img/learning/...`
- **Page title**: `EU CODE WEEK 4 VET`
- **Hero author**: `VET TOOLKIT`

## Intro (Trix)

Paste:

```html
<p>In today's rapidly evolving technological landscape, it is crucial to equip Vocational Education and Training (VET) students both with technical competencies—such as coding, 3D modelling, and the Internet of Things (IoT)—and with essential social skills, including collaboration, problem-solving, and creativity. These skills are not just valuable for those pursuing a career in the tech industry but can open doors to a wide range of opportunities across various fields.</p>
<p>To support this vision, the VET Toolkit was created as part of the EU initiative Code Week to support educators to facilitate activities for students between 13 and 18 years of age.</p>
<p>The toolkit is based on the Creative Learning approach and the TinkerCad tool to help students develop digital skills, acquire social and emotional competencies, and stay motivated to pursue careers in the digital field.</p>
<p>The Creative Learning approach is based on the 4 Ps — Projects, Passion, Peers, and Play — and it offers a flexible framework that shifts the focus from direct instruction to personalized, hands-on exploration.</p>
```

## Highlight box (Trix)

Paste:

```html
<p><strong>Scientific author:</strong> Flavio Renga &amp; Marta Risoli - EdTech researchers at Fondazione LINKS, EU Code Week Italian HUB.</p>
<p><strong>Instructional design, project management, internationalisation:</strong> Veronica Ruberti &amp; Lucia Terrone - Fondazione LINKS, EU Code Week Italian HUB Coordinator.</p>
```

## Video URL

- Add YouTube URL (optional), e.g. `https://www.youtube.com/watch?v=XXXXXXXXXXX`

## Body image

- Add body image URL/path (optional), e.g. `https://your-bucket.s3.eu-west-1.amazonaws.com/training/vet-toolkit-cover.png`
- **Body image alt text**: `EU Code Week 4 VET toolkit image`

## Content (Trix)

Paste:

```html
<h2>Who is the VET Toolkit for?</h2>
<p>The VET toolkit is aimed at VET teachers and educators who want to:</p>
<ul>
<li>Design and facilitate meaningful project-based learning experiences;</li>
<li>Ensure that all students, including girls and those at risk of being left behind, are included and engaged;</li>
<li>Foster essential social skills, including collaboration and problem-solving;</li>
<li>Foster creativity and encourage the use of technology as a construction material;</li>
<li>Create a growing community of VET schools and educators actively involved in EU Code Week.</li>
</ul>
<h2>How does the VET toolkit work?</h2>
<p>In this page you will discover the Creative Learning approach through an asynchronous training path in small, sequential, easy-to-follow steps, using accessible language.</p>
<p>The objective is to guide you from learning the Creative Learning approach to applying it in the classroom, supported by lesson plans and scaffolding materials.</p>
<p><strong>Let's start!</strong></p>
```

## PDF links section (Trix)

Paste:

```html
<h2>PDF titles</h2>
<ol>
<li><a href="https://..." target="_blank" rel="noopener noreferrer">DISCOVER THE CREATIVE LEARNING APPROACH</a></li>
<li><a href="https://..." target="_blank" rel="noopener noreferrer">CREATE THE LEARNING SPACE</a></li>
<li><a href="https://..." target="_blank" rel="noopener noreferrer">EXPERIMENT WITH THE TOOL</a></li>
<li><a href="https://..." target="_blank" rel="noopener noreferrer">FACILITATE THE ACTIVITY</a></li>
<li><a href="https://..." target="_blank" rel="noopener noreferrer">SHARE YOUR EXPERIENCE</a></li>
<li><a href="https://..." target="_blank" rel="noopener noreferrer">KEEP ON LEARNING</a></li>
</ol>
```

## Buttons

- **Button text**: `DOWNLOAD THE COMPLETE KIT`
- **Button URL**: `https://...` (full kit link)
- **Secondary button text**: `Register activity`
- **Secondary button URL**: `https://codeweek.eu/add?skip=1`

## Contacts section (Trix)

Paste:

```html
<h2>Contacts</h2>
<p>For information, curiosities, and insights contact: <a href="mailto:codeweek@linksfoundation.com">codeweek@linksfoundation.com</a></p>
```

## Register box section (Trix)

Paste:

```html
<p>Every time you run an activity in class, during a school event, a team building, or a training course, register it on the map of the European Code Week with the hashtag <strong>#DreamJobsinDigital</strong>. Every organizer will receive a participation certificate for their commitment and will contribute to a campaign raising awareness of digital skills and careers.</p>
<p>If you want to get in touch with an international group of enthusiastic teachers, sign up for the EU Code Week teachers' Facebook group. To take a further step and collaborate with other schools in your country or across borders, join the Code Week 4 All challenge.</p>
```

## SEO (optional)

- **Meta title**: `EU Code Week 4 VET – Training Toolkit`
- **Meta description**: `A practical toolkit for VET teachers to run inclusive, creative, project-based digital activities with students aged 13-18.`

## Publish controls

- **Position**: lower number = appears earlier on `/training`
- **Active**: enabled
Binary file added public/images/vet-toolkit-images.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading