added user management
upgraded to bootstrap 4
This commit is contained in:
commit
03f3e82c97
33 changed files with 1435 additions and 475 deletions
|
|
@ -23,3 +23,6 @@ class Account(models.Model):
|
|||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
class Meta:
|
||||
ordering = ['-created_on']
|
||||
|
|
|
|||
|
|
@ -26,6 +26,9 @@ class Case(models.Model):
|
|||
created_on = models.DateTimeField(_("Created on"), auto_now_add=True)
|
||||
is_active = models.BooleanField(default=False)
|
||||
|
||||
class Meta:
|
||||
ordering = ['-created_on']
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ from django.test import Client
|
|||
from common.models import Address
|
||||
from django.core.urlresolvers import reverse
|
||||
from common.models import User
|
||||
from django.utils import timezone
|
||||
|
||||
|
||||
class CaseCreation(object):
|
||||
|
|
@ -15,6 +16,8 @@ class CaseCreation(object):
|
|||
self.user = User.objects.create(username='raghu', email='r@mp.com')
|
||||
self.user.set_password('raghu')
|
||||
self.user.save()
|
||||
self.client.login(email='r@mp.com', password='raghu')
|
||||
|
||||
|
||||
self.account = Account.objects.create(name="account", email="account@gmail.com", phone="12345",
|
||||
billing_address=self.address, shipping_address=self.address,
|
||||
|
|
@ -25,10 +28,9 @@ class CaseCreation(object):
|
|||
email="contact@gmail.com", phone="12345",
|
||||
account=self.account, description="contact", address=self.address, created_by=self.user)
|
||||
# self.comment = Comments.objects.create(comment="new", caseid=self.case.id, comment_)
|
||||
self.client.login(email='r@mp.com', password='raghu')
|
||||
self.case = Case.objects.create(name="raghu", case_type="Problem", status="New", account=self.account,
|
||||
priority="Low", description="something", teams="Sales",
|
||||
created_by=self.user)
|
||||
self.case = Case.objects.create(name="raghu", case_type="Problem", status="New",
|
||||
priority="low", description="something",
|
||||
created_by=self.user, closed_on=timezone.now())
|
||||
|
||||
|
||||
class CaseCreateTestCase(CaseCreation, TestCase):
|
||||
|
|
@ -66,11 +68,11 @@ class CaseShowTestCase(CaseCreation, TestCase):
|
|||
def test_show_case(self):
|
||||
response = self.client.get('/cases/1/view/')
|
||||
self.assertEqual(response.status_code, 200)
|
||||
self.assertEqual(response.context['case'].id, 1)
|
||||
self.assertEqual(response.context['case_record'].id, 1)
|
||||
|
||||
def test_show_case_html(self):
|
||||
response = self.client.get('/cases/1/view/')
|
||||
self.assertTemplateUsed(response, 'cases/show_case.html')
|
||||
self.assertTemplateUsed(response, 'cases/view_case.html')
|
||||
|
||||
def test_show_case_invalid_data(self):
|
||||
response = self.client.get('/cases/1/view/')
|
||||
|
|
@ -79,8 +81,8 @@ class CaseShowTestCase(CaseCreation, TestCase):
|
|||
|
||||
class CaseRemoveTestCase(CaseCreation, TestCase):
|
||||
def test_case_deletion_show_case(self):
|
||||
response = self.client.get('/cases/1/delete/')
|
||||
self.assertEqual(response['location'], '/cases/list')
|
||||
response = self.client.get('/cases/1/remove/')
|
||||
self.assertEqual(response.status_code, 302)
|
||||
|
||||
|
||||
class CaseUpdateTestCase(CaseCreation, TestCase):
|
||||
|
|
@ -94,8 +96,8 @@ class CaseUpdateTestCase(CaseCreation, TestCase):
|
|||
|
||||
def test_case_update_html(self):
|
||||
response = self.client.post('/cases/1/edit_case/', {'hiddenval': self.case.id})
|
||||
self.assertTemplateUsed(response, 'cases/show_case.html')
|
||||
self.assertEqual(response.status_code, 200)
|
||||
|
||||
def test_edit_details(self):
|
||||
response = self.client.post('/cases/editdetails/', {'tid': self.case.id})
|
||||
self.assertEqual(int(response.json()['eid']), self.case.id)
|
||||
# def test_edit_details(self):
|
||||
# response = self.client.post('/cases/editdetails/', {'tid': self.case.id})
|
||||
# self.assertEqual(int(response.json()['eid']), self.case.id)
|
||||
|
|
|
|||
25
common/migrations/0003_auto_20180321_1135.py
Normal file
25
common/migrations/0003_auto_20180321_1135.py
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.5 on 2018-03-21 06:05
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('common', '0002_auto_20170926_1752'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='user',
|
||||
name='first_name',
|
||||
field=models.CharField(blank=True, max_length=150),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='user',
|
||||
name='last_name',
|
||||
field=models.CharField(blank=True, max_length=150),
|
||||
),
|
||||
]
|
||||
|
|
@ -37,7 +37,8 @@ INSTALLED_APPS = [
|
|||
'leads',
|
||||
'opportunity',
|
||||
'planner',
|
||||
'simple_pagination'
|
||||
'simple_pagination',
|
||||
'compressor'
|
||||
]
|
||||
|
||||
MIDDLEWARE = [
|
||||
|
|
@ -139,3 +140,33 @@ EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend'
|
|||
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
|
||||
MEDIA_URL = '/media/'
|
||||
AUTH_USER_MODEL = 'common.User'
|
||||
|
||||
STATIC_URL = '/static/'
|
||||
STATICFILES_DIRS = (BASE_DIR + '/static',)
|
||||
STATICFILES_FINDERS = (
|
||||
'django.contrib.staticfiles.finders.FileSystemFinder',
|
||||
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
|
||||
'compressor.finders.CompressorFinder',
|
||||
)
|
||||
|
||||
COMPRESS_ROOT = BASE_DIR + '/static/'
|
||||
COMPRESS_URL = STATIC_URL
|
||||
COMPRESS_ENABLED = True
|
||||
|
||||
COMPRESS_CSS_FILTERS = ['compressor.filters.css_default.CssAbsoluteFilter', 'compressor.filters.cssmin.CSSMinFilter']
|
||||
COMPRESS_REBUILD_TIMEOUT = 5400
|
||||
|
||||
|
||||
COMPRESS_OUTPUT_DIR = 'CACHE'
|
||||
COMPRESS_URL = STATIC_URL
|
||||
COMPRESS_ENABLED = True
|
||||
|
||||
COMPRESS_PRECOMPILERS = (
|
||||
('text/less', '/usr/local/bin/lessc {infile} {outfile}'),
|
||||
('text/x-sass', '/usr/local/bin/sass {infile} {outfile}'),
|
||||
('text/x-scss', '/usr/local/bin/sass --scss {infile} {outfile}'),
|
||||
)
|
||||
|
||||
COMPRESS_OFFLINE_CONTEXT = {
|
||||
'STATIC_URL': 'STATIC_URL',
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,5 +34,8 @@ class Lead(models.Model):
|
|||
is_active = models.BooleanField(default=False)
|
||||
enquery_type = models.CharField(max_length=255, blank=True, null=True)
|
||||
|
||||
class Meta:
|
||||
ordering =['-created_on']
|
||||
|
||||
def __str__(self):
|
||||
return self.first_name + self.last_name
|
||||
|
|
|
|||
|
|
@ -1,26 +1,22 @@
|
|||
from django.test import TestCase
|
||||
from django.test import Client
|
||||
from django.contrib.auth.models import User
|
||||
# from django.contrib.auth.models import User
|
||||
from leads.models import Lead
|
||||
from common.models import Address, Country
|
||||
from common.models import Address, User
|
||||
from accounts.models import Account
|
||||
|
||||
|
||||
class TestLeadModel(object):
|
||||
def setUp(self):
|
||||
self.client = Client()
|
||||
self.country = Country.objects.create(iso_3166_1_a2="IN",
|
||||
iso_3166_1_a3="IND",
|
||||
iso_3166_1_numeric="001",
|
||||
name="India",
|
||||
printable_name="Bharath",
|
||||
is_shipping_country="True")
|
||||
|
||||
self.user = User.objects.create(username='uday', email='u@mp.com')
|
||||
self.user.set_password('uday2293')
|
||||
self.user.save()
|
||||
self.client.login(username='u@mp.com', password='uday2293')
|
||||
self.address = Address.objects.create(street="Gokul enclave colony",
|
||||
city="Hasthinapuram",
|
||||
state="Telangana",
|
||||
postcode="500079",
|
||||
country=self.country)
|
||||
country='India')
|
||||
|
||||
self.account = Account.objects.create(name="account",
|
||||
email="account@gmail.com",
|
||||
|
|
@ -28,13 +24,13 @@ class TestLeadModel(object):
|
|||
billing_address=Address.objects.get(pk=1),
|
||||
shipping_address=Address.objects.get(pk=1),
|
||||
website="account.com",
|
||||
account_type="account",
|
||||
sis_code="12345",
|
||||
industry="IT",
|
||||
description="account")
|
||||
description="account",
|
||||
created_by=self.user)
|
||||
|
||||
self.lead = Lead.objects.create(title="LeadCreation",
|
||||
name="kotha",
|
||||
first_name="kotha",
|
||||
last_name="k",
|
||||
email="anjalikotha1993@gmail.com",
|
||||
account=self.account,
|
||||
address=self.address,
|
||||
|
|
@ -42,11 +38,9 @@ class TestLeadModel(object):
|
|||
status="assigned",
|
||||
source="Call",
|
||||
opportunity_amount="700",
|
||||
description="Iam an Lead")
|
||||
description="Iam an Lead",
|
||||
created_by=self.user)
|
||||
|
||||
self.user = User.objects.create_superuser('user@micropyramid.com',
|
||||
'username', 'password')
|
||||
self.client.login(username='user@micropyramid.com', password='password')
|
||||
|
||||
def testaddress_post_object_creation(self):
|
||||
c = Address.objects.count()
|
||||
|
|
@ -56,13 +50,13 @@ class TestLeadModel(object):
|
|||
p = Address.objects.get(state="Telangana")
|
||||
self.assertEqual(p.street, "Gokul enclave colony")
|
||||
|
||||
def testcountry_post_object_creation(self):
|
||||
c = Country.objects.count()
|
||||
self.assertEqual(c, 1)
|
||||
# def testcountry_post_object_creation(self):
|
||||
# c = Country.objects.count()
|
||||
# self.assertEqual(c, 1)
|
||||
|
||||
def test_get_countryobject_with_name(self):
|
||||
p = Country.objects.get(name="India")
|
||||
self.assertEqual(p.name, "India")
|
||||
# def test_get_countryobject_with_name(self):
|
||||
# p = Country.objects.get(name="India")
|
||||
# self.assertEqual(p.name, "India")
|
||||
|
||||
def test_lead_object_creation(self):
|
||||
c = Lead.objects.count()
|
||||
|
|
@ -144,7 +138,8 @@ class LeadsViewTestCase(TestLeadModel, TestCase):
|
|||
|
||||
def test_leads_view(self):
|
||||
Lead.objects.create(title="LeadCreationbylead",
|
||||
name="kotha",
|
||||
first_name="kotha",
|
||||
last_name="k",
|
||||
email="srilathakotha1993@gmail.com",
|
||||
account=self.account,
|
||||
address=self.address,
|
||||
|
|
@ -152,7 +147,8 @@ class LeadsViewTestCase(TestLeadModel, TestCase):
|
|||
status='converted',
|
||||
source="Call",
|
||||
opportunity_amount="900",
|
||||
description="Iam an Opportunity")
|
||||
description="Iam an Opportunity",
|
||||
created_by=self.user)
|
||||
self.lead = Lead.objects.all()
|
||||
response = self.client.get('/leads/1/view/')
|
||||
self.assertEqual(response.status_code, 200)
|
||||
|
|
|
|||
|
|
@ -27,5 +27,8 @@ class Opportunity(models.Model):
|
|||
created_on = models.DateTimeField(_("Created on"), auto_now_add=True)
|
||||
is_active = models.BooleanField(default=False)
|
||||
|
||||
class Meta:
|
||||
ordering = ['-created_on']
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ from common.models import Address
|
|||
from accounts.models import Account
|
||||
from contacts.models import Contact
|
||||
from common.models import User
|
||||
from django.utils import timezone
|
||||
|
||||
|
||||
# Create your tests here.
|
||||
|
|
@ -14,7 +15,7 @@ class OpportunityModel(object):
|
|||
self.address = Address.objects.create(
|
||||
street="kphb", city="hyderabad", postcode="584",
|
||||
country='IN')
|
||||
self.user = User.objects.create(username='madhurima')
|
||||
self.user = User.objects.create(username='madhurima', email="m@mp.com")
|
||||
self.user.set_password('madhu123')
|
||||
self.user.save()
|
||||
|
||||
|
|
@ -26,21 +27,23 @@ class OpportunityModel(object):
|
|||
industry="sw", description="bgyyr", created_by=self.user)
|
||||
self.contacts = Contact.objects.create(
|
||||
first_name="navi",
|
||||
last_name="s",
|
||||
email="navi@gmail.com", phone="8547",
|
||||
account=self.account,
|
||||
description="defyj",
|
||||
address=self.address)
|
||||
address=self.address,
|
||||
created_by=self.user)
|
||||
self.opportunity = Opportunity.objects.create(
|
||||
name="madhurima", amount="478",
|
||||
stage="negotiation/review", lead_source="Call", probability="58",
|
||||
close_date="2016-05-04",
|
||||
description="hgfdxc")
|
||||
self.client.login(username='madhurima', password='madhu123')
|
||||
closed_on=timezone.now(),
|
||||
description="hgfdxc", created_by=self.user)
|
||||
self.client.login(email='m@mp.com', password='madhu123')
|
||||
|
||||
|
||||
class OpportunityCreateTestCase(OpportunityModel, TestCase):
|
||||
def test_opportunity_create(self):
|
||||
response = self.client.get('/oppurtunities/create/', {
|
||||
response = self.client.get('/opportunities/create/', {
|
||||
'name': "madhurima", 'amount': "478",
|
||||
'stage': "NEGOTIATION/REVIEW",
|
||||
'lead_source': "Call", 'probability': "58",
|
||||
|
|
@ -54,29 +57,28 @@ class opportunityCreateTestCase(OpportunityModel, TestCase):
|
|||
|
||||
def test_view_opportunity(self):
|
||||
self.opportunity = Opportunity.objects.all()
|
||||
response = self.client.get('/oppurtunities/1/view/')
|
||||
response = self.client.get('/opportunities/1/view/')
|
||||
self.assertEqual(response.status_code, 200)
|
||||
self.assertEqual(response.context['opp'].id, self.opportunity.id)
|
||||
|
||||
def test_del_opportunity(self):
|
||||
response = self.client.get('/oppurtunities/1/delete/')
|
||||
self.assertEqual(response['location'], '/oppurtunities/list/')
|
||||
response = self.client.get('/opportunities/1/delete/')
|
||||
self.assertEqual(response.status_code, 302)
|
||||
|
||||
def test_opportunity_delete(self):
|
||||
Opportunity.objects.filter(id=self.account.id).delete()
|
||||
response = self.client.get('/oppurtunities/list/')
|
||||
response = self.client.get('/opportunities/list/')
|
||||
self.assertEqual(response.status_code, 200)
|
||||
|
||||
|
||||
class EditOpportunityTestCase(OpportunityModel, TestCase):
|
||||
def test_edit(self):
|
||||
response = self.client.get('/oppurtunities/1/edit/')
|
||||
response = self.client.get('/opportunities/1/edit/')
|
||||
self.assertEqual(response.status_code, 200)
|
||||
|
||||
def test_edit_opportunity(self):
|
||||
response = self.client.get('/oppurtunities/1/edit/', {
|
||||
response = self.client.get('/opportunities/1/edit/', {
|
||||
'name': "madhurima", 'amount': "478",
|
||||
'stage': "negotiation/review",
|
||||
'lead_source': "Call", 'probability': "58",
|
||||
'close_date': "2016-05-04", 'description': "hgfdxc"})
|
||||
self.assertEqual(response.status_code, 200)
|
||||
self.assertEqual(response.status_code, 200)
|
||||
|
|
|
|||
617
static/CACHE/css/e10c044d9349.css
Normal file
617
static/CACHE/css/e10c044d9349.css
Normal file
|
|
@ -0,0 +1,617 @@
|
|||
@import "ref.scss";
|
||||
|
||||
|
||||
body {
|
||||
font-family: $font_0, $font_1;
|
||||
padding: 0;
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
margin: 0;
|
||||
padding-top:60px;
|
||||
}
|
||||
.login_register_body {
|
||||
background: $body_bg;
|
||||
}
|
||||
.marl {
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
}
|
||||
.login_row {
|
||||
}
|
||||
.login_block {
|
||||
margin-top: 75px;
|
||||
background: $login_bg;
|
||||
-webkit-box-shadow: 10px 10px 0px -4px rgba(0,0,0,0.19);
|
||||
-moz-box-shadow: 10px 10px 0px -4px rgba(0,0,0,0.19);
|
||||
box-shadow: 10px 10px 0px -4px rgba(0,0,0,0.19);
|
||||
.welcome {
|
||||
text-transform: uppercase;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 1px;
|
||||
color: #333;
|
||||
span {
|
||||
color: $color_cyan_aqua_approx;
|
||||
&.create_head {
|
||||
color: $color_screamin_green_approx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.login_form_block {
|
||||
margin-top: 30px;
|
||||
padding:50px 15px;
|
||||
.welcome{
|
||||
margin-bottom: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.form-group {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
label {
|
||||
font-size: 12px;
|
||||
color: darken($text_color2, 15%);
|
||||
font-weight:500;
|
||||
}
|
||||
.form-control {
|
||||
background: #dcdcdc;
|
||||
color: $text_color;
|
||||
min-height: 40px;
|
||||
font-size: 13px;
|
||||
letter-spacing: 0.5px;
|
||||
//Instead of the line below you could use @include box-shadow($shadow-1, $shadow-2, $shadow-3, $shadow-4, $shadow-5, $shadow-6, $shadow-7, $shadow-8, $shadow-9, $shadow-10)
|
||||
box-shadow: none;
|
||||
border: none;
|
||||
//Instead of the line below you could use @include border-radius($radius, $vertical-radius)
|
||||
border-radius: 3px;
|
||||
}
|
||||
.btn {
|
||||
background: $login_btn_bg;
|
||||
//Instead of the line below you could use @include border-radius($radius, $vertical-radius)
|
||||
border-radius: 3px;
|
||||
border: none;
|
||||
text-transform: uppercase;
|
||||
font-size: 13px;
|
||||
letter-spacing: 1px;
|
||||
font-weight: 500;
|
||||
color: $white;
|
||||
width: 100%;
|
||||
outline:none;
|
||||
padding: 10px 20px;
|
||||
&:hover{
|
||||
text-decoration:none;
|
||||
}
|
||||
}
|
||||
.checkbox{
|
||||
text-align: center;
|
||||
input[type=checkbox]{
|
||||
vertical-align: middle;
|
||||
margin: 0;
|
||||
margin-top: 1px;
|
||||
margin-left: -19px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* inner_pages starts here */
|
||||
.main_body_bg_color{
|
||||
background: $inner_page_bg;
|
||||
}
|
||||
header{
|
||||
.navbar{
|
||||
background: darken($text_color, 15%);
|
||||
border:none;
|
||||
.navbar-brand{
|
||||
color: $login_btn_bg;
|
||||
&:hover{
|
||||
color: $login_btn_bg;
|
||||
}
|
||||
}
|
||||
.navbar-nav{
|
||||
>li{
|
||||
>a{
|
||||
color: $text_color3;
|
||||
font-weight: 500;
|
||||
font-size: 12px;
|
||||
padding:15px 10px;
|
||||
@media(min-width: $mob_min) and (max-width: $smob_max) {
|
||||
padding:5px 10px;
|
||||
}
|
||||
&:hover{
|
||||
color:#ddd;
|
||||
}
|
||||
}
|
||||
}
|
||||
>.open{
|
||||
>a{
|
||||
background: $login_btn_bg !important;
|
||||
|
||||
}
|
||||
}
|
||||
li{
|
||||
.dropdown-toggle{
|
||||
img{
|
||||
width: 25px;
|
||||
height: 25px;
|
||||
}
|
||||
}
|
||||
.dropdown-menu{
|
||||
a{
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
}
|
||||
&.navbar-right{
|
||||
.dropdown{
|
||||
.dropdown-toggle{
|
||||
img{
|
||||
width: 25px;
|
||||
height: 25px;
|
||||
}
|
||||
}
|
||||
>a{
|
||||
background:lighten($text_color,5%);
|
||||
color: #fff;
|
||||
border-right:1px solid lighten($text_color,10%);
|
||||
&.nav-link{
|
||||
padding:0.5rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.navbar-form{
|
||||
.form-group{
|
||||
.form-control{
|
||||
border-radius:3px;
|
||||
border:none;
|
||||
}
|
||||
}
|
||||
.btn{
|
||||
border-radius:3px;
|
||||
padding:7px 12px;
|
||||
border:none;
|
||||
background: $green;
|
||||
&.btn-default{
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/* inner_pages ends here */
|
||||
|
||||
/* CSS used here will be applied after bootstrap.css */
|
||||
$color_1: #ff7788;
|
||||
$color_2: #000;
|
||||
|
||||
.glyphicon-bell {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
.notifications {
|
||||
min-width: 420px;
|
||||
font-size: 12px;
|
||||
padding:0;
|
||||
border:none;
|
||||
a.content {
|
||||
text-decoration: none;
|
||||
background: #ccc;
|
||||
}
|
||||
}
|
||||
.notifications-wrapper {
|
||||
overflow: auto;
|
||||
max-height: 250px;
|
||||
}
|
||||
.menu-title {
|
||||
color: #ffffff;
|
||||
font-size: 12px;
|
||||
display: inline-block;
|
||||
text-transform: uppercase;
|
||||
font-weight: 500;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
.glyphicon-circle-arrow-right {
|
||||
margin-left: 10px;
|
||||
}
|
||||
.notification-heading {
|
||||
padding: 2px 10px;
|
||||
background:lighten($text_color,5%);
|
||||
border-top:1px solid lighten($text_color,10%);
|
||||
}
|
||||
.notification-footer {
|
||||
padding: 2px 10px;
|
||||
background:$green;
|
||||
}
|
||||
.dropdown-menu.divider {
|
||||
margin: 5px 0;
|
||||
}
|
||||
.item-title {
|
||||
font-size: 12px;
|
||||
color: darken($text_color, 15%);
|
||||
margin:0;
|
||||
}
|
||||
.notification-item {
|
||||
padding: 10px;
|
||||
margin: 5px;
|
||||
background: #ccc;
|
||||
border-radius: 4px;
|
||||
p{
|
||||
margin: 0;
|
||||
color: #fff;
|
||||
margin-top: 6px;
|
||||
}
|
||||
}
|
||||
|
||||
/* main_container stats here */
|
||||
.main_container{
|
||||
padding-top: 10px;
|
||||
.heading_create{
|
||||
.heading{
|
||||
font-size: 14px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1px;
|
||||
color: darken($text_color, 15%);
|
||||
font-weight: 600;
|
||||
h4{
|
||||
font-size: 15px;
|
||||
}
|
||||
}
|
||||
.create_new{
|
||||
a{
|
||||
background: $login_btn_bg;
|
||||
color: #fff;
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
text-transform: capitalize;
|
||||
letter-spacing: initial;
|
||||
display: inline-block;
|
||||
padding: 5px 10px 3px 10px;
|
||||
}
|
||||
}
|
||||
.search-row{
|
||||
.form-group{
|
||||
.input-group{
|
||||
.left-dropdown{
|
||||
.filters-button{
|
||||
font-size: 12px;
|
||||
background: #fff;
|
||||
border:none;
|
||||
box-shadow:none;
|
||||
margin-top:1px;
|
||||
}
|
||||
.dropdown-menu{
|
||||
li{
|
||||
a{
|
||||
font-size: 12px;
|
||||
}
|
||||
&.checkbox{
|
||||
color: #000;
|
||||
padding-left:10px;
|
||||
font-size: 12px;
|
||||
letter-spacing: 0.4px;
|
||||
input[type=checkbox]{
|
||||
margin:0;
|
||||
margin-left:-10px;
|
||||
margin-top:1px;
|
||||
margin-right:10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.form-control{
|
||||
height: 29px;
|
||||
border: none;
|
||||
margin-top: 2px;
|
||||
}
|
||||
.search{
|
||||
background: $green;
|
||||
color: #fff;
|
||||
border:none;
|
||||
padding:5px 13px;
|
||||
margin-top:2px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.extra_option_btn{
|
||||
font-size: 12px;
|
||||
background: #5b636e;
|
||||
border:none;
|
||||
color:#fff;
|
||||
padding-top:7px;
|
||||
padding-bottom: 7px;
|
||||
&.add-filter-button{
|
||||
background-color: $dark_sky;
|
||||
}
|
||||
}
|
||||
.dropdown-menu{
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* filter_row starts here */
|
||||
.filter_row{
|
||||
margin-top:10px;
|
||||
.card{
|
||||
border:1px solid #ccc;
|
||||
.card-body{
|
||||
padding:0px 0;
|
||||
.card-title{
|
||||
background: #e5e5e5;
|
||||
padding:6px 10px;
|
||||
font-size: 13px;
|
||||
|
||||
}
|
||||
.form-group{
|
||||
margin-bottom: 10px;
|
||||
label{
|
||||
color: $text_color;
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
}
|
||||
.form-control{
|
||||
border-radius: 0;
|
||||
box-shadow: none;
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/* filter_row ends here */
|
||||
/* table_container_row starts here */
|
||||
|
||||
}
|
||||
/* main_container ends here */
|
||||
.table_container_row{
|
||||
margin-top: 10px;
|
||||
.card{
|
||||
.card-title{
|
||||
padding:5px 10px;
|
||||
background: #e5e5e5;
|
||||
padding:6px 10px;
|
||||
font-size: 13px;
|
||||
margin-bottom: 0;
|
||||
.dropdown{
|
||||
display: inline-block;
|
||||
.dropdown-toggle{
|
||||
background: $dark_sky;
|
||||
font-size: 12px;
|
||||
color:#fff;
|
||||
border-radius: 0;
|
||||
border:none;
|
||||
}
|
||||
}
|
||||
.mark_read{
|
||||
background: $inner_page_bg;
|
||||
display: inline-block;
|
||||
padding:6px 10px;
|
||||
margin-left:6px;
|
||||
color: $text_color;
|
||||
&:hover{
|
||||
background:$text_color;
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
.total_count{
|
||||
margin-top:0px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.card-body{
|
||||
padding:0px 0px;
|
||||
table{
|
||||
thead{
|
||||
tr{
|
||||
th{
|
||||
background: #5b646d;
|
||||
color: #fff;
|
||||
font-weight: 500;
|
||||
/* text-transform: uppercase; */
|
||||
font-size: 12px;
|
||||
border: none;
|
||||
padding:6px;
|
||||
}
|
||||
}
|
||||
}
|
||||
tbody{
|
||||
tr{
|
||||
td{
|
||||
vertical-align: middle;
|
||||
color: #454545;
|
||||
font-size: 12px;
|
||||
font-weight: 400;
|
||||
padding:7px 0;
|
||||
a{
|
||||
color: #454545;
|
||||
}
|
||||
.dropdown{
|
||||
.dropdown-toggle{
|
||||
background: $dark_sky;
|
||||
font-size: 12px;
|
||||
color:#fff;
|
||||
border-radius: 0;
|
||||
border:none;
|
||||
}
|
||||
}
|
||||
&.actions{
|
||||
.btn{
|
||||
border-radius: 0;
|
||||
font-size: 12px;
|
||||
padding:3px 5px;
|
||||
color: #fff;
|
||||
svg{
|
||||
display: inline-block;
|
||||
margin-right: 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/* mail_menu starts here */
|
||||
.mail_menu{
|
||||
.panel{
|
||||
border-radius: 0;
|
||||
padding:0;
|
||||
background:none;
|
||||
border:0;
|
||||
.panel-content{
|
||||
padding:0;
|
||||
.mail_options{
|
||||
margin:0;
|
||||
padding: 0;
|
||||
li{
|
||||
list-style:none;
|
||||
a{
|
||||
display: block;
|
||||
padding: 10px;
|
||||
background: $text_color;
|
||||
margin: 1px;
|
||||
color: white;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.6px;
|
||||
&:hover{
|
||||
background:$green;
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
border-left: 3px solid white;
|
||||
}
|
||||
}
|
||||
&.active{
|
||||
a{
|
||||
background:$green;
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
border-left: 3px solid white;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/* mail_menu ends here */
|
||||
}
|
||||
/* table_container_row ends here */
|
||||
/* breadcrumb starts here */
|
||||
.breadcrumb{
|
||||
margin:0;
|
||||
background: none;
|
||||
.breadcrumb-item{
|
||||
a{
|
||||
color: $dark_sky;
|
||||
}
|
||||
}
|
||||
}
|
||||
.breadcrumb>li+li:before{
|
||||
color:$text_color;
|
||||
}
|
||||
/* breadcrumb ends here */
|
||||
/* assigned_teams starts here */
|
||||
.assigned_teams{
|
||||
@extend .filter_row;
|
||||
margin-top:0;
|
||||
}
|
||||
/* assigned_teams ends here */
|
||||
|
||||
/* overview_form_block starts here */
|
||||
.overview_form_block{
|
||||
@extend .filter_row;
|
||||
.card-title{
|
||||
height: 45px;
|
||||
h5{
|
||||
margin-bottom: 0;
|
||||
position: relative;
|
||||
top: 10px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.dropdown{
|
||||
.dropdown-menu{
|
||||
li{
|
||||
a{
|
||||
font-size: 0.85rem;
|
||||
color: #454545;
|
||||
text-transform: capitalize !important;
|
||||
font-weight: 400;
|
||||
display: block;
|
||||
padding:5px 8px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.buttons_row{
|
||||
margin:0;
|
||||
position: relative;
|
||||
top: -10px;
|
||||
}
|
||||
.form-control{
|
||||
border-radius: 0;
|
||||
box-shadow: none;
|
||||
font-size: 12px;
|
||||
}
|
||||
margin-top:0;
|
||||
.country_class{
|
||||
margin-top:10px;
|
||||
}
|
||||
.shiiping_block{
|
||||
margin-top:10px;
|
||||
.checkbox{
|
||||
color: $text_color;
|
||||
}
|
||||
}
|
||||
.filters-button{
|
||||
border-radius: 0;
|
||||
}
|
||||
.website_block{
|
||||
margin-top:10px;
|
||||
}
|
||||
.search{
|
||||
border-radius: 0;
|
||||
}
|
||||
.copy_billing_btn{
|
||||
margin-top:10px;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
/* overview_form_block ends here */
|
||||
/* details_block starts here */
|
||||
.details_block{
|
||||
@extend .filter_row;
|
||||
.form-control{
|
||||
border-radius: 0;
|
||||
box-shadow: none;
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
.buttons_row{
|
||||
margin-bottom: 20px;
|
||||
button{
|
||||
border-radius: 0;
|
||||
font-size: 12px;
|
||||
&.save{
|
||||
background: $dark_sky;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
/* details_block ends here */
|
||||
/* attendees starts here */
|
||||
.attendees{
|
||||
@extend .filter_row;
|
||||
}
|
||||
/* attendees ends here */
|
||||
|
||||
|
||||
|
||||
.case-list-container{
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
1
static/CACHE/css/e896313d318c.css
Normal file
1
static/CACHE/css/e896313d318c.css
Normal file
File diff suppressed because one or more lines are too long
|
|
@ -100,7 +100,7 @@ box-shadow: 10px 10px 0px -4px rgba(0,0,0,0.19);
|
|||
background: $inner_page_bg;
|
||||
}
|
||||
header{
|
||||
.navbar-default{
|
||||
.navbar{
|
||||
background: darken($text_color, 15%);
|
||||
border:none;
|
||||
.navbar-brand{
|
||||
|
|
@ -116,6 +116,9 @@ header{
|
|||
font-weight: 500;
|
||||
font-size: 12px;
|
||||
padding:15px 10px;
|
||||
@media(min-width: $mob_min) and (max-width: $smob_max) {
|
||||
padding:5px 10px;
|
||||
}
|
||||
&:hover{
|
||||
color:#ddd;
|
||||
}
|
||||
|
|
@ -128,20 +131,33 @@ header{
|
|||
}
|
||||
}
|
||||
li{
|
||||
.dropdown-menu{
|
||||
li{
|
||||
a{
|
||||
font-size: 12px;
|
||||
.dropdown-toggle{
|
||||
img{
|
||||
width: 25px;
|
||||
height: 25px;
|
||||
}
|
||||
}
|
||||
.dropdown-menu{
|
||||
a{
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
}
|
||||
&.navbar-right{
|
||||
.dropdown{
|
||||
.dropdown-toggle{
|
||||
img{
|
||||
width: 25px;
|
||||
height: 25px;
|
||||
}
|
||||
}
|
||||
>a{
|
||||
background:lighten($text_color,5%);
|
||||
color: #fff;
|
||||
border-right:1px solid lighten($text_color,10%);
|
||||
&.nav-link{
|
||||
padding:0.5rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -230,13 +246,17 @@ $color_2: #000;
|
|||
|
||||
/* main_container stats here */
|
||||
.main_container{
|
||||
padding-top: 10px;
|
||||
.heading_create{
|
||||
.heading{
|
||||
font-size: 16px;
|
||||
font-size: 14px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1px;
|
||||
color: darken($text_color, 15%);
|
||||
font-weight: 600;
|
||||
h4{
|
||||
font-size: 15px;
|
||||
}
|
||||
}
|
||||
.create_new{
|
||||
a{
|
||||
|
|
@ -244,9 +264,10 @@ $color_2: #000;
|
|||
color: #fff;
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
text-transform: uppercase;
|
||||
text-transform: capitalize;
|
||||
letter-spacing: initial;
|
||||
display: inline-block;
|
||||
padding: 10px 10px 7px 10px;
|
||||
padding: 5px 10px 3px 10px;
|
||||
}
|
||||
}
|
||||
.search-row{
|
||||
|
|
@ -314,13 +335,17 @@ $color_2: #000;
|
|||
|
||||
/* filter_row starts here */
|
||||
.filter_row{
|
||||
margin-top:0px;
|
||||
.panel{
|
||||
.panel-heading{
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.panel-content{
|
||||
padding:10px 0;
|
||||
margin-top:10px;
|
||||
.card{
|
||||
border:1px solid #ccc;
|
||||
.card-body{
|
||||
padding:0px 0;
|
||||
.card-title{
|
||||
background: #e5e5e5;
|
||||
padding:6px 10px;
|
||||
font-size: 13px;
|
||||
|
||||
}
|
||||
.form-group{
|
||||
margin-bottom: 10px;
|
||||
label{
|
||||
|
|
@ -344,9 +369,13 @@ $color_2: #000;
|
|||
/* main_container ends here */
|
||||
.table_container_row{
|
||||
margin-top: 10px;
|
||||
.panel-default{
|
||||
.panel-heading{
|
||||
.card{
|
||||
.card-title{
|
||||
padding:5px 10px;
|
||||
background: #e5e5e5;
|
||||
padding:6px 10px;
|
||||
font-size: 13px;
|
||||
margin-bottom: 0;
|
||||
.dropdown{
|
||||
display: inline-block;
|
||||
.dropdown-toggle{
|
||||
|
|
@ -370,12 +399,12 @@ $color_2: #000;
|
|||
}
|
||||
}
|
||||
.total_count{
|
||||
margin-top:5px;
|
||||
margin-top:0px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.panel-content{
|
||||
padding:15px;
|
||||
.card-body{
|
||||
padding:0px 0px;
|
||||
table{
|
||||
thead{
|
||||
tr{
|
||||
|
|
@ -386,6 +415,7 @@ $color_2: #000;
|
|||
/* text-transform: uppercase; */
|
||||
font-size: 12px;
|
||||
border: none;
|
||||
padding:6px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -393,9 +423,13 @@ $color_2: #000;
|
|||
tr{
|
||||
td{
|
||||
vertical-align: middle;
|
||||
color: #5b636d;
|
||||
color: #454545;
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
font-weight: 400;
|
||||
padding:7px 0;
|
||||
a{
|
||||
color: #454545;
|
||||
}
|
||||
.dropdown{
|
||||
.dropdown-toggle{
|
||||
background: $dark_sky;
|
||||
|
|
@ -405,6 +439,18 @@ $color_2: #000;
|
|||
border:none;
|
||||
}
|
||||
}
|
||||
&.actions{
|
||||
.btn{
|
||||
border-radius: 0;
|
||||
font-size: 12px;
|
||||
padding:3px 5px;
|
||||
color: #fff;
|
||||
svg{
|
||||
display: inline-block;
|
||||
margin-right: 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -459,6 +505,11 @@ $color_2: #000;
|
|||
.breadcrumb{
|
||||
margin:0;
|
||||
background: none;
|
||||
.breadcrumb-item{
|
||||
a{
|
||||
color: $dark_sky;
|
||||
}
|
||||
}
|
||||
}
|
||||
.breadcrumb>li+li:before{
|
||||
color:$text_color;
|
||||
|
|
@ -474,6 +525,34 @@ $color_2: #000;
|
|||
/* overview_form_block starts here */
|
||||
.overview_form_block{
|
||||
@extend .filter_row;
|
||||
.card-title{
|
||||
height: 45px;
|
||||
h5{
|
||||
margin-bottom: 0;
|
||||
position: relative;
|
||||
top: 10px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.dropdown{
|
||||
.dropdown-menu{
|
||||
li{
|
||||
a{
|
||||
font-size: 0.85rem;
|
||||
color: #454545;
|
||||
text-transform: capitalize !important;
|
||||
font-weight: 400;
|
||||
display: block;
|
||||
padding:5px 8px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.buttons_row{
|
||||
margin:0;
|
||||
position: relative;
|
||||
top: -10px;
|
||||
}
|
||||
.form-control{
|
||||
border-radius: 0;
|
||||
box-shadow: none;
|
||||
|
|
@ -531,3 +610,8 @@ $color_2: #000;
|
|||
}
|
||||
/* attendees ends here */
|
||||
|
||||
|
||||
|
||||
.case-list-container{
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
|
@ -18,4 +18,51 @@ $inner_page_bg:#CDCDCD;
|
|||
|
||||
//fonts
|
||||
$font_0: Poppins;
|
||||
$font_1: sans-serif;
|
||||
$font_1: sans-serif;
|
||||
|
||||
//mediaviews
|
||||
$med_min:992px;
|
||||
$med_max:1199px;
|
||||
$tab_max:991px;
|
||||
$tab_min:768px;
|
||||
$smob_max:767px;
|
||||
$smob_min:480px;
|
||||
$mob_max:479px;
|
||||
$mob_min:240px;
|
||||
|
||||
.card{
|
||||
border:1px solid #ccc;
|
||||
}
|
||||
.buttons_row{
|
||||
margin-top: 23px;
|
||||
button{
|
||||
border-radius: 0;
|
||||
font-size: 12px;
|
||||
&.save{
|
||||
background: $dark_sky;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
.clear{
|
||||
border:1px solid $dark_sky;
|
||||
border:1px solid $dark_sky;
|
||||
border-radius: 0;
|
||||
color: $dark_sky;
|
||||
font-size: 12px;
|
||||
}
|
||||
&.form_btn_row{
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
.table-responsive{
|
||||
padding:10px;
|
||||
}
|
||||
select{
|
||||
&.form-control{
|
||||
height: 32px !important;
|
||||
}
|
||||
}
|
||||
|
||||
.mar-top{
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
<!-- heading_create starts here -->
|
||||
<div class="row marl heading_create">
|
||||
<div class="heading col-md-12">
|
||||
<div class="no-gutters row">
|
||||
<div class="col-md-6">
|
||||
<h4>Accounts</h4>
|
||||
</div>
|
||||
|
|
@ -15,30 +16,32 @@
|
|||
<a href="{% url 'accounts:new_account' %}"><i class="fa fa-plus"></i> Add New Account</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- heading_create ends here -->
|
||||
<!-- filter_row starts here -->
|
||||
<div class="filter_row row marl">
|
||||
<div class="col-md-12">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="card-title">Filters</div>
|
||||
<form id="accounts_filter" method="POST" action="">{% csrf_token %}
|
||||
<div class="panel-content text-center">
|
||||
<div class="filter_col col-md-4">
|
||||
|
||||
<div class="row marl">
|
||||
<div class="filter_col col-md-3">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">NAME</label>
|
||||
<input type="text" class="form-control" placeholder="Account Name" name="name" {% if request.POST %} value="{{request.POST.name}}" {%endif%}/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="filter_col col-md-4">
|
||||
<div class="filter_col col-md-3">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">CITY</label>
|
||||
<input type="text" class="form-control" placeholder="City" name="city" {% if request.POST %} value="{{request.POST.city}}" {%endif%}/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="filter_col col-md-4">
|
||||
<div class="filter_col col-md-3">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">INDUSTRY</label>
|
||||
<select class="form-control" id="id_industry" name="industry" >
|
||||
|
|
@ -50,12 +53,13 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="filter_col text-center">
|
||||
<div class="form-group">
|
||||
<button class="btn btn-primary" type="submit">Search</button>
|
||||
<a href="{% url 'accounts:list' %}" class="btn btn-default">Clear</a>
|
||||
<div class="form-group buttons_row">
|
||||
<button class="btn btn-primary save" type="submit">Search</button>
|
||||
<a href="{% url 'accounts:list' %}" class="btn btn-default clear">Clear</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<br clear="all">
|
||||
</div>
|
||||
|
|
@ -65,21 +69,23 @@
|
|||
<!-- accounts list start -->
|
||||
<div class="table_container_row row marl">
|
||||
<div class="col-md-12">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading-list text-center">
|
||||
LIST OF ACCOUNTS
|
||||
<span class="pull-right total_count">{% if show_pageitems %} {% show_pageitems %}{% else %}Total Accounts {{accounts_list|length}}{% endif %}</span>
|
||||
<div class="card">
|
||||
|
||||
<div class="card-body">
|
||||
<div class="panel-heading-list card-title">
|
||||
List Of Accounts
|
||||
<span class="float-right total_count">{% if show_pageitems %} {% show_pageitems %}{% else %}Total Accounts {{accounts_list|length}}{% endif %}</span>
|
||||
</div>
|
||||
<div class="panel-content">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered table-striped table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="5%" style="text-align:center;">S.No</th>
|
||||
<th width="20%" style="text-align:center;">NAME</th>
|
||||
<th width="15%" style="text-align:center;">CITY</th>
|
||||
<th width="15%" style="text-align:center;">STATE</th>
|
||||
<th width="20%" style="text-align:center;">INDUSTRY</th>
|
||||
<th width="25%" style="text-align:center;">ACTIONS</th>
|
||||
<th width="5%" style="text-align:center;">S.no</th>
|
||||
<th width="20%" style="text-align:center;">Name</th>
|
||||
<th width="15%" style="text-align:center;">City</th>
|
||||
<th width="15%" style="text-align:center;">State</th>
|
||||
<th width="20%" style="text-align:center;">Industry</th>
|
||||
<th width="25%" style="text-align:center;">Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
|
@ -95,17 +101,18 @@
|
|||
<td>{% if each_account.billing_address.city %}{{ each_account.billing_address.city }} {% else %} Not specified {% endif %}</td>
|
||||
<td>{% if each_account.billing_address.state %}{{ each_account.billing_address.state }} {% else %} Not specified {% endif %}</td>
|
||||
<td>{% if each_account.industry %}{{ each_account.industry }} {% else %} Not specified {% endif %}</td>
|
||||
<td>
|
||||
<a href="{% url 'accounts:view_account' each_account.id %}" class="btn btn-info">VIEW</a>
|
||||
<a href="{% url 'accounts:edit_account' each_account.id %}" class="btn btn-success">EDIT</a>
|
||||
<a href="{% url 'accounts:remove_account' each_account.id %}" class="btn btn-danger remove_account">REMOVE</a>
|
||||
<td class="actions">
|
||||
<a href="{% url 'accounts:view_account' each_account.id %}" class="btn btn-info view"><i class="fas fa-eye"></i> View</a>
|
||||
<a href="{% url 'accounts:edit_account' each_account.id %}" class="btn btn-success edit"><i class="fas fa-pencil-alt"></i>Edit</a>
|
||||
<a href="{% url 'accounts:remove_account' each_account.id %}" class="btn btn-danger delete remove_account"><i class="fas fa-trash"></i>Delete</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{% ifequal accounts_list|length 0 %}
|
||||
<h4 class="text-center">No Acccount Records Found</h4>
|
||||
<h6 class="text-center">No Acccount Records Found</h6>
|
||||
{% endifequal %}
|
||||
<div class="text-center row marl">
|
||||
{% show_pages %}
|
||||
|
|
|
|||
|
|
@ -1,20 +1,24 @@
|
|||
{% extends 'base.html' %}
|
||||
{% load staticfiles %}
|
||||
{% block breadcrumb %}
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{% url 'accounts:list' %}">Accounts</a></li>
|
||||
<li class="active">Create</li>
|
||||
<li class="breadcrumb-item"><a href="{% url 'accounts:list' %}">Accounts</a></li>
|
||||
<li class="breadcrumb-item active">Create</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<form id="formid" action='' method="POST" novalidate>{% csrf_token %}
|
||||
<div class="assigned_teams ro marl">
|
||||
<div class="col-md-12">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="card-title">
|
||||
Assigned Users & Teams
|
||||
</div>
|
||||
<div class="panel-content">
|
||||
<div class="row marl">
|
||||
<div class="filter_col col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Assigned Users</label>
|
||||
|
|
@ -31,19 +35,21 @@
|
|||
</div>
|
||||
<br clear="all">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br clear="all">
|
||||
</div>
|
||||
<!-- assigned users & teams ends here -->
|
||||
<!-- overview starts here -->
|
||||
<div class="overview_form_block row marl">
|
||||
<div class="overview_form_block row marl ">
|
||||
<div class="col-md-12">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<div class="card">
|
||||
|
||||
<div class="card-body">
|
||||
<div class="card-title">
|
||||
Overview
|
||||
</div>
|
||||
<div class="panel-content">
|
||||
<div class="row marl">
|
||||
<div class="col-md-6">
|
||||
<div class="filter_col col-md-12">
|
||||
|
|
@ -120,8 +126,8 @@
|
|||
<div>
|
||||
<h6 style="color:white;">Copy Address</h6>
|
||||
</div>
|
||||
<div class="col-md-12" style="text-align:center;">
|
||||
<button type="button" id="copy_billing_btn" class="btn btn-primary">Copy Billing Address</button>
|
||||
<div class="col-md-12 buttons_row" style="text-align:center;">
|
||||
<button type="button" id="copy_billing_btn" class="btn btn-primary save">Copy Billing Address</button>
|
||||
</div>
|
||||
<div class="filter_col shipping_block col-md-12">
|
||||
<div class="form-group">
|
||||
|
|
@ -160,12 +166,12 @@
|
|||
<input type="hidden" id="save_new_form" name="savenewform">
|
||||
</div>
|
||||
<!-- overview ends here -->
|
||||
<div class="row marl buttons_row text-center">
|
||||
<div class="row marl buttons_row text-center form_btn_row">
|
||||
<button class="btn btn-default save" type="submit">Save</button>
|
||||
{% if not account_obj %}
|
||||
<button class="btn btn-success save savenew" type="submit">Save & New</button>
|
||||
<button class="btn btn-default save " type="submit">Save & New</button>
|
||||
{% endif %}
|
||||
<a href="{% url 'accounts:list' %}" class="btn btn-default">CANCEL</a>
|
||||
<a href="{% url 'accounts:list' %}" class="btn btn-default clear">CANCEL</a>
|
||||
</div>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
|
|
|||
|
|
@ -2,10 +2,12 @@
|
|||
{% load staticfiles %}
|
||||
{% block breadcrumb1 %}
|
||||
<!-- breadcrumb starts here -->
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{% url 'accounts:list' %}">Accounts</a></li>
|
||||
<li class="active">{{account_record.name}}</li>
|
||||
<li class="breadcrumb-item"><a href="{% url 'accounts:list' %}">Accounts</a></li>
|
||||
<li class="active breadcrumb-item">{{account_record.name}}</li>
|
||||
</ol>
|
||||
</nav>
|
||||
<!-- breadcrumb ends here -->
|
||||
{% endblock breadcrumb1 %}
|
||||
{% block content %}
|
||||
|
|
@ -13,13 +15,15 @@
|
|||
<div class="main_container" id="maincontainer">
|
||||
<div class="overview_form_block row marl">
|
||||
<div class="col-md-8">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading view-pad">
|
||||
<div class="card">
|
||||
|
||||
<div class="card-body" id="datashow">
|
||||
<div class="card-title">
|
||||
<h5>
|
||||
OVERVIEW
|
||||
<span class="pull-right" style="margin-top: -10px">
|
||||
<div class="dropdown">
|
||||
<button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">Actions
|
||||
Overview
|
||||
<span class="float-right" style="margin-top: 0px">
|
||||
<div class="dropdown buttons_row">
|
||||
<button class="btn btn-primary dropdown-toggle save" type="button" data-toggle="dropdown">Actions
|
||||
<span class="caret"></span></button>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="{% url 'accounts:edit_account' account_record.id %}" >Edit</a></li>
|
||||
|
|
@ -29,7 +33,6 @@
|
|||
</span>
|
||||
</h5>
|
||||
</div>
|
||||
<div class="panel-content" id="datashow">
|
||||
<div class="row marl">
|
||||
<div class="col-md-6">
|
||||
{% if account_record.name %}
|
||||
|
|
@ -140,17 +143,20 @@
|
|||
</div>
|
||||
</div>
|
||||
<!-- Comments Section starts-->
|
||||
<div class="panel-heading view-pad">
|
||||
<h5>COMMENTS</h5>
|
||||
|
||||
<div class="card-body" id="datashow">
|
||||
<div class="card-title">
|
||||
<h5>Comments</h5>
|
||||
</div>
|
||||
<div class="panel-content" id="datashow">
|
||||
<div class="row marl">
|
||||
<div class="col-md-12">
|
||||
<form id="comment_form" method="POST" enctype="multipart/form-data">{% csrf_token %}
|
||||
<div class="form-group">
|
||||
<textarea class="form-control" textarea cols="40" rows="3" id="id_comments" name="comment" placeholder="Submit Your Comments Here"></textarea><span><i id="CommentError" style="display:none; color:red"></i></span>
|
||||
</br>
|
||||
<div class="buttons_row">
|
||||
<button class="btn btn-default save" style="text-align: center;" id="comment_submit" type="submit">Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" value="{{ account_record.id }}" name="accountid">
|
||||
</form>
|
||||
|
|
@ -205,11 +211,12 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading view-pad">
|
||||
<div class="card">
|
||||
|
||||
<div class="card-body" id="datashow">
|
||||
<div class="card-title">
|
||||
<h5>Label</h5>
|
||||
</div>
|
||||
<div class="panel-content" id="datashow">
|
||||
<div class="row marl">
|
||||
<div class="filter_col col-md-12">
|
||||
<div class="form-group">
|
||||
|
|
@ -266,20 +273,22 @@
|
|||
<form method='GET' class="accountdetails_row">
|
||||
<div class="table_container_row row marl">
|
||||
<div class="col-md-8">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading-list view-pad text-center">
|
||||
CONTACTS
|
||||
<div class="card">
|
||||
|
||||
<div class="card-body">
|
||||
<div class="panel-heading-list card-title view-pad">
|
||||
Contacts
|
||||
<span class="pull-right glyphicon glyphicon-plus" data-toggle="modal" data-dismiss="modal_con" data-target="#myModal2"></span>
|
||||
</div>
|
||||
<div class="panel-content">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered table-striped table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="5%" style="text-align:center;">S.No</th>
|
||||
<th width="25%" style="text-align:center;">CONTACT NAME</th>
|
||||
<th width="20%" style="text-align:center;">PHONE</th>
|
||||
<th width="25%" style="text-align:center;">EMAIL</th>
|
||||
<th width="25%" style="text-align:center;">ACTIONS</th>
|
||||
<th width="25%" style="text-align:center;">Contact Name</th>
|
||||
<th width="20%" style="text-align:center;">Phone</th>
|
||||
<th width="25%" style="text-align:center;">Email</th>
|
||||
<th width="25%" style="text-align:center;">Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
|
@ -289,15 +298,16 @@
|
|||
<td>{{ contact.first_name }} {{ contact.last_name }}</td>
|
||||
<td>{{ contact.phone }}</td>
|
||||
<td>{{ contact.email }}</td>
|
||||
<td>
|
||||
<button type="button" class="conview btn-info" id="con_view" data-toggle="modal" data-dismiss="modal" data-target="#conViewModal_{{contact.id}}">VIEW</button>
|
||||
<button type="button" class="conedit btn-success" id="con_edit" data-toggle="modal" data-dismiss="modal" data-target="#conEditModal_{{contact.id}}">EDIT</button>
|
||||
<button type="button" class="con_remove btn-danger" id="{{ contact.id }}" data-href="{% url 'contacts:remove_contact' pk=contact.id %}">REMOVE</button>
|
||||
<td class="actions">
|
||||
<button type="button" class="btn conview btn-info" id="con_view" data-toggle="modal" data-dismiss="modal" data-target="#conViewModal_{{contact.id}}">View</button>
|
||||
<button type="button" class="btn conedit btn-success" id="con_edit" data-toggle="modal" data-dismiss="modal" data-target="#conEditModal_{{contact.id}}">Edit</button>
|
||||
<button type="button" class="btn con_remove btn-danger" id="{{ contact.id }}" data-href="{% url 'contacts:remove_contact' pk=contact.id %}">Delete</button>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br clear="all">
|
||||
|
|
@ -777,20 +787,22 @@
|
|||
<form method='GET' class="accountdetails_row">
|
||||
<div class="table_container_row row marl">
|
||||
<div class="col-md-8">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading-list view-pad text-center">
|
||||
OPPORTUNITIES
|
||||
<div class="card">
|
||||
|
||||
<div class="card-body">
|
||||
<div class="panel-heading-list card-title view-pad ">
|
||||
Opportunities
|
||||
<span class="pull-right glyphicon glyphicon-plus" data-toggle="modal" data-dismiss="modal" data-target="#myModal"></span>
|
||||
</div>
|
||||
<div class="panel-content">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered table-striped table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="5%" style="text-align:center;">S.No</th>
|
||||
<th width="30%" style="text-align:center;">NAME</th>
|
||||
<th width="20%" style="text-align:center;">STAGE</th>
|
||||
<th width="20%" style="text-align:center;">PROBABILITY</th>
|
||||
<th width="25%" style="text-align:center;">ACTIONS</th>
|
||||
<th width="30%" style="text-align:center;">Name</th>
|
||||
<th width="20%" style="text-align:center;">Stage</th>
|
||||
<th width="20%" style="text-align:center;">Probability</th>
|
||||
<th width="25%" style="text-align:center;">Actions </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
|
@ -800,16 +812,17 @@
|
|||
<td>{{opportunity.name}}</td>
|
||||
<td>{{opportunity.stage}}</td>
|
||||
<td>{{opportunity.probability}} {% if opportunity.probability %} % {% endif %}</td>
|
||||
<td>
|
||||
<button type="button" class="oppview btn-info" id="opp_view" data-toggle="modal" data-dismiss="modal1_view" data-target="#oppViewModal_{{opportunity.id}}">VIEW</button>
|
||||
<button type="button" class="oppedit btn-success" id="opp_edit" data-toggle="modal" data-dismiss="modal1_edit" data-target="#oppEditModal_{{opportunity.id}}">EDIT</button>
|
||||
<button type="button" class="opp_remove btn-danger" id="{{ opportunity.id }}" data-href="{% url 'opportunities:opp_remove' pk=opportunity.id %}">REMOVE</button>
|
||||
<td class="actions">
|
||||
<button type="button" class="btn oppview btn-info" id="opp_view" data-toggle="modal" data-dismiss="modal1_view" data-target="#oppViewModal_{{opportunity.id}}">VIEW</button>
|
||||
<button type="button" class="btn oppedit btn-success" id="opp_edit" data-toggle="modal" data-dismiss="modal1_edit" data-target="#oppEditModal_{{opportunity.id}}">EDIT</button>
|
||||
<button type="button" class="btn opp_remove btn-danger" id="{{ opportunity.id }}" data-href="{% url 'opportunities:opp_remove' pk=opportunity.id %}">REMOVE</button>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br clear="all">
|
||||
</div>
|
||||
|
|
@ -1334,20 +1347,22 @@
|
|||
<form method='GET' class="accountdetails_row">
|
||||
<div class="table_container_row row marl">
|
||||
<div class="col-md-8">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading-list view-pad text-center">
|
||||
CASES
|
||||
<div class="card">
|
||||
|
||||
<div class="card-body">
|
||||
<div class="panel-heading-list card-title view-pad ">
|
||||
Cases
|
||||
<span class="pull-right glyphicon glyphicon-plus" data-toggle="modal" data-dismiss="modal_case" data-target="#myModal3"></span>
|
||||
</div>
|
||||
<div class="panel-content">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered table-striped table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="5%" style="text-align:center;">S.No</th>
|
||||
<th width="30%" style="text-align:center;">NAME</th>
|
||||
<th width="20%" style="text-align:center;">STATUS</th>
|
||||
<th width="20%" style="text-align:center;">PRIORITY</th>
|
||||
<th width="25%" style="text-align:center;">ACTIONS</th>
|
||||
<th width="30%" style="text-align:center;">Name</th>
|
||||
<th width="20%" style="text-align:center;">Status</th>
|
||||
<th width="20%" style="text-align:center;">Priority</th>
|
||||
<th width="25%" style="text-align:center;">Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
|
@ -1357,15 +1372,16 @@
|
|||
<td>{{ case.name }}</td>
|
||||
<td>{{ case.status }}</td>
|
||||
<td>{{ case.priority }}</td>
|
||||
<td>
|
||||
<button type="button" class="caseview btn-info" id="case_view" data-toggle="modal" data-dismiss="modal" data-target="#caseViewModal_{{case.id}}">VIEW</button>
|
||||
<button type="button" class="caseedit btn-success" id="case_edit" data-toggle="modal" data-dismiss="modal" data-target="#caseEditModal_{{case.id}}">EDIT</button>
|
||||
<button type="button" class="case_remove btn-danger" id="{{ case.id }}" data-href="{% url 'cases:remove_case' case_id=case.id %}">REMOVE</button>
|
||||
<td class="actions">
|
||||
<button type="button" class="btn caseview btn-info" id="case_view" data-toggle="modal" data-dismiss="modal" data-target="#caseViewModal_{{case.id}}">VIEW</button>
|
||||
<button type="button" class="btn caseedit btn-success" id="case_edit" data-toggle="modal" data-dismiss="modal" data-target="#caseEditModal_{{case.id}}">EDIT</button>
|
||||
<button type="button" class="btn case_remove btn-danger" id="{{ case.id }}" data-href="{% url 'cases:remove_case' case_id=case.id %}">REMOVE</button>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br clear="all">
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
{% load staticfiles %}
|
||||
{% load staticfiles %}
|
||||
{% load compress %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
|
|
@ -7,15 +9,16 @@
|
|||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Micro CRM</title>
|
||||
<title>Django CRM</title>
|
||||
<!-- Bootstrap core CSS -->
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
|
||||
<link href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700" rel="stylesheet">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.47/css/bootstrap-datetimepicker.min.css"
|
||||
rel="stylesheet">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/css/bootstrap.min.css" />
|
||||
<script defer src="https://use.fontawesome.com/releases/v5.0.6/js/all.js"></script>
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.47/css/bootstrap-datetimepicker.min.css" />
|
||||
<!-- Custom styling plus plugins -->
|
||||
<link rel="stylesheet" href="{% static 'css/main.css' %}" />
|
||||
{% compress css %}
|
||||
<link href="{% static 'css/main.scss' %}" type="text/x-scss" rel="stylesheet">
|
||||
{% endcompress %}
|
||||
{% block extralinks %}{% endblock %}
|
||||
</head>
|
||||
<body class="main_body_bg_color">
|
||||
|
|
@ -39,8 +42,9 @@
|
|||
<!-- breadcrumb1 ends here -->
|
||||
<!-- assigned_teams starts here -->
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.20.1/moment-with-locales.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.13.0/umd/popper.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/js/bootstrap.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.47/js/bootstrap-datetimepicker.min.js"></script>
|
||||
<script src="{% static 'js/index.js' %}"></script>
|
||||
{% block content %}
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
<!-- heading_create starts here -->
|
||||
<div class="row marl heading_create">
|
||||
<div class="heading col-md-12">
|
||||
<div class="no-gutters row">
|
||||
<div class="col-md-6">
|
||||
<h4>Cases</h4>
|
||||
</div>
|
||||
|
|
@ -15,17 +16,19 @@
|
|||
<a href="{% url 'cases:add_case' %}"><i class="fa fa-plus"></i>Add New Case</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- heading_create ends here -->
|
||||
<!-- filter_row starts here -->
|
||||
<div class="filter_row row marl">
|
||||
<div class="col-md-12">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
</div>
|
||||
<div class="card">
|
||||
|
||||
<form id="cases_filter" method="POST" action="" >{% csrf_token %}
|
||||
<div class="panel-content">
|
||||
<div class="card-body">
|
||||
<div class="card-title">Filters</div>
|
||||
<div class="row marl">
|
||||
<div class="filter_col col-md-3">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Name</label>
|
||||
|
|
@ -67,13 +70,16 @@
|
|||
</div>
|
||||
</div>
|
||||
<input type="hidden" id="per_page_field" name="per_page">
|
||||
<div class="col-12">
|
||||
<div class="filter_col text-center">
|
||||
<div class="form-group">
|
||||
<button class="btn btn-primary" id="filter_click" type="submit">Search</button>
|
||||
<a href="{% url 'cases:list' %}" id="filter_clear" class="btn btn-default">Clear</a>
|
||||
<div class="form-group buttons_row text-center">
|
||||
<button class="btn btn-primary save" id="filter_click" type="submit">Search</button>
|
||||
<a href="{% url 'cases:list' %}" id="filter_clear" class="btn btn-default clear">Clear</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<br clear="all">
|
||||
</div>
|
||||
|
|
@ -84,12 +90,14 @@
|
|||
<!-- cases_list starts here -->
|
||||
<div class="table_container_row row marl">
|
||||
<div class="col-md-12">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading-list text-center">
|
||||
LIST OF CASES
|
||||
<span class="pull-right total_count">{% if show_pageitems %} {% show_pageitems %}{% else %}Total Cases {{ cases|length }}{% endif %}</span>
|
||||
<div class="card">
|
||||
|
||||
<div class="card-body">
|
||||
<div class="panel-heading-list card-title text-center">
|
||||
List Of Cases
|
||||
<span class="float-right total_count">{% if show_pageitems %} {% show_pageitems %}{% else %}Total Cases {{ cases|length }}{% endif %}</span>
|
||||
</div>
|
||||
<div class="panel-content">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered table-striped table-condensed" id="multiselect">
|
||||
<thead>
|
||||
<tr>
|
||||
|
|
@ -120,18 +128,19 @@
|
|||
</td>
|
||||
<td id="status_id{{case.id}}" status="{{case.status}}">{{ case.status }}</td>
|
||||
<td>{{ case.priority }}</td>
|
||||
<td>
|
||||
<a href="{% url 'cases:view_case' case.id %}" class="btn btn-info">View</a>
|
||||
<a href="{% url 'cases:edit_case' case.id %}" class="btn btn-success">Edit</a>
|
||||
<a onclick="remove_case({{case.id}}, '{% url 'cases:remove_case' case.id %}')" class="btn btn-danger">Remove</a>
|
||||
<a onclick="close_case({{case.id}}, '{% url 'cases:close_case' %}')" class="btn btn-warning">Close</a>
|
||||
<td class="actions">
|
||||
<a href="{% url 'cases:view_case' case.id %}" class="btn btn-info view"><i class="fas fa-eye"></i> View</a>
|
||||
<a href="{% url 'cases:edit_case' case.id %}" class="btn btn-success edit"><i class="fas fa-pencil-alt"></i>Edit</a>
|
||||
<a onclick="remove_case({{case.id}}, '{% url 'cases:remove_case' case.id %}')" class="btn btn-danger delete remove_account"><i class="fas fa-trash"></i>Delete</a>
|
||||
<a onclick="close_case({{case.id}}, '{% url 'cases:close_case' %}')" class="btn btn-warning"><i class="fas fa-times"></i> Close</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{% ifequal cases|length 0 %}
|
||||
<h4 class="text-center">No Cases Records Found</h4>
|
||||
<h6 class="text-center">No Cases Records Found</h6>
|
||||
{% endifequal %}
|
||||
<div class="marl row text-center">
|
||||
{% show_pages %}
|
||||
|
|
|
|||
|
|
@ -1,20 +1,25 @@
|
|||
{% extends 'base.html' %}
|
||||
{% load staticfiles %}
|
||||
{% block breadcrumb %}
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="#">Cases</a></li>
|
||||
<li class="active">Create</li>
|
||||
<li class="breadcrumb-item"><a href="{% url 'cases:list' %}">Cases</a></li>
|
||||
<li class="breadcrumb-item active">Create</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<form id="submitForm" method="POST" action="" novalidate>{% csrf_token %}
|
||||
<div class="assigned_teams row marl">
|
||||
<div class="col-md-12">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<div class="card">
|
||||
|
||||
<div class="card-body">
|
||||
<div class="card-title">
|
||||
Assigned Users & Teams
|
||||
</div>
|
||||
<div class="panel-content">
|
||||
<div class="row marl">
|
||||
<div class="filter_col col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Assigned Users</label>
|
||||
|
|
@ -27,6 +32,7 @@
|
|||
{{ case_form.teams }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br clear="all">
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -35,12 +41,13 @@
|
|||
</div>
|
||||
<div class="overview_form_block row marl">
|
||||
<div class="col-md-12">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<div class="card">
|
||||
|
||||
<div class="card-body">
|
||||
<div class="card-title" style="height:auto;">
|
||||
Overview
|
||||
</div>
|
||||
<div class="panel-content">
|
||||
<div class="row marl">
|
||||
<div class="row marl no-gutters">
|
||||
<div class="col-md-6">
|
||||
<div class="filter_col col-md-12">
|
||||
<div class="form-group">
|
||||
|
|
@ -113,12 +120,12 @@
|
|||
<br clear="all">
|
||||
<input type="hidden" id="save_new_form" name="savenewform">
|
||||
</div>
|
||||
<div class="row marl buttons_row text-center">
|
||||
<div class="row marl buttons_row text-center form_btn_row">
|
||||
<button class="btn btn-default save" type="submit">Save</button>
|
||||
{% if not case_obj %}
|
||||
<button class="btn btn-success save savenew" type="submit">Save & New</button>
|
||||
{% endif %}
|
||||
<a href="{% url 'cases:list' %}" class="btn btn-default">Cancel</a>
|
||||
<a href="{% url 'cases:list' %}" class="btn btn-default clear">Cancel</a>
|
||||
</div>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
|
|
|||
|
|
@ -5,13 +5,15 @@
|
|||
<div class="main_container" id="maincontainer">
|
||||
<div class="overview_form_block row marl">
|
||||
<div class="col-md-8">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading view-pad">
|
||||
<div class="card">
|
||||
|
||||
<div class="card-body" id="datashow">
|
||||
<div class="panel-heading view-pad card-title">
|
||||
<h5>
|
||||
OVERVIEW
|
||||
<span class="pull-right" style="margin-top: -10px">
|
||||
<div class="dropdown">
|
||||
<button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">Actions
|
||||
Overview
|
||||
<span class="float-right" style="margin-top: 0px">
|
||||
<div class="dropdown buttons_row">
|
||||
<button class="btn btn-primary dropdown-toggle save" type="button" data-toggle="dropdown">Actions
|
||||
<span class="caret"></span></button>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="{% url 'cases:edit_case' case_record.id %}" id="edit_case">Edit</a></li>
|
||||
|
|
@ -21,7 +23,6 @@
|
|||
</span>
|
||||
</h5>
|
||||
</div>
|
||||
<div class="panel-content" id="datashow">
|
||||
<div class="row marl">
|
||||
<div class="col-md-6">
|
||||
<div class="filter_col col-md-12" id="iname">
|
||||
|
|
@ -94,17 +95,20 @@
|
|||
</div>
|
||||
</div>
|
||||
<!-- Comments Section starts-->
|
||||
<div class="panel-heading view-pad">
|
||||
<h5>COMMENTS</h5>
|
||||
|
||||
<div class="card-body" id="datashow">
|
||||
<div class="panel-heading card-title view-pad">
|
||||
<h5>Comments</h5>
|
||||
</div>
|
||||
<div class="panel-content" id="datashow">
|
||||
<div class="row marl">
|
||||
<div class="col-md-12">
|
||||
<form id="comment_form" method="POST" enctype="multipart/form-data">{% csrf_token %}
|
||||
<div class="form-group">
|
||||
<textarea class="form-control" textarea cols="40" rows="3" id="id_comments" name="comment" placeholder="Submit Your Comments Here"></textarea><span><i id="CommentError" style="display:none; color:red"></i></span>
|
||||
</br>
|
||||
<div class="buttons_row">
|
||||
<button class="btn btn-default save" style="text-align: center;" id="comment_submit" type="submit">Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" value="{{case_record.id}}" name="caseid">
|
||||
</form>
|
||||
|
|
@ -159,11 +163,12 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading view-pad">
|
||||
<div class="card">
|
||||
|
||||
<div class="card-body" id="datashow">
|
||||
<div class="panel-heading card-title view-pad">
|
||||
<h5>Label</h5>
|
||||
</div>
|
||||
<div class="panel-content" id="datashow">
|
||||
<div class="row marl">
|
||||
<div class="filter_col col-md-12">
|
||||
<div class="form-group">
|
||||
|
|
@ -213,19 +218,30 @@
|
|||
</div>
|
||||
</div>
|
||||
<!-- Activities block Starts here-->
|
||||
<div class="panel panel-default panel-activities" data-name="activities">
|
||||
<div class="panel-heading">
|
||||
<h4 class="panel-title">
|
||||
<div class="card panel-activities" data-name="activities" style="margin-top:15px;">
|
||||
|
||||
<div class="card-body" data-name="activities">
|
||||
<div class="card-title" style="height:auto;">
|
||||
<span class="panel-title">
|
||||
<span class="action" data-panel="activities" data-action="refresh" title="Click to refresh" style="cursor: pointer;"> Activities </span>
|
||||
</h4>
|
||||
</span>
|
||||
</div>
|
||||
<div class="panel-body" data-name="activities">
|
||||
<div class="btn-group button-container nav nav-tabs">
|
||||
<a data-toggle="tab" href="#show_meets"><button class="btn btn-default all scope-switcher" data-scope="Meeting">Meetings</button></a>
|
||||
<a data-toggle="tab" href="#tasks_list"><button class="btn btn-default all scope-switcher" data-scope="Task">Tasks</button></a>
|
||||
<a data-toggle="tab" href="#calls_list"><button class="btn btn-default all scope-switcher" data-scope="Call">Calls</button></a>
|
||||
</div>
|
||||
<div class="list-container">
|
||||
<div class="col-12">
|
||||
|
||||
<ul class="nav nav-tabs" id="myTab" role="tablist">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" id="show-meets" data-toggle="tab" href="#show_meets" role="tab" aria-controls="home" aria-selected="true">Meetings</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="tasks-list" data-toggle="tab" href="#tasks_list" role="tab" aria-controls="profile" aria-selected="false">Tasks</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="calls-list" data-toggle="tab" href="#calls_list" role="tab" aria-controls="contact" aria-selected="false">Calls</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<div class="list-container case-list-container">
|
||||
<div class="list list-expanded">
|
||||
<div class="tab-content">
|
||||
<div id="show_meets" class="tab-pane fade in active">
|
||||
|
|
@ -368,22 +384,35 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--Activities block ends here-->
|
||||
<!-- History block starts here-->
|
||||
<div class="panel panel-default panel-activities" data-name="activities">
|
||||
<div class="panel-heading">
|
||||
<h4 class="panel-title">
|
||||
<div class="card panel-default panel-activities" data-name="activities" style="margin-top:15px;">
|
||||
|
||||
<div class="card-body" data-name="activities">
|
||||
<div class="card-title" style="height:auto;">
|
||||
<span class="panel-title">
|
||||
<span class="action" data-panel="activities" data-action="refresh" title="Click to refresh" style="cursor: pointer;"> History </span>
|
||||
</h4>
|
||||
</span>
|
||||
</div>
|
||||
<div class="panel-body" data-name="activities">
|
||||
<div class="btn-group button-container nav nav-tabs">
|
||||
<a data-toggle="tab" href="#show_meets_completed"><button class="btn btn-default all scope-switcher" data-scope="Meeting">Meetings</button></a>
|
||||
<a data-toggle="tab" href="#tasks_list_completed"><button class="btn btn-default all scope-switcher" data-scope="Task">Tasks</button></a>
|
||||
<a data-toggle="tab" href="#calls_list_completed"><button class="btn btn-default all scope-switcher" data-scope="Call">Calls</button></a>
|
||||
</div>
|
||||
<div class="list-container">
|
||||
<div class="col-12">
|
||||
|
||||
<ul class="nav nav-tabs" id="myTab" role="tablist">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" id="show-meets-completed" data-toggle="tab" href="#show_meets_completed" role="tab" aria-controls="home" aria-selected="true">Meetings</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="tasks-list-completed" data-toggle="tab" href="#tasks_list_completed" role="tab" aria-controls="profile" aria-selected="false">Tasks</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="calls-list-completed" data-toggle="tab" href="#calls_list_completed" role="tab" aria-controls="contact" aria-selected="false">Calls</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
<div class="list-container case-list-containers">
|
||||
<div class="list list-expanded">
|
||||
<div class="tab-content">
|
||||
<div id="show_meets_completed" class="tab-pane fade in active">
|
||||
|
|
@ -522,6 +551,7 @@
|
|||
<div class="show-more hide">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
<!-- heading_create starts here -->
|
||||
<div class="row marl heading_create">
|
||||
<div class="heading col-md-12">
|
||||
<div class="no-gutters row">
|
||||
<div class="col-md-6">
|
||||
<h4>Contacts</h4>
|
||||
</div>
|
||||
|
|
@ -15,18 +16,21 @@
|
|||
<a href="{% url 'contacts:add_contact'%}"><i class="fa fa-plus"></i> Add New Contact</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- heading_create ends here -->
|
||||
<!-- filter_row starts here -->
|
||||
<div class="filter_row row marl">
|
||||
<div class="col-md-12">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
</div>
|
||||
<div class="card">
|
||||
|
||||
<form id="contacts_filter" action="" method="POST">{%csrf_token%}
|
||||
<div class="panel-content text-center">
|
||||
<div class="filter_col col-md-4">
|
||||
|
||||
<div class="card-body">
|
||||
<div class="card-title">Filters</div>
|
||||
<div class="row marl">
|
||||
<div class="filter_col col-md-3">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">ACCOUNTS</label>
|
||||
<select class="form-control" id="id_account" name="account">
|
||||
|
|
@ -37,25 +41,26 @@
|
|||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="filter_col col-md-4">
|
||||
<div class="filter_col col-md-3">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">NAME</label>
|
||||
<input type="text" class="form-control" placeholder="First Name" name="first_name" value="{{request.POST.first_name}}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="filter_col col-md-4">
|
||||
<div class="filter_col col-md-3">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">CITY</label>
|
||||
<input type="text" class="form-control" placeholder="City" name="city" value="{{request.POST.city}}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="filter_col text-center">
|
||||
<div class="form-group">
|
||||
<button class="btn btn-primary" type="submit">Search</button>
|
||||
<a href="{% url 'contacts:list' %}" class="btn btn-default">Clear</a>
|
||||
<div class="form-group buttons_row">
|
||||
<button class="btn btn-primary save" type="submit">Search</button>
|
||||
<a href="{% url 'contacts:list' %}" class="btn btn-default clear">Clear</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<br clear="all">
|
||||
</div>
|
||||
|
|
@ -65,21 +70,23 @@
|
|||
<!-- contacts list start -->
|
||||
<div class="table_container_row row marl">
|
||||
<div class="col-md-12">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading-list text-center">
|
||||
LIST OF CONTACTS
|
||||
<div class="card">
|
||||
|
||||
<div class="card-body">
|
||||
<div class="card-title">
|
||||
List of Contacts
|
||||
<span class="pull-right total_count">{% if show_pageitems %} {% show_pageitems %}{% else %}Total Contacts {{contact_obj_list|length}}{% endif %}</span>
|
||||
</div>
|
||||
<div class="panel-content">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered table-striped table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="5%" style="text-align:center;">S.No</th>
|
||||
<th width="20%" style="text-align:center;">NAME</th>
|
||||
<th width="20%" style="text-align:center;">ACCOUNT</th>
|
||||
<th width="15%" style="text-align:center;">CITY</th>
|
||||
<th width="15%" style="text-align:center;">STATE</th>
|
||||
<th width="25%" style="text-align:center;">ACTIONS</th>
|
||||
<th width="5%" style="text-align:center;">S.no</th>
|
||||
<th width="20%" style="text-align:center;">Name</th>
|
||||
<th width="15%" style="text-align:center;">City</th>
|
||||
<th width="15%" style="text-align:center;">State</th>
|
||||
<th width="20%" style="text-align:center;">Industry</th>
|
||||
<th width="25%" style="text-align:center;">Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
|
@ -113,17 +120,18 @@
|
|||
Not Specified
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
<a href="{% url 'contacts:view_contact' contact.id %}" class="btn btn-info">View</a>
|
||||
<a href="{% url 'contacts:edit_contact' contact.id%}" class="btn btn-success">Edit</a>
|
||||
<a href="{% url 'contacts:remove_contact' contact.id %}" class="btn btn-danger delete">Delete</a>
|
||||
<td class="actions">
|
||||
<a href="{% url 'contacts:view_contact' contact.id %}" class="btn btn-info view"><i class="fas fa-eye"></i> View</a>
|
||||
<a href="{% url 'contacts:edit_contact' contact.id%}" class="btn btn-success edit"><i class="fas fa-pencil-alt"></i>Edit</a>
|
||||
<a href="{% url 'contacts:remove_contact' contact.id %}" class="btn btn-danger delete remove_account"><i class="fas fa-trash"></i>Delete</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor%}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{%ifequal contact_obj_list|length 0 %}
|
||||
<h4 class="text-center">No Contact Records Found</h4>
|
||||
<h6 class="text-center">No Contact Records Found</h6>
|
||||
{%endifequal%}
|
||||
<div class="marl row text-center">
|
||||
{% show_pages %}
|
||||
|
|
|
|||
|
|
@ -1,20 +1,24 @@
|
|||
{% extends 'base.html' %}
|
||||
{% load staticfiles %}
|
||||
{% block breadcrumb %}
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{% url 'contacts:list' %}">Contacts</a></li>
|
||||
<li class="active">Create</li>
|
||||
<li class="breadcrumb-item"><a href="{% url 'contacts:list' %}">Contacts</a></li>
|
||||
<li class="breadcrumb-item active">Create</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<form id="add_form" method="POST" action='' novalidate>{%csrf_token%}
|
||||
<div class="assigned_teams row marl">
|
||||
<div class="col-md-12">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="card-title">
|
||||
Assigned Users & Teams
|
||||
</div>
|
||||
<div class="panel-content">
|
||||
<div class="row marl">
|
||||
<div class="filter_col col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Assigned Users</label>
|
||||
|
|
@ -31,18 +35,20 @@
|
|||
</div>
|
||||
<br clear="all">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br clear="all">
|
||||
</div>
|
||||
<div class="overview_form_block row marl">
|
||||
<div class="col-md-12">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<div class="card">
|
||||
|
||||
<div class="card-body">
|
||||
<div class="card-title">
|
||||
Overview
|
||||
</div>
|
||||
<div class="panel-content">
|
||||
<div class="row marl">
|
||||
<div class="row marl no-gutters">
|
||||
<div class="col-md-6">
|
||||
<div class="filter_col col-md-12">
|
||||
<div class="form-group">
|
||||
|
|
@ -124,12 +130,12 @@
|
|||
</div>
|
||||
<input type="hidden" id="save_new_form" name="savenewform">
|
||||
</div>
|
||||
<div class="row marl buttons_row text-center">
|
||||
<div class="row marl buttons_row text-center form_btn_row">
|
||||
<button class="btn btn-default save" type="submit">Save</button>
|
||||
{% if not contact_obj %}
|
||||
<button class="btn btn-success save savenew" type="submit">Save & New</button>
|
||||
{% endif %}
|
||||
<a href="{% url 'contacts:list' %}" class="btn btn-default" id="create_contact_cancel">Cancel</a>
|
||||
<a href="{% url 'contacts:list' %}" class="btn btn-default clear" id="create_contact_cancel">Cancel</a>
|
||||
</div>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
|
|
|||
|
|
@ -1,23 +1,27 @@
|
|||
{% extends 'base.html' %}
|
||||
{% load staticfiles %}
|
||||
{% block breadcrumb %}
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{% url 'contacts:list' %}">Contacts</a></li>
|
||||
<li class="active">view</li>
|
||||
<li class="breadcrumb-item"> <a href="{% url 'contacts:list' %}">Contacts</a></li>
|
||||
<li class="breadcrumb-item active">view</li>
|
||||
</ol>
|
||||
</nav>
|
||||
{%endblock%}
|
||||
{%block content%}
|
||||
<!-- CONTACTS VIEW STARTS -->
|
||||
<div class="main_container" id="maincontainer">
|
||||
<div class="overview_form_block row marl">
|
||||
<div class="col-md-8">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading view-pad">
|
||||
<div class="card">
|
||||
|
||||
<div class="card-body" id="datashow">
|
||||
<div class="panel-heading card-title view-pad">
|
||||
<h5>
|
||||
OVERVIEW
|
||||
<span class="pull-right" style="margin-top: -10px">
|
||||
<div class="dropdown">
|
||||
<button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">Actions
|
||||
overview
|
||||
<span class="float-right" style="margin-top: 0px">
|
||||
<div class="dropdown buttons_row">
|
||||
<button class="btn btn-primary dropdown-toggle save" type="button" data-toggle="dropdown">Actions
|
||||
<span class="caret"></span></button>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="{% url 'contacts:edit_contact' contact_record.id %}">Edit</a></li>
|
||||
|
|
@ -27,7 +31,6 @@
|
|||
</span>
|
||||
</h5>
|
||||
</div>
|
||||
<div class="panel-content" id="datashow">
|
||||
<div class="row marl">
|
||||
<div class="col-md-6">
|
||||
<div class="filter_col col-md-12" id="iname">
|
||||
|
|
@ -95,17 +98,20 @@
|
|||
</div>
|
||||
</div>
|
||||
<!-- Comments Section starts-->
|
||||
<div class="panel-heading view-pad">
|
||||
<h5>COMMENTS</h5>
|
||||
|
||||
<div class="card-body" id="datashow">
|
||||
<div class="card-title view-pad">
|
||||
<h5>Comments</h5>
|
||||
</div>
|
||||
<div class="panel-content" id="datashow">
|
||||
<div class="row marl">
|
||||
<div class="col-md-12">
|
||||
<form id="comment_form" method="POST" enctype="multipart/form-data">{% csrf_token %}
|
||||
<div class="form-group">
|
||||
<textarea class="form-control" textarea cols="40" rows="3" id="id_comments" name="comment" placeholder="Submit Your Comments Here"></textarea><span><i id="CommentError" style="display:none; color:red"></i></span>
|
||||
</br>
|
||||
<div class="buttons_row">
|
||||
<button class="btn btn-default save" style="text-align: center;" id="comment_submit" type="submit">Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" value="{{contact_record.id}}" name="contactid">
|
||||
</form>
|
||||
|
|
@ -160,11 +166,12 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading view-pad">
|
||||
<div class="card">
|
||||
|
||||
<div class="card-body" id="datashow">
|
||||
<div class="panel-heading card-title view-pad">
|
||||
<h5>Label</h5>
|
||||
</div>
|
||||
<div class="panel-content" id="datashow">
|
||||
<div class="row marl">
|
||||
<div class="filter_col col-md-12">
|
||||
<div class="form-group">
|
||||
|
|
|
|||
|
|
@ -1,20 +1,25 @@
|
|||
{% extends 'base.html' %}
|
||||
{% load staticfiles %}
|
||||
{% block breadcrumb %}
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{% url 'leads:list' %}">Leads</a></li>
|
||||
<li class="active">Create</li>
|
||||
<li class="breadcrumb-item"><a href="{% url 'leads:list' %}">Leads</a></li>
|
||||
<li class="breadcrumb-item active">Create</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
{% endblock %}
|
||||
{%block content%}
|
||||
<form id="add_form" method="POST" action="" novalidate>{%csrf_token%}
|
||||
<div class="assigned_teams row marl">
|
||||
<div class="col-md-12">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<div class="card">
|
||||
|
||||
<div class="card-body">
|
||||
<div class="card-title">
|
||||
Assigned Users & Teams
|
||||
</div>
|
||||
<div class="panel-content">
|
||||
<div class="row marl">
|
||||
<div class="filter_col col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Assigned Users</label>
|
||||
|
|
@ -29,6 +34,7 @@
|
|||
{{ lead_form.teams.errors }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br clear="all">
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -37,12 +43,13 @@
|
|||
</div>
|
||||
<div class="overview_form_block row marl">
|
||||
<div class="col-md-12">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<div class="card">
|
||||
|
||||
<div class="card-body">
|
||||
<div class="card-title">
|
||||
Overview
|
||||
</div>
|
||||
<div class="panel-content">
|
||||
<div class="row marl">
|
||||
<div class="row marl no-gutters">
|
||||
<div class="col-md-6">
|
||||
<div class="filter_col col-md-12">
|
||||
<div class="form-group">
|
||||
|
|
@ -87,6 +94,13 @@
|
|||
{{ lead_form.email.errors }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="filter_col col-md-12">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Website</label>
|
||||
{{ lead_form.website }}
|
||||
{{ lead_form.website.errors }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="filter_col col-md-12">
|
||||
|
|
@ -130,13 +144,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="filter_col col-md-12">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Website</label>
|
||||
{{ lead_form.website }}
|
||||
{{ lead_form.website.errors }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="filter_col col-md-12">
|
||||
<div class="form-group col-md-12">
|
||||
|
|
@ -152,12 +160,12 @@
|
|||
</div>
|
||||
<input type="hidden" id="save_new_form" name="savenewform">
|
||||
</div>
|
||||
<div class="row marl buttons_row text-center">
|
||||
<div class="row marl buttons_row text-center form_btn_row">
|
||||
<button class="btn btn-default save" type="submit">Save</button>
|
||||
{% if not lead_obj %}
|
||||
<button class="btn btn-success save savenew" type="submit">Save & New</button>
|
||||
{% endif %}
|
||||
<a href="{% url 'leads:list' %}" class="btn btn-default" id="create_lead_cancel">Cancel</a>
|
||||
<a href="{% url 'leads:list' %}" class="btn btn-default clear" id="create_lead_cancel">Cancel</a>
|
||||
</div>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
<!-- heading_create starts here -->
|
||||
<div class="row marl heading_create">
|
||||
<div class="heading col-md-12">
|
||||
<div class="no-gutters row">
|
||||
<div class="col-md-6">
|
||||
<h4>Leads</h4>
|
||||
</div>
|
||||
|
|
@ -14,6 +15,7 @@
|
|||
<div class="create_new text-right">
|
||||
<a href="{% url 'leads:add_lead'%}"><i class="fa fa-plus"></i> Add New Lead</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -21,24 +23,25 @@
|
|||
<!-- filter_row starts here -->
|
||||
<div class="filter_row row marl">
|
||||
<div class="col-md-12">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
</div>
|
||||
<div class="card">
|
||||
|
||||
<form id="leads_filter" action="" method="POST">{%csrf_token%}
|
||||
<div class="panel-content text-center">
|
||||
<div class="filter_col col-md-4">
|
||||
<div class="card-body ">
|
||||
<div class="card-title">Filters</div>
|
||||
<div class="row marl">
|
||||
<div class="filter_col col-md-3">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">First Name</label>
|
||||
<input type="text" class="form-control" placeholder="First Name" name="first_name" value="{{request.POST.first_name}}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="filter_col col-md-4">
|
||||
<div class="filter_col col-md-3">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Last Name</label>
|
||||
<input type="text" class="form-control" placeholder="Last Name" name="last_name" value="{{request.POST.last_name}}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="filter_col col-md-4">
|
||||
<div class="filter_col col-md-3">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Lead Status</label>
|
||||
<select class="form-control" id="id_status" name="status" >
|
||||
|
|
@ -49,12 +52,13 @@
|
|||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="filter_col text-center">
|
||||
<div class="form-group">
|
||||
<button class="btn btn-primary" type="submit">Search</button>
|
||||
<a href="{% url 'leads:list' %}" class="btn btn-default">Clear</a>
|
||||
<div class="filter_col col-3">
|
||||
<div class="form-group buttons_row">
|
||||
<button class="btn btn-primary save" type="submit">Search</button>
|
||||
<a href="{% url 'leads:list' %}" class="btn btn-default clear">Clear</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<br clear="all">
|
||||
|
|
@ -65,22 +69,25 @@
|
|||
<!-- leads list start-->
|
||||
<div class="table_container_row row marl">
|
||||
<div class="col-md-12">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading-list text-center">
|
||||
<div class="card">
|
||||
|
||||
<div class="card-body">
|
||||
<div class="card-title">
|
||||
LIST OF LEADS
|
||||
<span class="pull-right total_count">{% if show_pageitems %} {% show_pageitems %}{% else %}Total Leads {{ lead_obj|length }}{% endif %}</span>
|
||||
</div>
|
||||
<div class="panel-content">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered table-striped table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="5%" style="text-align:center;">S.No</th>
|
||||
<th width="20%" style="text-align:center;">NAME</th>
|
||||
<th width="15%" style="text-align:center;">STATUS</th>
|
||||
<th width="20%" style="text-align:center;">ASSIGNED USER</th>
|
||||
<th width="15%" style="text-align:center;">CREATED ON</th>
|
||||
<th width="25%" style="text-align:center;">ACTIONS</th>
|
||||
<tr>
|
||||
<th width="5%" style="text-align:center;">S.no</th>
|
||||
<th width="20%" style="text-align:center;">Name</th>
|
||||
<th width="15%" style="text-align:center;">Status</th>
|
||||
<th width="15%" style="text-align:center;">Assigned User</th>
|
||||
<th width="20%" style="text-align:center;">Created On</th>
|
||||
<th width="25%" style="text-align:center;">Actions</th>
|
||||
</tr>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
{% if per_page %}
|
||||
|
|
@ -105,17 +112,18 @@
|
|||
{% endwith %}
|
||||
</td>
|
||||
<td>{{ lead.created_on }}</td>
|
||||
<td>
|
||||
<a href="{% url 'leads:view_lead' lead.id %}" class="btn btn-info">View</a>
|
||||
<a href="{% url 'leads:edit_lead' lead.id %}" class="btn btn-success">Edit</a>
|
||||
<a href="{% url 'leads:remove_lead' lead.id %}" class="btn btn-danger">Delete</a>
|
||||
<td class="actions">
|
||||
<a href="{% url 'leads:view_lead' lead.id %}" class="btn btn-info view"><i class="fas fa-eye"></i> View</a>
|
||||
<a href="{% url 'leads:edit_lead' lead.id %}" class="btn btn-success edit"><i class="fas fa-pencil-alt"></i>Edit</a>
|
||||
<a href="{% url 'leads:remove_lead' lead.id %}" class="btn btn-danger delete remove_account"><i class="fas fa-trash"></i>Delete</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{%ifequal lead_obj|length 0%}
|
||||
<h4 class="text-center">No Lead Records Found</h4>
|
||||
<h6 class="text-center">No Lead Records Found</h6>
|
||||
{%endifequal%}
|
||||
<div class="marl row text-center">
|
||||
{% show_pages %}
|
||||
|
|
|
|||
|
|
@ -1,22 +1,27 @@
|
|||
{% extends 'base.html' %}
|
||||
{% load staticfiles %}
|
||||
{% block breadcrumb %}
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{% url 'leads:list' %}">Leads</a></li>
|
||||
<li class="active">View</li>
|
||||
</ol>
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item"><a href="{% url 'leads:list' %}">Leads</a></li>
|
||||
<li class="breadcrumb-item active">View</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
{%endblock%}
|
||||
{% block content %}
|
||||
<div class="main_container" id="maincontainer">
|
||||
<div class="overview_form_block row marl">
|
||||
<div class="col-md-8">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading view-pad">
|
||||
<div class="card">
|
||||
|
||||
<div class="card-body" id="datashow">
|
||||
<div class="card-title">
|
||||
<h5>
|
||||
OVERVIEW
|
||||
<span class="pull-right" style="margin-top: -10px">
|
||||
<div class="dropdown">
|
||||
<button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">Actions
|
||||
Overview
|
||||
<span class="float-right" style="margin-top: 0px">
|
||||
<div class="dropdown buttons_row">
|
||||
<button class="btn btn-primary dropdown-toggle save" type="button" data-toggle="dropdown">Actions
|
||||
<span class="caret"></span></button>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="{% url 'leads:edit_lead' lead_record.id %}" >Edit</a></li>
|
||||
|
|
@ -27,7 +32,6 @@
|
|||
</span>
|
||||
</h5>
|
||||
</div>
|
||||
<div class="panel-content" id="datashow">
|
||||
<div class="row marl">
|
||||
<div class="col-md-6">
|
||||
<div class="filter_col col-md-12" id="iname">
|
||||
|
|
@ -129,17 +133,20 @@
|
|||
</div>
|
||||
</div>
|
||||
<!-- Comments Section starts-->
|
||||
<div class="panel-heading view-pad">
|
||||
<h5>COMMENTS</h5>
|
||||
|
||||
<div class="card-body mar-top" id="datashow">
|
||||
<div class="card-title view-pad">
|
||||
<h5>Comments </h5>
|
||||
</div>
|
||||
<div class="panel-content" id="datashow">
|
||||
<div class="row marl">
|
||||
<div class="col-md-12">
|
||||
<form id="comment_form" method="POST" enctype="multipart/form-data">{% csrf_token %}
|
||||
<div class="form-group">
|
||||
<div class="form-group ">
|
||||
<textarea class="form-control" textarea cols="40" rows="3" id="id_comments" name="comment" placeholder="Submit Your Comments Here"></textarea><span><i id="CommentError" style="display:none; color:red"></i></span>
|
||||
</br>
|
||||
<div class="buttons_row">
|
||||
<button class="btn btn-default save" style="text-align: center;" id="comment_submit">Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" value="{{lead_record.id}}" name="leadid">
|
||||
</form>
|
||||
|
|
@ -195,11 +202,12 @@
|
|||
</div>
|
||||
<tr id="meeting{{ meeting.id }}">
|
||||
<div class="col-md-4">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading view-pad">
|
||||
<div class="card">
|
||||
|
||||
<div class="card-body" id="datashow">
|
||||
<div class="card-title">
|
||||
<h5>Label</h5>
|
||||
</div>
|
||||
<div class="panel-content" id="datashow">
|
||||
<div class="row marl">
|
||||
<div class="filter_col col-md-12">
|
||||
<div class="form-group">
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
{% load staticfiles %}
|
||||
{% load compress %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
|
|
@ -7,20 +9,22 @@
|
|||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>CRM Login</title>
|
||||
<title>Django CRM</title>
|
||||
<!-- Bootstrap core CSS -->
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"
|
||||
integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
|
||||
<link href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700" rel="stylesheet">
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/css/bootstrap.min.css" />
|
||||
<script defer src="https://use.fontawesome.com/releases/v5.0.6/js/all.js"></script>
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.47/css/bootstrap-datetimepicker.min.css" />
|
||||
<!-- Custom styling plus plugins -->
|
||||
<link href="{% static 'css/main.css' %}" rel="stylesheet">
|
||||
<!-- <link href="css/main.css" rel="stylesheet"> -->
|
||||
{% compress css %}
|
||||
<link href="{% static 'css/main.scss' %}" type="text/x-scss" rel="stylesheet">
|
||||
{% endcompress %}
|
||||
{% block extralinks %}{% endblock %}
|
||||
</head>
|
||||
<body class="login_register_body">
|
||||
<div class="container">
|
||||
<div class="row marl login_row">
|
||||
<div class="col-md-offset-4 col-md-4 col-md-offset-4">
|
||||
<div class="row marl justify-content-center login_row">
|
||||
<div class="col-md-4 col-lg-4 col-xl-4">
|
||||
<div class="login_block">
|
||||
<div class="login_form_block">
|
||||
<div class="welcome">Login to your crm account</div>
|
||||
|
|
@ -44,8 +48,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<!--<script src="js/jquery.min.js"></script>-->
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"
|
||||
integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS"
|
||||
crossorigin="anonymous"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/js/bootstrap.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -1,30 +1,24 @@
|
|||
{% load static %}
|
||||
<nav class="navbar navbar-default navbar-fixed-top">
|
||||
<div class="container-fluid">
|
||||
<!-- Brand and toggle get grouped for better mobile display -->
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" id="home" href="/">Micro Crm</a>
|
||||
</div>
|
||||
<!-- Collect the nav links, forms, and other content for toggling -->
|
||||
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
||||
<ul class="nav navbar-nav">
|
||||
<li><a href="{% url 'common:users_list' %}">USERS</a></li>
|
||||
<li><a href="{% url 'accounts:list' %}">ACCOUNTS</a></li>
|
||||
<li><a href="{% url 'contacts:list' %}">CONTACTS</a></li>
|
||||
<li><a href="{% url 'leads:list' %}">LEADS</a></li>
|
||||
<li><a href="{% url 'opportunities:list' %}">OPPORTUNITY</a></li>
|
||||
<li><a href="{% url 'cases:list' %}">CASES</a></li>
|
||||
<nav class="navbar navbar-expand-lg navbar-dark fixed-top">
|
||||
<a class="navbar-brand" href="#">Django CRM</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav mr-auto">
|
||||
<li class="nav-item"><a class="nav-link" href="{% url 'common:users_list' %}">Users</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="{% url 'accounts:list' %}">Accounts</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="{% url 'contacts:list' %}">Contacts</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="{% url 'leads:list' %}">Leads</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="{% url 'opportunities:list' %}">Opportunities</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="{% url 'cases:list' %}">Cases</a></li>
|
||||
</ul>
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li class="dropdown">
|
||||
{% with request.profile as profile %}
|
||||
<a href="#" class="dropdown-toggle abcd" data-toggle="dropdown" role="button" aria-haspopup="true"
|
||||
|
||||
<ul class="navbar-nav navbar-right my-2 my-lg-0">
|
||||
<li class="nav-item dropdown">
|
||||
{% with request.profile as profile %}
|
||||
<a href="#" class="dropdown-toggle abcd nav-link" data-toggle="dropdown" role="button" aria-haspopup="true"
|
||||
aria-expanded="false" >
|
||||
{% if not profile.profile_pic %}
|
||||
<img src="{% static 'images/user.png' %}" alt="Micro profile pic">
|
||||
|
|
@ -33,20 +27,12 @@
|
|||
{% endif %}
|
||||
<b class="caret"></b></a>
|
||||
{% endwith %}
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="#">Profile</a></li>
|
||||
<li><a href="#">Change Password</a></li>
|
||||
<li role="separator" class="divider"></li>
|
||||
<li><a href="{% url 'logout' %}">
|
||||
<span class="glyphicon glyphicon-log-out"></span>
|
||||
Logout
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- /.navbar-collapse -->
|
||||
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
|
||||
<a class="dropdown-item" href="#">Profile</a>
|
||||
<a class="dropdown-item" href="#">Change Password</a>
|
||||
<a class="dropdown-item" href="{% url 'logout' %}"><i class="fas fa-sign-out-alt"></i> Logout</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- /.container-fluid -->
|
||||
</nav>
|
||||
|
|
|
|||
|
|
@ -1,20 +1,25 @@
|
|||
{% extends 'base.html' %}
|
||||
{% load staticfiles %}
|
||||
{% block breadcrumb %}
|
||||
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{% url 'opportunities:list' %}">Opportunities</a></li>
|
||||
<li class="active">Create</li>
|
||||
<li class="breadcrumb-item"><a href="{% url 'opportunities:list' %}">Opportunities</a></li>
|
||||
<li class="breadcrumb-item active">Create</li>
|
||||
</ol>
|
||||
</nav>
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<form class= "form_user" method="POST" action="" novalidate>{% csrf_token %}
|
||||
<div class="assigned_teams row marl">
|
||||
<div class="col-md-12">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<div class="card">
|
||||
|
||||
<div class="card-body">
|
||||
<div class="card-title">
|
||||
Assigned Users & Teams
|
||||
</div>
|
||||
<div class="panel-content">
|
||||
<div class="row marl">
|
||||
<div class="filter_col col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Assigned Users</label>
|
||||
|
|
@ -27,6 +32,7 @@
|
|||
{{ opportunity_form.teams }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br clear="all">
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -35,12 +41,13 @@
|
|||
</div>
|
||||
<div class="overview_form_block row marl">
|
||||
<div class="col-md-12">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<div class="card">
|
||||
|
||||
<div class="card-body">
|
||||
<div class="card-title" style="height:auto;">
|
||||
Overview
|
||||
</div>
|
||||
<div class="panel-content">
|
||||
<div class="row marl">
|
||||
<div class="row marl no-gutters">
|
||||
<div class="col-md-6">
|
||||
<div class="filter_col col-md-12">
|
||||
<div class="form-group">
|
||||
|
|
@ -122,12 +129,12 @@
|
|||
<input type="hidden" id="save_new_form" name="savenewform">
|
||||
</div>
|
||||
<!-- overview ends here -->
|
||||
<div class="row marl buttons_row text-center">
|
||||
<div class="row marl buttons_row text-center form_btn_row">
|
||||
<button class=" btn btn-default save" type="submit" id="saveform">Save</button>
|
||||
{% if not opportunity_obj %}
|
||||
<button class="btn btn-success save savenew" type="submit">Save & New</button>
|
||||
{% endif %}
|
||||
<a href="{% url 'opportunities:list' %}" class="btn btn-default">Cancel</a>
|
||||
<a href="{% url 'opportunities:list' %}" class="btn btn-default clear">Cancel</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
<!-- heading_create starts here -->
|
||||
<div class="row marl heading_create">
|
||||
<div class="heading col-md-12">
|
||||
<div class="row marl no-gutters">
|
||||
<div class="col-md-6">
|
||||
<h4>Opportunities</h4>
|
||||
</div>
|
||||
|
|
@ -14,6 +15,7 @@
|
|||
<div class="create_new text-right">
|
||||
<a href="{% url 'opportunities:save' %}"><i class="fa fa-plus"></i> Add New Opportunity</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -21,11 +23,12 @@
|
|||
<!-- filter_row starts here -->
|
||||
<div class="filter_row row marl">
|
||||
<div class="col-md-12">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
</div>
|
||||
<div class="card">
|
||||
|
||||
<form id="opportunity_filter" method="POST" action="">{% csrf_token %}
|
||||
<div class="panel-content text-center">
|
||||
<div class="card-body ">
|
||||
<div class="card-title">Filters</div>
|
||||
<div class="row marl">
|
||||
<div class="filter_col col-md-3">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Name</label>
|
||||
|
|
@ -65,13 +68,14 @@
|
|||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="filter_col text-center">
|
||||
<div class="form-group">
|
||||
<button class="btn btn-primary" type="submit">Search</button>
|
||||
<a href="{% url 'opportunities:list' %}" class="btn btn-default">Clear</a>
|
||||
<div class="filter_col text-center col-12">
|
||||
<div class="form-group buttons_row">
|
||||
<button class="btn btn-primary save" type="submit">Search</button>
|
||||
<a href="{% url 'opportunities:list' %}" class="btn btn-default clear">Clear</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<br clear="all">
|
||||
</div>
|
||||
|
|
@ -81,12 +85,14 @@
|
|||
<!-- opportunities list start-->
|
||||
<div class="table_container_row row marl">
|
||||
<div class="col-md-12">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading-list text-center">
|
||||
LIST OF OPPORTUNITIES
|
||||
<span class="pull-right total_count">{% if show_pageitems %} {% show_pageitems %}{% else %}Total Opportunities {{ opportunity_list|length }}{% endif %}</span>
|
||||
<div class="card">
|
||||
|
||||
<div class="card-body">
|
||||
<div class="panel-heading-list card-title ">
|
||||
List of opportunities
|
||||
<span class="float-right total_count">{% if show_pageitems %} {% show_pageitems %}{% else %}Total Opportunities {{ opportunity_list|length }}{% endif %}</span>
|
||||
</div>
|
||||
<div class="panel-content">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered table-striped table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
|
|
@ -129,22 +135,24 @@
|
|||
</td>
|
||||
<td>{% if opportunity.stage %}{{ opportunity.stage }}{% else %}Not Specified {% endif %}</td>
|
||||
<td>{% if opportunity.lead_source %}{{ opportunity.lead_source }}{% else %}Not Specified{% endif %}</td>
|
||||
<td>
|
||||
<a href="{% url 'opportunities:opp_view' opportunity.id %}" class="btn btn-info ">View</a>
|
||||
<a href="{% url 'opportunities:opp_edit' opportunity.id %}" class="btn btn-success ">Edit</a>
|
||||
<a href="{% url 'opportunities:opp_remove' opportunity.id %}" class="btn btn-danger delete">Delete</a>
|
||||
<td class="actions">
|
||||
<a href="{% url 'opportunities:opp_view' opportunity.id %}" class="btn btn-info view"><i class="fas fa-eye"></i> View</a>
|
||||
<a href="{% url 'opportunities:opp_edit' opportunity.id %}" class="btn btn-success edit"><i class="fas fa-pencil-alt"></i>Edit</a>
|
||||
<a href="{% url 'opportunities:opp_remove' opportunity.id %}" class="btn btn-danger delete remove_account"><i class="fas fa-trash"></i>Delete</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{% ifequal opportunity_list|length 0 %}
|
||||
<h4 class="text-center">No Opportunity Records Found</h4>
|
||||
<h6 class="text-center">No Opportunity Records Found</h6>
|
||||
{% endifequal %}
|
||||
<div class="marl row text-center">
|
||||
{% show_pages %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<br clear="all">
|
||||
|
|
|
|||
|
|
@ -2,10 +2,12 @@
|
|||
{% load staticfiles %}
|
||||
{% block breadcrumb1 %}
|
||||
<!-- Breadcrumb Starts Here -->
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{% url 'opportunities:list' %}">OPPORTUNITIES</a></li>
|
||||
<li class="active">VIEW</li>
|
||||
<li class="breadcrumb-item"><a href="{% url 'opportunities:list' %}">Opportunities</a></li>
|
||||
<li class="breadcrumb-item active">View</li>
|
||||
</ol>
|
||||
</nav>
|
||||
<!-- Breadcrumb Ends Here -->
|
||||
{% endblock%}
|
||||
{% block content%}
|
||||
|
|
@ -13,13 +15,15 @@
|
|||
<div class="main_container" id="maincontainer">
|
||||
<div class="overview_form_block row marl">
|
||||
<div class="col-md-8">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading view-pad">
|
||||
<div class="card">
|
||||
|
||||
<div class="card-body" id="datashow">
|
||||
<div class="panel-heading card-title view-pad">
|
||||
<h5>
|
||||
OVERVIEW
|
||||
<span class="pull-right" style="margin-top: -10px">
|
||||
<div class="dropdown">
|
||||
<button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">Actions
|
||||
<span class="float-right" style="margin-top: 0px">
|
||||
<div class="dropdown buttons_row">
|
||||
<button class="btn btn-primary dropdown-toggle save" type="button" data-toggle="dropdown">Actions
|
||||
<span class="caret"></span></button>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="{% url 'opportunities:opp_edit' opportunity_record.id %}" >Edit</a></li>
|
||||
|
|
@ -29,7 +33,6 @@
|
|||
</span>
|
||||
</h5>
|
||||
</div>
|
||||
<div class="panel-content" id="datashow">
|
||||
<div class="row marl">
|
||||
<div class="col-md-6">
|
||||
<div class="filter_col col-md-12" id="iname">
|
||||
|
|
@ -110,17 +113,20 @@
|
|||
</div>
|
||||
</div>
|
||||
<!-- Comments Section starts-->
|
||||
<div class="panel-heading view-pad">
|
||||
<h5>COMMENTS</h5>
|
||||
|
||||
<div class="card-body" id="datashow">
|
||||
<div class="card-title view-pad">
|
||||
<h5>Comments</h5>
|
||||
</div>
|
||||
<div class="panel-content" id="datashow">
|
||||
<div class="row marl">
|
||||
<div class="col-md-12">
|
||||
<form id="comment_form" method="POST" enctype="multipart/form-data">{% csrf_token %}
|
||||
<div class="form-group">
|
||||
<textarea class="form-control" textarea cols="40" rows="3" id="id_comments" name="comment" placeholder="Submit Your Comments Here"></textarea><span><i id="CommentError" style="display:none; color:red"></i></span>
|
||||
</br>
|
||||
<div class="buttons_row">
|
||||
<button class="btn btn-default save" style="text-align: center;" id="comment_submit" type="submit">Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" value="{{ opportunity_record.id }}" name="opportunityid">
|
||||
</form>
|
||||
|
|
@ -175,11 +181,12 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading view-pad">
|
||||
<div class="card">
|
||||
|
||||
<div class="card-body" id="datashow">
|
||||
<div class="panel-heading card-title view-pad">
|
||||
<h5>Label</h5>
|
||||
</div>
|
||||
<div class="panel-content" id="datashow">
|
||||
<div class="row marl">
|
||||
<div class="filter_col col-md-12">
|
||||
<div class="form-group">
|
||||
|
|
|
|||
|
|
@ -1,20 +1,23 @@
|
|||
{% extends 'base.html' %}
|
||||
{% load staticfiles %}
|
||||
{% block breadcrumb %}
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{% url 'common:users_list' %}">Users</a></li>
|
||||
<li class="active">Create</li>
|
||||
<li class="breadcrumb-item"><a href="{% url 'common:users_list' %}">Users</a></li>
|
||||
<li class="breadcrumb-item">Create</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
{% endblock breadcrumb %}
|
||||
{% block content %}
|
||||
<form id="add_form" method="POST" action="" novalidate>{%csrf_token%}
|
||||
<div class="overview_form_block row marl">
|
||||
<div class="col-md-offset-3 col-md-6 col-md-offset-3">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading text-center">
|
||||
<div class="overview_form_block row marl justify-content-center">
|
||||
<div class="col-md-6">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="card-title">
|
||||
Create User
|
||||
</div>
|
||||
<div class="panel-content">
|
||||
<div class="row marl">
|
||||
<div class="col-md-12">
|
||||
<div class="filter_col col-md-12">
|
||||
|
|
@ -56,7 +59,7 @@
|
|||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row marl buttons_row text-center">
|
||||
<div class="row marl buttons_row form_btn_row text-center">
|
||||
<button class="btn btn-default save" type="submit">Save</button>
|
||||
<button class="btn btn-default" type="submit">Cancel</button>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
<!-- heading_create starts here -->
|
||||
<div class="row marl heading_create">
|
||||
<div class="heading col-md-12">
|
||||
<div class="no-gutters row">
|
||||
<div class="col-md-6">
|
||||
<h4>Users</h4>
|
||||
</div>
|
||||
|
|
@ -15,56 +16,59 @@
|
|||
<a href="{% url 'common:create_user'%}"><i class="fa fa-plus"></i> Add New User</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- heading_create ends here -->
|
||||
<!-- filter_row starts here -->
|
||||
<div class="filter_row row marl">
|
||||
<div class="col-md-12">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="card-title">Filters</div>
|
||||
<form id="users_filter" action="" method="POST">{%csrf_token%}
|
||||
<div class="panel-content text-center">
|
||||
<div class="filter_col col-md-4">
|
||||
<div class="row marl">
|
||||
<div class="filter_col col-3">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">User Name</label>
|
||||
<input type="text" class="form-control" placeholder="Username" name="username" value="{{request.POST.username}}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="filter_col col-md-4">
|
||||
<div class="filter_col col-3">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">First Name</label>
|
||||
<input type="text" class="form-control" placeholder="First Name" name="first_name" value="{{request.POST.first_name}}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="filter_col col-md-4">
|
||||
<div class="filter_col col-3">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Email</label>
|
||||
<input type="text" class="form-control" placeholder="Email" name="email" value="{{request.POST.email}}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="filter_col text-center">
|
||||
<div class="form-group">
|
||||
<button class="btn btn-primary" type="submit">Search</button>
|
||||
<a href="{% url 'common:users_list' %}" class="btn btn-default">Clear</a>
|
||||
<div class="filter_col col-3">
|
||||
<div class="form-group buttons_row">
|
||||
<button class="btn btn-primary save" type="submit">Search</button>
|
||||
<a href="{% url 'common:users_list' %}" class="btn btn-default clear">Clear</a>
|
||||
</div>
|
||||
</div>
|
||||
<br clear="all">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- filter_row ends here -->
|
||||
<div class="table_container_row row marl">
|
||||
<div class="col-md-12">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading-list text-center">
|
||||
LIST OF USERS
|
||||
<span class="pull-right total_count">{% if show_pageitems %} {% show_pageitems %}{% else %}Total Users {{ user_obj|length }}{% endif %}</span>
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="card-title list">
|
||||
List of Users
|
||||
<span class="float-right total_count">{% if show_pageitems %} {% show_pageitems %}{% else %}Total Users {{ user_obj|length }}{% endif %}</span>
|
||||
</div>
|
||||
<div class="panel-content">
|
||||
<div class="table-responsive ">
|
||||
<table class="table table-bordered table-striped table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
|
|
@ -84,15 +88,16 @@
|
|||
<td><a href="#">{{ user.username }}</a>
|
||||
<td><a href="#">{{ user.email }}</a></td>
|
||||
<td><a href="#">{{ user.status }}</a></td>
|
||||
<td>
|
||||
<a href="{% url 'common:view_user' user.id %}" class="btn btn-info">View</a>
|
||||
<a href="{% url 'common:edit_user' user.id %}" class="btn btn-success">Edit</a>
|
||||
<a href="{% url 'common:remove_user' user.id %}" class="btn btn-danger">Delete</a>
|
||||
<td class="actions">
|
||||
<a href="{% url 'common:view_user' user.id %}" class="btn btn-info view"><i class="fas fa-eye"></i>View</a>
|
||||
<a href="{% url 'common:edit_user' user.id %}" class="btn btn-success edit"><i class="fas fa-pencil-alt"></i>Edit</a>
|
||||
<a href="{% url 'common:remove_user' user.id %}" class="btn btn-danger trash"><i class="fas fa-trash"></i>Delete</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue