-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b5be418
commit 63a2f05
Showing
9 changed files
with
168 additions
and
3 deletions.
There are no files selected for viewing
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
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,33 @@ | ||
# Generated by Django 5.1.4 on 2025-02-23 18:08 | ||
|
||
import django.db.models.deletion | ||
import django.utils.timezone | ||
import model_utils.fields | ||
from django.conf import settings | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('submissions', '0027_submissionconfirmpendingstatusproxy'), | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='ProposalCoSpeaker', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')), | ||
('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')), | ||
('order', models.PositiveIntegerField(db_index=True, editable=False, verbose_name='order')), | ||
('status', models.CharField(choices=[('pending', 'Pending'), ('accepted', 'Accepted'), ('rejected', 'Rejected')], default='pending', max_length=30, verbose_name='status')), | ||
('proposal', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='co_speakers', to='submissions.submission', verbose_name='proposal')), | ||
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to=settings.AUTH_USER_MODEL, verbose_name='user')), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
] |
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
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,42 @@ | ||
import { | ||
CardPart, | ||
Grid, | ||
Heading, | ||
Input, | ||
InputWrapper, | ||
MultiplePartsCard, | ||
Spacer, | ||
Text, | ||
} from "@python-italia/pycon-styleguide"; | ||
import { FormattedMessage } from "react-intl"; | ||
import { useTranslatedMessage } from "~/helpers/use-translated-message"; | ||
|
||
export const CoSpeakersSection = () => { | ||
const inputPlaceholder = useTranslatedMessage("input.placeholder"); | ||
|
||
return ( | ||
<MultiplePartsCard> | ||
<CardPart contentAlign="left"> | ||
<Heading size={3}> | ||
<FormattedMessage id="cfp.cospeakers.title" /> | ||
</Heading> | ||
</CardPart> | ||
<CardPart background="milk" contentAlign="left"> | ||
<Text size={2}> | ||
<FormattedMessage id="cfp.cospeakers.description" /> | ||
</Text> | ||
<Spacer size="small" /> | ||
|
||
<InputWrapper | ||
required={true} | ||
title={<FormattedMessage id="cfp.cospeakers.email.title" />} | ||
description={ | ||
<FormattedMessage id="cfp.cospeakers.email.description" /> | ||
} | ||
> | ||
<Input type="email" placeholder={inputPlaceholder} /> | ||
</InputWrapper> | ||
</CardPart> | ||
</MultiplePartsCard> | ||
); | ||
}; |
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