-
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 #32 from hotosm/feat/rfps-volunteer-opportunities
Feat/rfps volunteer opportunities
- Loading branch information
Showing
14 changed files
with
613 additions
and
21 deletions.
There are no files selected for viewing
76 changes: 76 additions & 0 deletions
76
app/rfp/migrations/0003_requestforproposalownerpage_aside_block_description_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,76 @@ | ||
# Generated by Django 4.2.7 on 2024-07-16 21:10 | ||
|
||
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'), | ||
('rfp', '0002_individualrequestforproposalpage_post_date_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='requestforproposalownerpage', | ||
name='aside_block_description', | ||
field=wagtail.fields.RichTextField(blank=True), | ||
), | ||
migrations.AddField( | ||
model_name='requestforproposalownerpage', | ||
name='aside_block_title', | ||
field=models.CharField(default='Still have questions?'), | ||
), | ||
migrations.AddField( | ||
model_name='requestforproposalownerpage', | ||
name='current_rfps_title', | ||
field=models.CharField(default='Current RFPs'), | ||
), | ||
migrations.AddField( | ||
model_name='requestforproposalownerpage', | ||
name='header_description', | ||
field=wagtail.fields.RichTextField(blank=True), | ||
), | ||
migrations.AddField( | ||
model_name='requestforproposalownerpage', | ||
name='header_image', | ||
field=models.ForeignKey(blank=True, help_text='Header image', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.image'), | ||
), | ||
migrations.AddField( | ||
model_name='requestforproposalownerpage', | ||
name='job_opportunities_button_link', | ||
field=models.URLField(blank=True), | ||
), | ||
migrations.AddField( | ||
model_name='requestforproposalownerpage', | ||
name='job_opportunities_button_text', | ||
field=models.CharField(default='See All Job Opportunities'), | ||
), | ||
migrations.AddField( | ||
model_name='requestforproposalownerpage', | ||
name='job_opportunities_description', | ||
field=wagtail.fields.RichTextField(blank=True), | ||
), | ||
migrations.AddField( | ||
model_name='requestforproposalownerpage', | ||
name='job_opportunities_image', | ||
field=models.ForeignKey(blank=True, help_text='Job opportunities image', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.image'), | ||
), | ||
migrations.AddField( | ||
model_name='requestforproposalownerpage', | ||
name='job_opportunities_title', | ||
field=models.CharField(default='See Our Job Opportunities'), | ||
), | ||
migrations.AddField( | ||
model_name='requestforproposalownerpage', | ||
name='rfp_deadline_text', | ||
field=models.CharField(default='Deadline'), | ||
), | ||
migrations.AddField( | ||
model_name='requestforproposalownerpage', | ||
name='rfp_location_text', | ||
field=models.CharField(default='Location'), | ||
), | ||
] |
24 changes: 24 additions & 0 deletions
24
app/rfp/migrations/0004_requestforproposalownerpage_no_rfps_description_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-07-16 21:15 | ||
|
||
from django.db import migrations, models | ||
import wagtail.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('rfp', '0003_requestforproposalownerpage_aside_block_description_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='requestforproposalownerpage', | ||
name='no_rfps_description', | ||
field=wagtail.fields.RichTextField(blank=True), | ||
), | ||
migrations.AddField( | ||
model_name='requestforproposalownerpage', | ||
name='no_rfps_title', | ||
field=models.CharField(default='There are no current RFPs.'), | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
app/rfp/migrations/0005_individualrequestforproposalpage_is_active.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,18 @@ | ||
# Generated by Django 4.2.7 on 2024-07-17 17:26 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('rfp', '0004_requestforproposalownerpage_no_rfps_description_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='individualrequestforproposalpage', | ||
name='is_active', | ||
field=models.BooleanField(default=True), | ||
), | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<div class="bg-hot-off-white p-6"> | ||
<h1 class="text-h3 font-bold"> | ||
{{page.aside_block_title}} | ||
</h1> | ||
<div class="base-article-m my-4 [&_a]:font-bold"> | ||
{{page.aside_block_description|safe}} | ||
</div> | ||
</div> |
68 changes: 68 additions & 0 deletions
68
app/rfp/templates/rfp/request_for_proposal_owner_page.html
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,68 @@ | ||
{% extends "base.html" %} | ||
{% load static %} | ||
{% load wagtailcore_tags %} | ||
{% load wagtailimages_tags %} | ||
{% load compress %} | ||
{% block body_class %}template-volunteeropportunityownerpage{% endblock %} | ||
{% block extra_css %} | ||
{% compress css %} | ||
{% endcompress css %} | ||
{% endblock extra_css %} | ||
|
||
{% block content %} | ||
{% include "ui/components/PageHeaderWithBlur.html" with title=page.title subtitle=page.header_description image=page.header_image %} | ||
|
||
<div class="max-w-7xl mx-auto my-10"> | ||
<div class="px-6 md:px-10"> | ||
<div class="lg:grid lg:grid-cols-3 gap-8"> | ||
<div class="lg:col-span-2"> | ||
{% include "ui/components/TitleWithUnderline.html" with title=page.current_rfps_title %} | ||
<div class="grid gap-8 mt-8"> | ||
{% for rfp in rfps %} | ||
<div class="bg-hot-off-white w-full p-6"> | ||
<div class="flex-grow"> | ||
<a href="{{rfp.url}}"> | ||
<h1 class="text-h3 font-bold"> | ||
{{rfp.title}} | ||
</h1> | ||
</a> | ||
<p class="mt-4"> | ||
<b>{{page.rfp_location_text}}: </b> | ||
{{rfp.work_location}} | ||
</p> | ||
<p class="mt-2"> | ||
<b>{{page.rfp_deadline_text}}: </b> | ||
{{rfp.application_close_date}} | ||
</p> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
{% if not rfps %} | ||
<div class="bg-hot-off-white p-6"> | ||
<h1 class="text-h3 font-bold"> | ||
{{page.no_rfps_title}} | ||
</h1> | ||
<div class="base-article-m [&_a]:font-bold mt-4"> | ||
{{page.no_rfps_description|safe}} | ||
</div> | ||
</div> | ||
{% endif %} | ||
</div> | ||
</div> | ||
<div class="hidden lg:block"> | ||
{% include "./components/AsideBlockContents.html" %} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="mt-20"> | ||
{% include "ui/components/sections/NavyBackgroundWithImage.html" with image=page.job_opportunities_image title=page.job_opportunities_title description=page.job_opportunities_description button_text=page.job_opportunities_button_text button_link=page.job_opportunities_button_link %} | ||
</div> | ||
|
||
<div class="max-w-7xl mx-auto bg-hot-off-white lg:hidden"> | ||
<div class="px-6 md:px-10"> | ||
{% include "./components/AsideBlockContents.html" %} | ||
</div> | ||
</div> | ||
{% endblock %} |
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
Oops, something went wrong.