-
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 #27 from hotosm/feat/ind-member-page
created individual member page + improved existing page structure
- Loading branch information
Showing
42 changed files
with
1,184 additions
and
175 deletions.
There are no files selected for viewing
121 changes: 121 additions & 0 deletions
121
...as/migrations/0014_remove_individualimpactareapage_black_dogear_box_link_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,121 @@ | ||
# Generated by Django 4.2.7 on 2024-06-04 23:15 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('impact_areas', '0013_individualimpactareapage_external_icon_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='individualimpactareapage', | ||
name='black_dogear_box_link_text', | ||
), | ||
migrations.RemoveField( | ||
model_name='individualimpactareapage', | ||
name='black_dogear_box_link_url', | ||
), | ||
migrations.RemoveField( | ||
model_name='individualimpactareapage', | ||
name='black_dogear_box_title', | ||
), | ||
migrations.RemoveField( | ||
model_name='individualimpactareapage', | ||
name='explore_impact_areas_text', | ||
), | ||
migrations.RemoveField( | ||
model_name='individualimpactareapage', | ||
name='load_more_projects_text', | ||
), | ||
migrations.RemoveField( | ||
model_name='individualimpactareapage', | ||
name='projects_title', | ||
), | ||
migrations.RemoveField( | ||
model_name='individualimpactareapage', | ||
name='red_dogear_box_link_text', | ||
), | ||
migrations.RemoveField( | ||
model_name='individualimpactareapage', | ||
name='red_dogear_box_link_url', | ||
), | ||
migrations.RemoveField( | ||
model_name='individualimpactareapage', | ||
name='red_dogear_box_title', | ||
), | ||
migrations.RemoveField( | ||
model_name='individualimpactareapage', | ||
name='use_cases_title', | ||
), | ||
migrations.RemoveField( | ||
model_name='individualimpactareapage', | ||
name='view_all_projects_link', | ||
), | ||
migrations.RemoveField( | ||
model_name='individualimpactareapage', | ||
name='view_all_projects_text', | ||
), | ||
migrations.AddField( | ||
model_name='impactareaspage', | ||
name='black_dogear_box_link_text', | ||
field=models.CharField(default='Get Involved with HOT'), | ||
), | ||
migrations.AddField( | ||
model_name='impactareaspage', | ||
name='black_dogear_box_link_url', | ||
field=models.URLField(blank=True), | ||
), | ||
migrations.AddField( | ||
model_name='impactareaspage', | ||
name='black_dogear_box_title', | ||
field=models.CharField(default='Check many opportunities to get involved with HOT!'), | ||
), | ||
migrations.AddField( | ||
model_name='impactareaspage', | ||
name='explore_impact_areas_text', | ||
field=models.CharField(default='Explore Other Impact Areas'), | ||
), | ||
migrations.AddField( | ||
model_name='impactareaspage', | ||
name='load_more_projects_text', | ||
field=models.CharField(default='Load More Projects'), | ||
), | ||
migrations.AddField( | ||
model_name='impactareaspage', | ||
name='projects_title', | ||
field=models.CharField(default='Projects'), | ||
), | ||
migrations.AddField( | ||
model_name='impactareaspage', | ||
name='red_dogear_box_link_text', | ||
field=models.CharField(default='View Tools & Resources'), | ||
), | ||
migrations.AddField( | ||
model_name='impactareaspage', | ||
name='red_dogear_box_link_url', | ||
field=models.URLField(blank=True), | ||
), | ||
migrations.AddField( | ||
model_name='impactareaspage', | ||
name='red_dogear_box_title', | ||
field=models.CharField(default='Learn more about Tools & Resources and Data Access'), | ||
), | ||
migrations.AddField( | ||
model_name='impactareaspage', | ||
name='use_cases_title', | ||
field=models.CharField(default='Use Cases'), | ||
), | ||
migrations.AddField( | ||
model_name='impactareaspage', | ||
name='view_all_projects_link', | ||
field=models.URLField(blank=True), | ||
), | ||
migrations.AddField( | ||
model_name='impactareaspage', | ||
name='view_all_projects_text', | ||
field=models.CharField(default='View all projects'), | ||
), | ||
] |
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 MembersConfig(AppConfig): | ||
default_auto_field = 'django.db.models.BigAutoField' | ||
name = 'app.members' |
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,47 @@ | ||
# Generated by Django 4.2.7 on 2024-06-03 23:02 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import wagtail.blocks | ||
import wagtail.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
('wagtailcore', '0089_log_entry_data_json_null_to_object'), | ||
('wagtailimages', '0025_alter_image_file_alter_rendition_file'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='MemberOwnerPage', | ||
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')), | ||
('on_the_web_title', models.CharField(default='On the Web')), | ||
('posts_title', models.CharField(default='Posts')), | ||
('project_contribution_title', models.CharField(default='Project Contribution')), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
bases=('wagtailcore.page',), | ||
), | ||
migrations.CreateModel( | ||
name='IndividualMemberPage', | ||
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')), | ||
('position', models.CharField()), | ||
('location', models.CharField()), | ||
('introduction', wagtail.fields.RichTextField()), | ||
('on_the_web_links', wagtail.fields.StreamField([('blocks', wagtail.blocks.StructBlock([('link_text', wagtail.blocks.CharBlock(required=True)), ('link_url', wagtail.blocks.URLBlock(blank=True, required=False))]))], blank=True, use_json_field=True)), | ||
('image', models.ForeignKey(blank=True, help_text='An image of the member', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.image')), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
bases=('wagtailcore.page',), | ||
), | ||
] |
24 changes: 24 additions & 0 deletions
24
app/members/migrations/0002_remove_individualmemberpage_location_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,24 @@ | ||
# Generated by Django 4.2.7 on 2024-06-03 23:26 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('mapping_hubs', '0008_alter_individualmappinghubpage_dogear_boxes'), | ||
('members', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='individualmemberpage', | ||
name='location', | ||
), | ||
migrations.AddField( | ||
model_name='individualmemberpage', | ||
name='location_hub', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='mapping_hubs.individualmappinghubpage'), | ||
), | ||
] |
Empty file.
Oops, something went wrong.