diff --git a/app/assets/v2/css/grants/profile.css b/app/assets/v2/css/grants/profile.css index a567afaa55a..36e2662b55c 100644 --- a/app/assets/v2/css/grants/profile.css +++ b/app/assets/v2/css/grants/profile.css @@ -71,4 +71,20 @@ h2.title { padding-left: 10px; } -} \ No newline at end of file +} + +.verification__warning { + background-color: #f8f8f0; + border: 2px solid #ffce08; + color: #b88b16; + font-weight: bold; +} + +.verification__warning__icon { + font-size: 1.8rem; + margin-top: 7px; +} + +.error { + color: var(--gc-pink); +} diff --git a/app/grants/admin.py b/app/grants/admin.py index 9341ea0fe18..1edf802317a 100644 --- a/app/grants/admin.py +++ b/app/grants/admin.py @@ -95,7 +95,7 @@ class GrantAdmin(GeneralAdmin): 'subscriptions_links', 'contributions_links', 'logo', 'logo_svg', 'image_css', 'link', 'clr_prediction_curve', 'hidden', 'grant_type', 'next_clr_calc_date', 'last_clr_calc_date', 'metadata', 'categories', 'twitter_handle_1', 'twitter_handle_2', 'view_count', 'is_clr_eligible', 'in_active_clrs', - 'last_update', 'funding_info' + 'last_update', 'funding_info', 'twitter_verified', 'twitter_verified_by', 'twitter_verified_at' ] readonly_fields = [ 'logo_svg_asset', 'logo_asset', diff --git a/app/grants/migrations/0078_auto_20200914_1945.py b/app/grants/migrations/0078_auto_20200914_1945.py new file mode 100644 index 00000000000..0bb29179140 --- /dev/null +++ b/app/grants/migrations/0078_auto_20200914_1945.py @@ -0,0 +1,30 @@ +# Generated by Django 2.2.4 on 2020-09-14 19:45 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('dashboard', '0148_add_brightid_status'), + ('grants', '0077_grant_funding_info'), + ] + + operations = [ + migrations.AddField( + model_name='grant', + name='twitter_verified', + field=models.BooleanField(default=False, help_text='The owner grant has verified the twitter account'), + ), + migrations.AddField( + model_name='grant', + name='twitter_verified_at', + field=models.DateTimeField(blank=True, help_text='At what time and date what verified this grant', null=True), + ), + migrations.AddField( + model_name='grant', + name='twitter_verified_by', + field=models.ForeignKey(blank=True, help_text='Team member who verified this grant', null=True, on_delete=django.db.models.deletion.SET_NULL, to='dashboard.Profile'), + ), + ] diff --git a/app/grants/models.py b/app/grants/models.py index 9fe3909451e..05e4a21d6cb 100644 --- a/app/grants/models.py +++ b/app/grants/models.py @@ -366,6 +366,9 @@ class Meta: # Grant Query Set used as manager. objects = GrantQuerySet.as_manager() + twitter_verified = models.BooleanField(default=False, help_text='The owner grant has verified the twitter account') + twitter_verified_by = models.ForeignKey('dashboard.Profile', null=True, blank=True, on_delete=models.SET_NULL, help_text='Team member who verified this grant') + twitter_verified_at = models.DateTimeField(blank=True, null=True, help_text='At what time and date what verified this grant') def __str__(self): """Return the string representation of a Grant.""" diff --git a/app/grants/templates/grants/components/card.html b/app/grants/templates/grants/components/card.html index 56b041abda5..0ecb957c8b4 100644 --- a/app/grants/templates/grants/components/card.html +++ b/app/grants/templates/grants/components/card.html @@ -26,6 +26,12 @@
@@ -121,6 +127,12 @@