parent
81fee53656
commit
ff91b3023e
@ -0,0 +1,32 @@ |
|||||||
|
# Generated by Django 5.1 on 2024-12-16 15:43 |
||||||
|
|
||||||
|
from django.db import migrations, models |
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration): |
||||||
|
|
||||||
|
dependencies = [ |
||||||
|
('crm', '0002_alter_event_options_alter_prospect_options_and_more'), |
||||||
|
] |
||||||
|
|
||||||
|
operations = [ |
||||||
|
migrations.RemoveField( |
||||||
|
model_name='prospect', |
||||||
|
name='region', |
||||||
|
), |
||||||
|
migrations.AddField( |
||||||
|
model_name='prospect', |
||||||
|
name='address', |
||||||
|
field=models.CharField(blank=True, max_length=200, null=True), |
||||||
|
), |
||||||
|
migrations.AddField( |
||||||
|
model_name='prospect', |
||||||
|
name='city', |
||||||
|
field=models.CharField(blank=True, max_length=500, null=True), |
||||||
|
), |
||||||
|
migrations.AddField( |
||||||
|
model_name='prospect', |
||||||
|
name='zip_code', |
||||||
|
field=models.CharField(blank=True, max_length=20, null=True), |
||||||
|
), |
||||||
|
] |
||||||
@ -0,0 +1,32 @@ |
|||||||
|
# Generated by Django 5.1 on 2024-12-16 16:24 |
||||||
|
|
||||||
|
from django.db import migrations, models |
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration): |
||||||
|
|
||||||
|
dependencies = [ |
||||||
|
('crm', '0003_remove_prospect_region_prospect_address_and_more'), |
||||||
|
] |
||||||
|
|
||||||
|
operations = [ |
||||||
|
migrations.RemoveField( |
||||||
|
model_name='prospect', |
||||||
|
name='name', |
||||||
|
), |
||||||
|
migrations.AddField( |
||||||
|
model_name='prospect', |
||||||
|
name='entity_name', |
||||||
|
field=models.CharField(blank=True, max_length=200, null=True), |
||||||
|
), |
||||||
|
migrations.AddField( |
||||||
|
model_name='prospect', |
||||||
|
name='first_name', |
||||||
|
field=models.CharField(blank=True, max_length=200, null=True), |
||||||
|
), |
||||||
|
migrations.AddField( |
||||||
|
model_name='prospect', |
||||||
|
name='last_name', |
||||||
|
field=models.CharField(blank=True, max_length=200, null=True), |
||||||
|
), |
||||||
|
] |
||||||
@ -0,0 +1,18 @@ |
|||||||
|
# Generated by Django 5.1 on 2024-12-16 16:49 |
||||||
|
|
||||||
|
from django.db import migrations, models |
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration): |
||||||
|
|
||||||
|
dependencies = [ |
||||||
|
('crm', '0004_remove_prospect_name_prospect_entity_name_and_more'), |
||||||
|
] |
||||||
|
|
||||||
|
operations = [ |
||||||
|
migrations.AddField( |
||||||
|
model_name='prospect', |
||||||
|
name='phone', |
||||||
|
field=models.CharField(blank=True, max_length=25, null=True), |
||||||
|
), |
||||||
|
] |
||||||
@ -0,0 +1,34 @@ |
|||||||
|
{% extends "crm/base.html" %} |
||||||
|
|
||||||
|
{% block content %} |
||||||
|
<div class="container mt-4"> |
||||||
|
<h2>Import Prospects from CSV</h2> |
||||||
|
|
||||||
|
<div class="card"> |
||||||
|
<div class="card-body"> |
||||||
|
<form method="post" enctype="multipart/form-data"> |
||||||
|
{% csrf_token %} |
||||||
|
|
||||||
|
<div class="mb-3"> |
||||||
|
{{ form.as_p }} |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="alert alert-info"> |
||||||
|
<h5>CSV Format Requirements:</h5> |
||||||
|
<p>The CSV file should contain the following columns in order:</p> |
||||||
|
<ul> |
||||||
|
<li>Column 1: Club Code</li> |
||||||
|
<li>Column 2: Last Name</li> |
||||||
|
<li>Column 3: First Name</li> |
||||||
|
<li>Column 4: Email</li> |
||||||
|
<li>Column 9: ZIP Code</li> |
||||||
|
<li>Column 10: City</li> |
||||||
|
</ul> |
||||||
|
</div> |
||||||
|
|
||||||
|
<button type="submit" class="btn btn-primary">Import CSV</button> |
||||||
|
</form> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
{% endblock %} |
||||||
Binary file not shown.
Loading…
Reference in new issue