From 3714f18213081f8ed8239ed9f90311f65de20956 Mon Sep 17 00:00:00 2001 From: Testing wala User Date: Sun, 18 Feb 2024 21:46:02 +0530 Subject: [PATCH 1/4] added phone number feature and updated latest event data --- corpus/robotrix/forms.py | 1 + corpus/robotrix/migrations/0001_initial.py | 8 +- corpus/robotrix/models.py | 5 + corpus/robotrix/views.py | 11 ++- .../templates/robotrix/admin/team_page.html | 2 + corpus/templates/robotrix/admin/teams.html | 2 +- corpus/templates/robotrix/admin/users.html | 2 + corpus/templates/robotrix/home.html | 92 ++++++------------- corpus/templates/robotrix/index.html | 17 +--- corpus/templates/robotrix/register.html | 14 ++- 10 files changed, 69 insertions(+), 85 deletions(-) diff --git a/corpus/robotrix/forms.py b/corpus/robotrix/forms.py index e62f581a..f241105f 100644 --- a/corpus/robotrix/forms.py +++ b/corpus/robotrix/forms.py @@ -16,6 +16,7 @@ class Meta: "roll_no", "ieee_member", "ieee_membership_no", + "phone_no", ] def clean(self): diff --git a/corpus/robotrix/migrations/0001_initial.py b/corpus/robotrix/migrations/0001_initial.py index 582650f8..08404e2d 100644 --- a/corpus/robotrix/migrations/0001_initial.py +++ b/corpus/robotrix/migrations/0001_initial.py @@ -1,4 +1,4 @@ -# Generated by Django 4.2.4 on 2024-01-24 13:40 +# Generated by Django 4.2.4 on 2024-02-18 14:33 import django.db.models.deletion from django.conf import settings from django.db import migrations @@ -73,6 +73,12 @@ class Migration(migrations.Migration): ("roll_no", models.CharField(blank=True, max_length=8, null=True)), ("ieee_member", models.BooleanField(default=False)), ("ieee_membership_no", models.BigIntegerField(blank=True, null=True)), + ( + "phone_no", + models.CharField( + max_length=15, unique=True, verbose_name="Phone Number" + ), + ), ], ), migrations.CreateModel( diff --git a/corpus/robotrix/models.py b/corpus/robotrix/models.py index 35d9008f..3c0a2bc9 100644 --- a/corpus/robotrix/models.py +++ b/corpus/robotrix/models.py @@ -12,6 +12,11 @@ class RobotrixUser(models.Model): roll_no = models.CharField(max_length=8, blank=True, null=True) ieee_member = models.BooleanField(default=False) ieee_membership_no = models.BigIntegerField(blank=True, null=True) + phone_no = models.CharField( + max_length=15, + unique=True, + verbose_name="Phone Number", + ) team = models.ForeignKey( "Team", on_delete=models.CASCADE, related_name="team", blank=True, null=True ) diff --git a/corpus/robotrix/views.py b/corpus/robotrix/views.py index 9d4ab15f..2da86bd3 100644 --- a/corpus/robotrix/views.py +++ b/corpus/robotrix/views.py @@ -31,7 +31,7 @@ def home(request): config = ModuleConfiguration.objects.get(module_name="robotrix").module_config try: - if request.user.is_authenticated: + if request.user.is_authenticated and not RobotrixUser.DoesNotExist: args["registered"] = True except RobotrixUser.DoesNotExist: args["registered"] = False @@ -527,12 +527,17 @@ def team_download(request): response["Content-Disposition"] = 'attachment; filename="teams.csv"' writer = csv.writer(response) - writer.writerow(["First Name", "Last Name", "Email"]) + writer.writerow(["First Name", "Last Name", "Email", "Phone Number"]) for team in Team.objects.filter(payment_status__in=["P", "E"]): leader = team.team_leader writer.writerow( - [leader.user.first_name, leader.user.last_name, leader.user.email] + [ + leader.user.first_name, + leader.user.last_name, + leader.user.email, + leader.user.phone_no, + ] ) return response diff --git a/corpus/templates/robotrix/admin/team_page.html b/corpus/templates/robotrix/admin/team_page.html index 36300b55..136248c8 100644 --- a/corpus/templates/robotrix/admin/team_page.html +++ b/corpus/templates/robotrix/admin/team_page.html @@ -19,6 +19,7 @@

Members

Name Email + Phone Number From NITK? College Name IEEE Member? @@ -31,6 +32,7 @@

Members

{{ forloop.counter }} {{ member.user }} {{ member.user.email }} + {{ member.user.phone_no }} {{ member.from_nitk|yesno:"Yes,No" }} {{ member.college_name }} {{ member.ieee_member|yesno:"Yes,No" }} diff --git a/corpus/templates/robotrix/admin/teams.html b/corpus/templates/robotrix/admin/teams.html index 1074f180..1d19110c 100644 --- a/corpus/templates/robotrix/admin/teams.html +++ b/corpus/templates/robotrix/admin/teams.html @@ -40,7 +40,7 @@

Team Management

Back
Download Team List + class="btn btn-primary text-black font-bold no-underline">Download Team Leaders List
diff --git a/corpus/templates/robotrix/admin/users.html b/corpus/templates/robotrix/admin/users.html index 768e0920..bbc03715 100644 --- a/corpus/templates/robotrix/admin/users.html +++ b/corpus/templates/robotrix/admin/users.html @@ -29,6 +29,7 @@

Stats

Name Email + Phone Number From NITK? College Name IEEE Member? @@ -42,6 +43,7 @@

Stats

{{ forloop.counter }} {{ user.user }} {{ user.user.email }} + {{ user.phone_no }} {{ user.from_nitk|yesno:"Yes,No" }} {{ user.college_name }} {{ user.ieee_member|yesno:"Yes,No" }} diff --git a/corpus/templates/robotrix/home.html b/corpus/templates/robotrix/home.html index ce15580e..9dd87288 100644 --- a/corpus/templates/robotrix/home.html +++ b/corpus/templates/robotrix/home.html @@ -75,7 +75,7 @@ {% comment %} Hero Section {% endcomment %}
+ class="hero min-h-[50vh] min-w-screen">

Robotrix 2024


@@ -85,7 +85,7 @@

A 24-Hour Robotics Hackathon



NATIONAL INSTITUTE OF TECHNOLOGY KARNATAKA

-

22nd February - 9th March 2024

+

24th February - 10th March 2024

{% if registration_active and not registration_done and not registered %} Register Now {% elif registration_done and not registered %} @@ -117,7 +117,7 @@

KNOW ABOUT ROBO you with interesting problem statements to ensure a fun-filled learning experience. In addition to the hackathon, a workshop will also be conducted before the final event to enhance your experience with us!
-

Open to 1st and 2nd year B.Tech students from all over India!

+

Open to 1st, 2nd and 3rd year B.Tech students from all over India!


@@ -211,50 +211,7 @@

Prize -->
-

Top 2 Teams receive prizes from a pool of 5000 INR

-
- - - - - - - - - - - - - - - -
-
-
-
- {% comment %} First prize cup icon svg {% endcomment %} - First Prize -
-
-
-
- First Prize -
- {% comment %} Desktop Support Technician {% endcomment %} -
3000 INR
-
-
-
- {% comment %} Second prize cup icon svg {% endcomment %} - Second Prize -
-
-
-
- Second Prize -
-
2000 INR
-
+

Top 2 Teams receive Prizes worth 5000 INR !

{% comment %}

Prizes and goodies to be announced soon !

{% endcomment %}
@@ -303,12 +260,12 @@

SCHEDULE

- -
Preliminary test
+ +
Expert talk
- -
+
+

  • @@ -316,11 +273,12 @@

    SCHEDULE

    - -
    Expert talk
    + +
    Qualifying test
    -
    +
    +

  • @@ -330,9 +288,9 @@

    SCHEDULE

    Session 1 on Coppeliasim
    -
    -
    +
    +

  • @@ -344,7 +302,8 @@

    SCHEDULE

    Assignment
    -
    +
    +
  • @@ -357,7 +316,8 @@

    SCHEDULE

    Session 2 on Coppeliasim
    -
    +
    +

  • @@ -433,7 +393,7 @@

    SCHEDULE

    - 1st or 2nd year B.Tech students from any engineering college and any branch in India are eligible to participate. + 1st, 2nd or 3rd year B.Tech students from any engineering college and any branch in India are eligible to participate.

    @@ -481,7 +441,7 @@

    SCHEDULE

    -
    +

    SCHEDULE

    -
    +

    SCHEDULE

    -
    +

    SCHEDULE

    -
    +

    SCHEDULE

    -
    +

    SCHEDULE

    -
    +

    SCHEDULE

    -
    +

    .hero { - background-color: rgba(0, 0, 0, 0.5); - background-image: url("{% static 'img/ieee-robotrix.png' %}"); + background-color: rgba(0, 0, 0, 0.6); + background-image: url("{% static 'img/robotrix/robotrix_logo.png' %}"); background-size: cover; background-position: center; background-blend-mode: overlay; @@ -67,7 +67,7 @@
    - Robotrix Logo +

    Robotrix

    24-Hour Signal Processing Hackathon

    NATIONAL INSTITUTE OF TECHNOLOGY KARNATAKA

    @@ -120,16 +120,7 @@

    Edit Team

    - {% if team.payment_status == "P" or team.payment_status == "E" %} -
    -

    Join the Discord Server

    - - - - - -
    - {% endif %} + {% if team.payment_status == "U" %}
    diff --git a/corpus/templates/robotrix/register.html b/corpus/templates/robotrix/register.html index 8c843204..d93e07fe 100644 --- a/corpus/templates/robotrix/register.html +++ b/corpus/templates/robotrix/register.html @@ -57,6 +57,18 @@

    Register for Robotrix

    {% endif %}
    +
    + + {{ form.phone_no }} + {% if form.phone_no.errors %} +
    + +
    + {% endif %} +
    +
    @@ -84,7 +96,7 @@

    Register for Robotrix

    - +
    From 8602faccd9127c9bc212f33ab71866a6a7342c2c Mon Sep 17 00:00:00 2001 From: Testing wala User Date: Sun, 18 Feb 2024 23:02:50 +0530 Subject: [PATCH 2/4] fixed registration display issues on home page --- corpus/robotrix/views.py | 4 +++- corpus/templates/robotrix/home.html | 5 +++-- .../templates/static/img/robotrix/robo_small.png | Bin 0 -> 9895 bytes 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 corpus/templates/static/img/robotrix/robo_small.png diff --git a/corpus/robotrix/views.py b/corpus/robotrix/views.py index 2da86bd3..6008ac4f 100644 --- a/corpus/robotrix/views.py +++ b/corpus/robotrix/views.py @@ -31,8 +31,10 @@ def home(request): config = ModuleConfiguration.objects.get(module_name="robotrix").module_config try: - if request.user.is_authenticated and not RobotrixUser.DoesNotExist: + if request.user.is_authenticated: + robotrix_user = RobotrixUser.objects.get(user=request.user) args["registered"] = True + args["robotrix_user"] = robotrix_user except RobotrixUser.DoesNotExist: args["registered"] = False diff --git a/corpus/templates/robotrix/home.html b/corpus/templates/robotrix/home.html index 9dd87288..1799f950 100644 --- a/corpus/templates/robotrix/home.html +++ b/corpus/templates/robotrix/home.html @@ -24,6 +24,7 @@ } .hero { background-size: cover; + /* background-image: url("{% static 'img/robotrix/robo_small.png' %}"); */ } } @@ -89,11 +90,11 @@

    Register Now {% elif registration_done and not registered %} - Registerations Closed + Registrations Closed {% elif registered %} Go to Dashboard {% else %} - Registerations Opening Soon + Registrations Opening Soon {% endif %}
    diff --git a/corpus/templates/static/img/robotrix/robo_small.png b/corpus/templates/static/img/robotrix/robo_small.png new file mode 100644 index 0000000000000000000000000000000000000000..3040938ebd3206cd1b20380c8917237794107bd1 GIT binary patch literal 9895 zcmeHtUwIcN8rowGAL*F7^=+zYr02_cve005AvsVeDW=Ij4`_;{Ex_TZH? zX2SB+RZ#%ck2CH801$whlDxjJ`C&oaCxiax0fuKn(ej8?1{-pU7(g5sJ{xSZGA^Yw zJS*f`mcPxfGV?6I=Ku{FHadm;Jf6 z%lzel%j>!8xtX8~CMt!`bb)kO>?d_F%fz_*y19lZA#4gPs^w@)9EZ@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v>u}PPNI%n$qf~tEK9kd0J{B=+YS?aM*Qy8B+^`dvE;Br7zXR zm{?^Oh#bGCmrOIlBvBd0`oqJzda@Hmig5H|=BqlS{G&nLnObAdo?fyCOo6uV^cKwI zi4yp-1i3h!kfj|jy!*ROnRMg}Oj`J~)6W#8yZNPpR8a=bG2-DKi$JWXsjg4y*b43+t~AZLrO2u4}vEUB^IcatNW( zyW&)X8#1U?)9lM}*8|ke_HD`y;|HxX#u=#reClWn&myNs%8WfVA~dcrB5#l`tOvuj zAkxdJaK!PzNS-fF>DXV;VfYqSgr~?PIZ}*7>cDJ`L#WuL^jy=bu%2Q_zDsFBe#|;i z&I&`Qh~gcc7QvRlND`HPi4;7<814mslph)f0bx-|gG5pUu%lQlQMBd!+Vl8Z7$(L} z@wNc0m> Date: Sun, 18 Feb 2024 23:20:53 +0530 Subject: [PATCH 3/4] home page logo changes --- corpus/templates/robotrix/home.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/corpus/templates/robotrix/home.html b/corpus/templates/robotrix/home.html index 1799f950..2bf6a901 100644 --- a/corpus/templates/robotrix/home.html +++ b/corpus/templates/robotrix/home.html @@ -11,10 +11,11 @@ .hero { background-color: rgba(0, 0, 0, 0.6); - background-image: url("{% static 'img/robotrix/robotrix_logo.png' %}"); + /* background-image: url("{% static 'img/robotrix/robotrix_logo.png' %}"); */ background-size: cover; background-position: center; background-blend-mode: overlay; + height: 25%; } /* Small screens (default full width) */ @@ -23,8 +24,8 @@ max-width: 70%; } .hero { - background-size: cover; - /* background-image: url("{% static 'img/robotrix/robo_small.png' %}"); */ + background-size: contain; + background-image: url("{% static 'img/robotrix/robo_small.png' %}"); } } @@ -35,6 +36,7 @@ } .hero { background-size: contain; + background-image: url("{% static 'img/robotrix/robotrix_logo.png' %}"); } } @@ -45,6 +47,7 @@ } .hero { background-size: 60%; /* Adjust the size based on your preference */ + background-image: url("{% static 'img/robotrix/robotrix_logo.png' %}"); } } @@ -55,6 +58,7 @@ } .hero { background-size: 70%; /* Adjust the size based on your preference */ + background-image: url("{% static 'img/robotrix/robotrix_logo.png' %}"); } } From 56c1e9f5b09b496a567f4334e28f6bed698d20dc Mon Sep 17 00:00:00 2001 From: Testing wala User Date: Sun, 18 Feb 2024 23:31:02 +0530 Subject: [PATCH 4/4] minor typo and other fixes --- corpus/robotrix/tests/__init__.py | 0 corpus/robotrix/tests/test_models.py | 0 corpus/robotrix/tests/test_urls.py | 80 ---------------------------- corpus/robotrix/tests/test_views.py | 13 ----- corpus/templates/robotrix/home.html | 2 +- corpus/templates/robotrix/index.html | 4 +- 6 files changed, 3 insertions(+), 96 deletions(-) delete mode 100644 corpus/robotrix/tests/__init__.py delete mode 100644 corpus/robotrix/tests/test_models.py delete mode 100644 corpus/robotrix/tests/test_urls.py delete mode 100644 corpus/robotrix/tests/test_views.py diff --git a/corpus/robotrix/tests/__init__.py b/corpus/robotrix/tests/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/corpus/robotrix/tests/test_models.py b/corpus/robotrix/tests/test_models.py deleted file mode 100644 index e69de29b..00000000 diff --git a/corpus/robotrix/tests/test_urls.py b/corpus/robotrix/tests/test_urls.py deleted file mode 100644 index d34f493e..00000000 --- a/corpus/robotrix/tests/test_urls.py +++ /dev/null @@ -1,80 +0,0 @@ -from django.test import SimpleTestCase -from django.urls import resolve -from django.urls import reverse -from robotrix.views import add_member -from robotrix.views import admin -from robotrix.views import announcements_management -from robotrix.views import create_team -from robotrix.views import delete_announcement -from robotrix.views import delete_payment_proof -from robotrix.views import home -from robotrix.views import index -from robotrix.views import mark_payment_complete -from robotrix.views import mark_payment_incomplete -from robotrix.views import register -from robotrix.views import team_management -from robotrix.views import team_page -from robotrix.views import upload_payment_proof -from robotrix.views import user_management - - -class UrlsTestCase(SimpleTestCase): - def test_home_url_is_resolved(self): - url = reverse("robotrix_home") - self.assertEquals(resolve(url).func, home) - - def test_index_url_is_resolved(self): - url = reverse("robotrix_index") - self.assertEquals(resolve(url).func, index) - - def test_register_url_is_resolved(self): - url = reverse("robotrix_register") - self.assertEquals(resolve(url).func, register) - - def test_create_team_url_is_resolved(self): - url = reverse("robotrix_create_team") - self.assertEquals(resolve(url).func, create_team) - - def test_add_member_url_is_resolved(self): - url = reverse("robotrix_add_member2") - self.assertEquals(resolve(url).func, add_member) - - def test_upload_payment_proof_url_is_resolved(self): - url = reverse("robotrix_upload_payment_proof") - self.assertEquals(resolve(url).func, upload_payment_proof) - - def test_delete_payment_proof_url_is_resolved(self): - url = reverse("robotrix_delete_payment_proof") - self.assertEquals(resolve(url).func, delete_payment_proof) - - def test_admin_url_is_resolved(self): - url = reverse("robotrix_admin") - self.assertEquals(resolve(url).func, admin) - - def test_team_management_url_is_resolved(self): - url = reverse("robotrix_admin_teams") - self.assertEquals(resolve(url).func, team_management) - - def test_team_page_url_is_resolved(self): - url = reverse("robotrix_admin_team_page", args=[1]) - self.assertEquals(resolve(url).func, team_page) - - def test_user_management_url_is_resolved(self): - url = reverse("robotrix_admin_users") - self.assertEquals(resolve(url).func, user_management) - - def test_announcements_management_url_is_resolved(self): - url = reverse("robotrix_announcements") - self.assertEquals(resolve(url).func, announcements_management) - - def test_delete_announcement_url_is_resolved(self): - url = reverse("robotrix_delete_announcement", args=[1]) - self.assertEquals(resolve(url).func, delete_announcement) - - def test_mark_payment_complete_url_is_resolved(self): - url = reverse("robotrix_admin_mark_payment_complete", args=[1]) - self.assertEquals(resolve(url).func, mark_payment_complete) - - def test_mark_payment_incomplete_url_is_resolved(self): - url = reverse("robotrix_admin_mark_payment_incomplete", args=[1]) - self.assertEquals(resolve(url).func, mark_payment_incomplete) diff --git a/corpus/robotrix/tests/test_views.py b/corpus/robotrix/tests/test_views.py deleted file mode 100644 index 460d6492..00000000 --- a/corpus/robotrix/tests/test_views.py +++ /dev/null @@ -1,13 +0,0 @@ -from django.test import Client -from django.test import TestCase -from django.urls import reverse - - -class ViewsTestCase(TestCase): - def setUp(self): - self.client = Client() - - def test_home_view_GET(self): - response = self.client.get(reverse("robotrix_home")) - self.assertEqual(response.status_code, 200) - self.assertTemplateUsed(response, "robotrix/home.html") diff --git a/corpus/templates/robotrix/home.html b/corpus/templates/robotrix/home.html index 2bf6a901..1371d09f 100644 --- a/corpus/templates/robotrix/home.html +++ b/corpus/templates/robotrix/home.html @@ -87,7 +87,7 @@

    Admin {% endif %} -

    A 24-Hour Robotics Hackathon



    +

    24-Hour Robotics Hackathon



    NATIONAL INSTITUTE OF TECHNOLOGY KARNATAKA

    24th February - 10th March 2024

    diff --git a/corpus/templates/robotrix/index.html b/corpus/templates/robotrix/index.html index d9856431..5a90db09 100644 --- a/corpus/templates/robotrix/index.html +++ b/corpus/templates/robotrix/index.html @@ -69,9 +69,9 @@

    Robotrix

    -

    24-Hour Signal Processing Hackathon

    +

    24-Hour Robotics Hackathon

    NATIONAL INSTITUTE OF TECHNOLOGY KARNATAKA

    -

    10th - 13th January 2024

    +

    24th February - 10th March 2024

    {% comment %} Registrations Opening soon {% endcomment %}