-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from hotosm/feat/our-work-page
our work page
- Loading branch information
Showing
63 changed files
with
1,126 additions
and
92 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
app/core/migrations/0008_partnertype_type_description_partnertype_type_icon.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Generated by Django 4.2.7 on 2024-08-07 19:01 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import wagtail.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('wagtailimages', '0025_alter_image_file_alter_rendition_file'), | ||
('core', '0007_partnertype_partner_partner_type'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='partnertype', | ||
name='type_description', | ||
field=wagtail.fields.RichTextField(blank=True), | ||
), | ||
migrations.AddField( | ||
model_name='partnertype', | ||
name='type_icon', | ||
field=models.ForeignKey(help_text='Icon for the partner type', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.image'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from django.contrib import admin | ||
|
||
# Register your models here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from django.apps import AppConfig | ||
|
||
|
||
class OurWorkConfig(AppConfig): | ||
default_auto_field = 'django.db.models.BigAutoField' | ||
name = 'app.our_work' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# Generated by Django 4.2.7 on 2024-08-06 21:22 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import wagtail.blocks | ||
import wagtail.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
('wagtailimages', '0025_alter_image_file_alter_rendition_file'), | ||
('wagtailcore', '0089_log_entry_data_json_null_to_object'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='OurWorkPage', | ||
fields=[ | ||
('page_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='wagtailcore.page')), | ||
('programs_title', models.CharField(default='Highlighted Programs')), | ||
('programs_description', wagtail.fields.RichTextField(blank=True)), | ||
('view_all_programs_text', models.CharField(default='View all programs')), | ||
('view_all_programs_link', wagtail.fields.StreamField([('page', wagtail.blocks.PageChooserBlock()), ('url', wagtail.blocks.URLBlock())], blank=True, use_json_field=True)), | ||
('highlighted_programs', wagtail.fields.StreamField([('program', wagtail.blocks.PageChooserBlock(page_type=['programs.IndividualProgramPage']))], blank=True, null=True, use_json_field=True)), | ||
('projects_title', models.CharField(default='Projects')), | ||
('search_keyword_text', models.CharField(default='Search by keyword')), | ||
('sort_new_text', models.CharField(default='Sort by New')), | ||
('sort_old_text', models.CharField(default='Sort by Old')), | ||
('sort_titlea_text', models.CharField(default='Sort by Name Alphabetical')), | ||
('sort_titlez_text', models.CharField(default='Sort by Name Reverse Alphabetical')), | ||
('filters_text', models.CharField(default='Filters')), | ||
('view_grid_text', models.CharField(default='View Grid')), | ||
('view_map_text', models.CharField(default='View Map')), | ||
('f_impact_areas_text', models.CharField(default='Impact Areas')), | ||
('f_open_mapping_hubs_text', models.CharField(default='Open Mapping Hubs')), | ||
('f_projects_by_programme_text', models.CharField(default='Projects by Programme')), | ||
('f_projects_by_type_text', models.CharField(default='Projects by Type')), | ||
('f_project_status_text', models.CharField(default='Project Status')), | ||
('f_project_active_text', models.CharField(default='Active')), | ||
('f_project_complete_text', models.CharField(default='Complete')), | ||
('f_apply_filter_text', models.CharField(default='Apply Filter')), | ||
('f_reset_filters_text', models.CharField(default='Reset Filters')), | ||
('load_more_projects_text', models.CharField(default='Load More Projects')), | ||
('impact_area_title', models.CharField(default='See Projects by Impact Area')), | ||
('open_mapping_hub_title', models.CharField(default='See Projects by Open Mapping Hub')), | ||
('red_box_title', models.CharField(default="See all of HOT's projects")), | ||
('red_box_link_text', models.CharField(default='Explore projects')), | ||
('red_box_link', wagtail.fields.StreamField([('page', wagtail.blocks.PageChooserBlock()), ('url', wagtail.blocks.URLBlock())], blank=True, use_json_field=True)), | ||
('black_box_title', models.CharField(default='See the many ways to get involved with HOT and open mapping')), | ||
('black_box_link_text', models.CharField(default='Get involved')), | ||
('black_box_link', wagtail.fields.StreamField([('page', wagtail.blocks.PageChooserBlock()), ('url', wagtail.blocks.URLBlock())], blank=True, use_json_field=True)), | ||
('header_image', models.ForeignKey(blank=True, help_text='Header image', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.image')), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
bases=('wagtailcore.page',), | ||
), | ||
] |
21 changes: 21 additions & 0 deletions
21
app/our_work/migrations/0002_remove_ourworkpage_f_project_active_text_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Generated by Django 4.2.7 on 2024-08-12 16:09 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('our_work', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='ourworkpage', | ||
name='f_project_active_text', | ||
), | ||
migrations.RemoveField( | ||
model_name='ourworkpage', | ||
name='f_project_complete_text', | ||
), | ||
] |
38 changes: 38 additions & 0 deletions
38
app/our_work/migrations/0003_ourworkpage_no_projects_found_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Generated by Django 4.2.7 on 2024-08-12 23:35 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('our_work', '0002_remove_ourworkpage_f_project_active_text_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='ourworkpage', | ||
name='no_projects_found', | ||
field=models.CharField(default='No projects found with the applied filters.'), | ||
), | ||
migrations.AlterField( | ||
model_name='ourworkpage', | ||
name='black_box_link_text', | ||
field=models.CharField(default='Get Involved with HOT'), | ||
), | ||
migrations.AlterField( | ||
model_name='ourworkpage', | ||
name='black_box_title', | ||
field=models.CharField(default='Check many opportunities to get involved with HOT!'), | ||
), | ||
migrations.AlterField( | ||
model_name='ourworkpage', | ||
name='red_box_link_text', | ||
field=models.CharField(default='View all events'), | ||
), | ||
migrations.AlterField( | ||
model_name='ourworkpage', | ||
name='red_box_title', | ||
field=models.CharField(default='Check our upcoming events!'), | ||
), | ||
] |
Empty file.
Oops, something went wrong.