code cleaning
This commit is contained in:
parent
d10b64a2b5
commit
df0830b93c
60 changed files with 184 additions and 747 deletions
|
|
@ -20,11 +20,6 @@ Django CRM is opensourse CRM developed on django framework. It has all the basic
|
|||
.. image:: https://www.codetriage.com/micropyramid/django-crm/badges/users.svg
|
||||
:target: https://www.codetriage.com/micropyramid/django-crm
|
||||
|
||||
.. image:: https://api.codacy.com/project/badge/Grade/b11da5f09dd542479fd3bd53944595d2
|
||||
:alt: Codacy Badge
|
||||
:target: https://app.codacy.com/app/ashwin/Django-CRM?utm_source=github.com&utm_medium=referral&utm_content=MicroPyramid/Django-CRM&utm_campaign=badger
|
||||
|
||||
|
||||
http://django-crm.readthedocs.io for latest documentation
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -3,20 +3,15 @@ from django.http import HttpResponseRedirect, HttpResponse, JsonResponse
|
|||
from django.contrib.auth.decorators import login_required
|
||||
from accounts.models import Account
|
||||
from common.models import User, Address, Team, Comment
|
||||
from common.utils import INDCHOICES, TYPECHOICES, COUNTRIES, CURRENCY_CODES, CASE_TYPE, PRIORITY_CHOICE, STATUS_CHOICE
|
||||
from common.utils import INDCHOICES, COUNTRIES, CURRENCY_CODES, CASE_TYPE, PRIORITY_CHOICE, STATUS_CHOICE
|
||||
from opportunity.models import Opportunity, STAGES, SOURCES
|
||||
from contacts.models import Contact
|
||||
from cases.models import Case
|
||||
from accounts.forms import AccountForm, AccountCommentForm
|
||||
from common.forms import BillingAddressForm, ShippingAddressForm
|
||||
from django.views.decorators.csrf import csrf_exempt
|
||||
|
||||
|
||||
# CRUD Operations Start
|
||||
|
||||
|
||||
@login_required
|
||||
@csrf_exempt
|
||||
def accounts_list(request):
|
||||
accounts_list = Account.objects.all()
|
||||
page = request.POST.get('per_page')
|
||||
|
|
@ -40,7 +35,6 @@ def accounts_list(request):
|
|||
|
||||
|
||||
@login_required
|
||||
@csrf_exempt
|
||||
def add_account(request):
|
||||
users = User.objects.filter(is_active=True).order_by('email')
|
||||
account_form = AccountForm(assigned_to=users)
|
||||
|
|
@ -76,7 +70,7 @@ def add_account(request):
|
|||
'countries': COUNTRIES,
|
||||
'users': users,
|
||||
'teams': teams,
|
||||
'assignedto_list': assignedto_list,
|
||||
'assignedto_list': [int(user_id) for user_id in assignedto_list],
|
||||
'teams_list': teams_list
|
||||
})
|
||||
|
||||
|
|
@ -95,7 +89,6 @@ def add_account(request):
|
|||
|
||||
|
||||
@login_required
|
||||
@csrf_exempt
|
||||
def view_account(request, account_id):
|
||||
account_record = get_object_or_404(Account, id=account_id)
|
||||
comments = account_record.accounts_comments.all()
|
||||
|
|
@ -123,7 +116,6 @@ def view_account(request, account_id):
|
|||
|
||||
|
||||
@login_required
|
||||
@csrf_exempt
|
||||
def edit_account(request, edid):
|
||||
account_instance = get_object_or_404(Account, id=edid)
|
||||
account_billing_address = account_instance.billing_address
|
||||
|
|
@ -164,7 +156,7 @@ def edit_account(request, edid):
|
|||
'industries': INDCHOICES,
|
||||
'teams': teams,
|
||||
'users': users,
|
||||
'assignedto_list': assignedto_list,
|
||||
'assignedto_list': [int(user_id) for user_id in assignedto_list],
|
||||
'teams_list': teams_list
|
||||
})
|
||||
else:
|
||||
|
|
@ -185,15 +177,11 @@ def edit_account(request, edid):
|
|||
|
||||
|
||||
@login_required
|
||||
@csrf_exempt
|
||||
def remove_account(request, aid):
|
||||
account_record = get_object_or_404(Account, id=aid)
|
||||
account_record.delete()
|
||||
return redirect("accounts:list")
|
||||
|
||||
# CRUD Operations Ends
|
||||
# Comments Section Starts
|
||||
|
||||
|
||||
@login_required
|
||||
def add_comment(request):
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ def add_case(request):
|
|||
'case_priority': PRIORITY_CHOICE,
|
||||
'case_status': STATUS_CHOICE,
|
||||
'teams_list': teams_list,
|
||||
'assignedto_list': assignedto_list,
|
||||
'assignedto_list': [int(user_id) for user_id in assignedto_list],
|
||||
'contacts_list': contacts_list
|
||||
})
|
||||
return render(request, "cases/create_cases.html", {
|
||||
|
|
@ -151,7 +151,7 @@ def edit_case(request, case_id):
|
|||
'case_priority': PRIORITY_CHOICE,
|
||||
'case_status': STATUS_CHOICE,
|
||||
'teams_list': teams_list,
|
||||
'assignedto_list': assignedto_list,
|
||||
'assignedto_list': [int(user_id) for user_id in assignedto_list],
|
||||
'contacts_list': contacts_list
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ urlpatterns = [
|
|||
url(r'^profile/$', views.profile, name="profile"),
|
||||
url(r'^users/list$', views.users_list, name="users_list"),
|
||||
url(r'^users/create$', views.create_user, name="create_user"),
|
||||
url(r'^user/(?P<user_id>\d*)/view/$', views.view_user, name="view_user"),
|
||||
url(r'^user/(?P<user_id>\d*)/edit/$', views.edit_user, name="edit_user"),
|
||||
url(r'^users/(?P<user_id>\d*)/view/$', views.view_user, name="view_user"),
|
||||
url(r'^users/(?P<user_id>\d*)/edit/$', views.edit_user, name="edit_user"),
|
||||
url(r'^user/(?P<user_id>\d*)/delete/$', views.remove_user, name="remove_user"),
|
||||
]
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
from django.shortcuts import render, redirect, get_object_or_404
|
||||
from django.contrib.auth.decorators import login_required
|
||||
from django.views.decorators.csrf import csrf_exempt
|
||||
from django.http import HttpResponseRedirect, JsonResponse
|
||||
from django.http import HttpResponseRedirect
|
||||
from django.http.response import Http404
|
||||
from django.contrib.auth import logout, authenticate, login
|
||||
from django.contrib.auth.hashers import check_password
|
||||
|
|
@ -57,7 +56,6 @@ def profile(request):
|
|||
return render(request, "profile.html", {'user_obj': user_obj})
|
||||
|
||||
|
||||
@csrf_exempt
|
||||
def login_crm(request):
|
||||
if request.user.is_authenticated:
|
||||
return HttpResponseRedirect('/')
|
||||
|
|
@ -78,7 +76,6 @@ def login_crm(request):
|
|||
return render(request, 'login.html')
|
||||
|
||||
|
||||
@csrf_exempt
|
||||
def logout_crm(request):
|
||||
logout(request)
|
||||
request.session.flush()
|
||||
|
|
@ -86,7 +83,6 @@ def logout_crm(request):
|
|||
|
||||
|
||||
@admin_required
|
||||
@csrf_exempt
|
||||
def users_list(request):
|
||||
users_list = User.objects.all()
|
||||
page = request.POST.get('per_page')
|
||||
|
|
@ -111,10 +107,8 @@ def users_list(request):
|
|||
|
||||
|
||||
@admin_required
|
||||
@csrf_exempt
|
||||
def create_user(request):
|
||||
user_form = UserForm()
|
||||
users_list = User.objects.all()
|
||||
if request.method == 'POST':
|
||||
user_form = UserForm(request.POST)
|
||||
if user_form.is_valid():
|
||||
|
|
@ -130,7 +124,6 @@ def create_user(request):
|
|||
|
||||
|
||||
@admin_required
|
||||
@csrf_exempt
|
||||
def view_user(request, user_id):
|
||||
users_list = User.objects.all()
|
||||
user_obj = User.objects.filter(id=user_id)
|
||||
|
|
@ -143,7 +136,6 @@ def view_user(request, user_id):
|
|||
|
||||
|
||||
@admin_required
|
||||
@csrf_exempt
|
||||
def edit_user(request, user_id):
|
||||
user_obj = get_object_or_404(User, id=user_id)
|
||||
user_form = UserForm(instance=user_obj)
|
||||
|
|
@ -162,7 +154,6 @@ def edit_user(request, user_id):
|
|||
|
||||
|
||||
@admin_required
|
||||
@csrf_exempt
|
||||
def remove_user(request, user_id):
|
||||
user_obj = get_object_or_404(User, id=user_id)
|
||||
user_obj.delete()
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ def add_contact(request):
|
|||
'countries': COUNTRIES,
|
||||
'teams': teams,
|
||||
'users': users,
|
||||
'assignedto_list': assignedto_list,
|
||||
'assignedto_list': [int(user_id) for user_id in assignedto_list],
|
||||
'teams_list': teams_list
|
||||
})
|
||||
else:
|
||||
|
|
@ -142,7 +142,7 @@ def edit_contact(request, pk):
|
|||
'countries': COUNTRIES,
|
||||
'teams': teams,
|
||||
'users': users,
|
||||
'assignedto_list': assignedto_list,
|
||||
'assignedto_list': [int(user_id) for user_id in assignedto_list],
|
||||
'teams_list': teams_list
|
||||
})
|
||||
else:
|
||||
|
|
|
|||
|
|
@ -43,7 +43,6 @@ INSTALLED_APPS = [
|
|||
MIDDLEWARE = [
|
||||
'django.middleware.security.SecurityMiddleware',
|
||||
'django.middleware.common.CommonMiddleware',
|
||||
'django.middleware.csrf.CsrfViewMiddleware',
|
||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
||||
'django.contrib.messages.middleware.MessageMiddleware',
|
||||
|
|
|
|||
|
|
@ -103,10 +103,10 @@ def email_draft(request):
|
|||
fd = datetime.strptime(from_date, "%Y-%m-%d").date()
|
||||
filter_list = filter_list.filter(send_time__gte=fd)
|
||||
if request.GET.get('to_date', ''):
|
||||
to_date = request.GET.get('to_date', '')
|
||||
td = datetime.strptime(to_date, "%Y-%m-%d")
|
||||
td = td + timedelta(seconds=(24 * 60 * 60 - 1))
|
||||
filter_list = filter_list.filter(send_time__lte=td)
|
||||
to_date = request.GET.get('to_date', '')
|
||||
td = datetime.strptime(to_date, "%Y-%m-%d")
|
||||
td = td + timedelta(seconds=(24 * 60 * 60 - 1))
|
||||
filter_list = filter_list.filter(send_time__lte=td)
|
||||
if request.GET.get('name', ''):
|
||||
name = request.GET.get('name', '')
|
||||
filter_list = filter_list.filter(to_email__startswith=name)
|
||||
|
|
@ -146,15 +146,14 @@ def email_imp_list(request):
|
|||
filter_list = filter_list.filter(send_time__gte=fd)
|
||||
|
||||
if request.GET.get('to_date', ''):
|
||||
to_date = request.GET.get('to_date', '')
|
||||
td = datetime.strptime(to_date, "%Y-%m-%d")
|
||||
td = td + timedelta(seconds=(24 * 60 * 60 - 1))
|
||||
filter_list = filter_list.filter(send_time__lte=td)
|
||||
to_date = request.GET.get('to_date', '')
|
||||
td = datetime.strptime(to_date, "%Y-%m-%d")
|
||||
td = td + timedelta(seconds=(24 * 60 * 60 - 1))
|
||||
filter_list = filter_list.filter(send_time__lte=td)
|
||||
if request.GET.get('name', ''):
|
||||
name = request.GET.get('name', '')
|
||||
filter_list = filter_list.filter(to_email__startswith=name)
|
||||
return render(request, 'emails/mail_important.html',
|
||||
{'filter_list': filter_list})
|
||||
return render(request, 'emails/mail_important.html', {'filter_list': filter_list})
|
||||
|
||||
|
||||
def email_sent_edit(request, pk):
|
||||
|
|
|
|||
|
|
@ -3,13 +3,12 @@ from django.http import HttpResponseRedirect, HttpResponse, JsonResponse
|
|||
from django.contrib.auth.decorators import login_required
|
||||
from django.urls import reverse
|
||||
from django.db.models import Q
|
||||
from django.views.decorators.csrf import csrf_exempt
|
||||
from django.forms.models import modelformset_factory
|
||||
|
||||
from leads.models import Lead
|
||||
from contacts.forms import ContactForm
|
||||
from common.models import User, Address, Comment, Team
|
||||
from common.utils import LEAD_STATUS, LEAD_SOURCE, INDCHOICES, TYPECHOICES, COUNTRIES
|
||||
from common.utils import LEAD_STATUS, LEAD_SOURCE, INDCHOICES, COUNTRIES
|
||||
from leads.forms import LeadCommentForm, LeadForm
|
||||
from accounts.forms import AccountForm
|
||||
from common.forms import BillingAddressForm, ShippingAddressForm
|
||||
|
|
@ -69,9 +68,12 @@ def add_lead(request):
|
|||
if request.POST.get('status') == "converted":
|
||||
account_object = Account.objects.create(
|
||||
created_by=request.user, name=lead_account,
|
||||
email=lead_email, phone=lead_phone
|
||||
email=lead_email, phone=lead_phone,
|
||||
description=request.POST.get('description'),
|
||||
website=request.POST.get('website'),
|
||||
)
|
||||
account_object.billing_address = address_object
|
||||
account_object.assigned_to.add(*assignedto_list)
|
||||
account_object.save()
|
||||
if request.POST.get("savenewform"):
|
||||
return HttpResponseRedirect(reverse("leads:add_lead"))
|
||||
|
|
@ -83,7 +85,7 @@ def add_lead(request):
|
|||
'accounts': accounts, 'countries': COUNTRIES,
|
||||
'teams': teams, 'users': users,
|
||||
'status': LEAD_STATUS, 'source': LEAD_SOURCE,
|
||||
'assignedto_list': assignedto_list, 'teams_list': teams_list})
|
||||
'assignedto_list': [int(user_id) for user_id in assignedto_list], 'teams_list': teams_list})
|
||||
else:
|
||||
return render(request, 'leads/create_lead.html', {
|
||||
'lead_form': form, 'address_form': address_form,
|
||||
|
|
@ -93,7 +95,6 @@ def add_lead(request):
|
|||
|
||||
|
||||
@login_required
|
||||
@csrf_exempt
|
||||
def view_lead(request, lead_id):
|
||||
lead_record = get_object_or_404(Lead, id=lead_id)
|
||||
comments = Comment.objects.filter(lead__id=lead_id).order_by('-id')
|
||||
|
|
@ -149,9 +150,12 @@ def edit_lead(request, lead_id):
|
|||
if request.POST.get('status') == "converted":
|
||||
account_object = Account.objects.create(
|
||||
created_by=request.user, name=lead_account,
|
||||
email=lead_email, phone=lead_phone
|
||||
email=lead_email, phone=lead_phone,
|
||||
description=request.POST.get('description'),
|
||||
website=request.POST.get('website')
|
||||
)
|
||||
account_object.billing_address = dis_address_obj
|
||||
account_object.assigned_to.add(*assignedto_list)
|
||||
account_object.save()
|
||||
return HttpResponseRedirect(reverse('leads:list'))
|
||||
else:
|
||||
|
|
@ -162,7 +166,7 @@ def edit_lead(request, lead_id):
|
|||
'accounts': accounts, 'countries': COUNTRIES,
|
||||
'teams': teams, 'users': users,
|
||||
'status': LEAD_STATUS, 'source': LEAD_SOURCE,
|
||||
'assignedto_list': assignedto_list, 'teams_list': teams_list})
|
||||
'assignedto_list': [int(user_id) for user_id in assignedto_list], 'teams_list': teams_list})
|
||||
else:
|
||||
return render(request, 'leads/create_lead.html', {
|
||||
'lead_form': form, 'address_form': address_form,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
import json
|
||||
|
||||
from django.shortcuts import render, redirect
|
||||
from django.shortcuts import render
|
||||
from django.http import HttpResponseRedirect, HttpResponse, JsonResponse
|
||||
from django.contrib.auth.decorators import login_required
|
||||
from django.shortcuts import get_object_or_404
|
||||
|
|
@ -85,7 +83,7 @@ def opp_create(request):
|
|||
'stages': STAGES,
|
||||
'sources': SOURCES,
|
||||
'currencies': CURRENCY_CODES,
|
||||
'assignedto_list': assignedto_list,
|
||||
'assignedto_list': [int(user_id) for user_id in assignedto_list],
|
||||
'teams_list': teams_list,
|
||||
'contacts_list': contacts_list
|
||||
})
|
||||
|
|
@ -159,7 +157,7 @@ def opp_edit(request, pk):
|
|||
'stages': STAGES,
|
||||
'sources': SOURCES,
|
||||
'currencies': CURRENCY_CODES,
|
||||
'assignedto_list': assignedto_list,
|
||||
'assignedto_list': [int(user_id) for user_id in assignedto_list],
|
||||
'teams_list': teams_list,
|
||||
'contacts_list': contacts_list
|
||||
})
|
||||
|
|
@ -202,10 +200,6 @@ def contacts(request):
|
|||
return JsonResponse(data)
|
||||
|
||||
|
||||
# CRUD Operations Ends
|
||||
# Comments Section Start
|
||||
|
||||
|
||||
@login_required
|
||||
def add_comment(request):
|
||||
if request.method == 'POST':
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
from django import forms
|
||||
from planner.models import Event, Reminder
|
||||
from planner.models import Reminder
|
||||
|
||||
|
||||
# class EventForm(forms.ModelForm):
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
Django==2.0
|
||||
django-simple-pagination==1.1.8
|
||||
pytz==2018.3
|
||||
psycopg2==2.7.4
|
||||
psycopg2-binary==2.7.4
|
||||
redis
|
||||
django-compressor==2.2
|
||||
coverage
|
||||
|
|
|
|||
|
|
@ -1,10 +1,7 @@
|
|||
@import "ref.scss";
|
||||
|
||||
|
||||
body {
|
||||
font-family: $font_0, $font_1;
|
||||
font-family: 'Muli', sans-serif;
|
||||
padding: 0;
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
margin: 0;
|
||||
padding-top:60px;
|
||||
|
|
@ -12,6 +9,13 @@ body {
|
|||
.login_register_body {
|
||||
background: $body_bg;
|
||||
}
|
||||
|
||||
*{
|
||||
font-size: 14px;
|
||||
@media(min-width:$large){
|
||||
font-size:17px;
|
||||
}
|
||||
}
|
||||
.marl {
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
|
|
@ -105,6 +109,7 @@ header{
|
|||
border:none;
|
||||
.navbar-brand{
|
||||
color: $login_btn_bg;
|
||||
font-weight: 600;
|
||||
&:hover{
|
||||
color: $login_btn_bg;
|
||||
}
|
||||
|
|
@ -112,15 +117,19 @@ header{
|
|||
.navbar-nav{
|
||||
>li{
|
||||
>a{
|
||||
color: $text_color3;
|
||||
font-weight: 500;
|
||||
font-size: 12px;
|
||||
padding:15px 10px;
|
||||
color: lighten($text_color3, 10%) !important;
|
||||
font-weight: 600;
|
||||
font-size: 0.9rem;
|
||||
padding:14px 10px;
|
||||
padding-top: 16px;
|
||||
@media(min-width: $mob_min) and (max-width: $smob_max) {
|
||||
padding:5px 10px;
|
||||
}
|
||||
@media(min-width:$large){
|
||||
font-size:1rem;
|
||||
}
|
||||
&:hover{
|
||||
color:#ddd;
|
||||
color:#fff !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -139,7 +148,16 @@ header{
|
|||
}
|
||||
.dropdown-menu{
|
||||
a{
|
||||
font-size: 12px;
|
||||
font-size: 0.9rem;
|
||||
color: darken($text_color,5%);
|
||||
svg{
|
||||
display: inline-block;
|
||||
margin-right: 5px;
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
@media(min-width:$large){
|
||||
font-size:0.95rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -158,9 +176,19 @@ header{
|
|||
&.nav-link{
|
||||
padding:0.5rem;
|
||||
}
|
||||
&.nav-link .active {
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/* li{
|
||||
a{
|
||||
&:hover{
|
||||
color:lighten($text_color,15%);
|
||||
}
|
||||
}
|
||||
}*/
|
||||
}
|
||||
.navbar-form{
|
||||
.form-group{
|
||||
|
|
@ -246,28 +274,42 @@ $color_2: #000;
|
|||
|
||||
/* main_container stats here */
|
||||
.main_container{
|
||||
padding-top: 10px;
|
||||
padding-top: 0.8rem;
|
||||
.heading_create{
|
||||
.heading{
|
||||
font-size: 14px;
|
||||
font-size: 1.1rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1px;
|
||||
color: darken($text_color, 15%);
|
||||
font-weight: 600;
|
||||
h4{
|
||||
font-size: 15px;
|
||||
font-size: 1.1rem;
|
||||
font-weight: 800;
|
||||
}
|
||||
}
|
||||
.create_new{
|
||||
a{
|
||||
background: $login_btn_bg;
|
||||
color: #fff;
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
text-transform: capitalize;
|
||||
letter-spacing: initial;
|
||||
display: inline-block;
|
||||
padding: 5px 10px 3px 10px;
|
||||
/*svg{
|
||||
font-size: 0.8rem;
|
||||
}*/
|
||||
@media(min-width:$large){
|
||||
font-size:1rem;
|
||||
svg{
|
||||
position: relative;
|
||||
top: -1px;
|
||||
}
|
||||
}
|
||||
svg{
|
||||
display: inline-block;
|
||||
margin-right: 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.search-row{
|
||||
|
|
|
|||
|
|
@ -16,11 +16,10 @@ $dark_sky:#099CBE;
|
|||
$dark_yellow:#FEA124;
|
||||
$inner_page_bg:#CDCDCD;
|
||||
|
||||
//fonts
|
||||
$font_0: Poppins;
|
||||
$font_1: sans-serif;
|
||||
|
||||
|
||||
//mediaviews
|
||||
$large:1500px;
|
||||
$med_min:992px;
|
||||
$med_max:1199px;
|
||||
$tab_max:991px;
|
||||
|
|
|
|||
|
|
@ -1,24 +1,3 @@
|
|||
|
||||
/*Cookie Js Starts*/
|
||||
|
||||
function getCookie(name) {
|
||||
var cookieValue = null;
|
||||
if (document.cookie && document.cookie != '') {
|
||||
var cookies = document.cookie.split(';');
|
||||
for (var i = 0; i < cookies.length; i++) {
|
||||
var cookie = jQuery.trim(cookies[i]);
|
||||
// Does this cookie string begin with the name we want?
|
||||
if (cookie.substring(0, name.length + 1) == (name + '=')) {
|
||||
cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return cookieValue;
|
||||
}
|
||||
|
||||
/*Cookie Js Ends*/
|
||||
|
||||
/*Comment Add Js Start*/
|
||||
|
||||
$("#comment_form").submit(function(e){
|
||||
|
|
@ -98,12 +77,10 @@ function HideError(e) {
|
|||
/*Comment Remove Js Start*/
|
||||
|
||||
function remove_comment(x) {
|
||||
var csrftoken = getCookie('csrftoken');
|
||||
var con = confirm("Do you want to Delete it for Sure!?")
|
||||
if (con == true) {
|
||||
$.post('/accounts/comment/remove/', {
|
||||
"comment_id": x,
|
||||
"csrfmiddlewaretoken": csrftoken,
|
||||
"comment_id": x
|
||||
}, function (data) {
|
||||
if (data.error) {
|
||||
alert(data.error)
|
||||
|
|
|
|||
|
|
@ -346,24 +346,7 @@ $.ajaxSetup({
|
|||
if (settings.type == 'POST' || settings.type == 'PUT' || settings.type == 'DELETE') {
|
||||
|
||||
if (!(/^http:.*/.test(settings.url) || /^https:.*/.test(settings.url))) {
|
||||
// Only send the token to relative URLs i.e. locally.
|
||||
xhr.setRequestHeader("X-CSRFToken", getCookie('csrftoken'));
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
function getCookie(name) {
|
||||
var cookieValue = null;
|
||||
if (document.cookie && document.cookie != '') {
|
||||
var cookies = document.cookie.split(';');
|
||||
for (var i = 0; i < cookies.length; i++) {
|
||||
var cookie = jQuery.trim(cookies[i]);
|
||||
// Does this cookie string begin with the name we want?
|
||||
if (cookie.substring(0, name.length + 1) == (name + '=')) {
|
||||
cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return cookieValue;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,29 +1,12 @@
|
|||
function getCookie(name) {
|
||||
var cookieValue = null;
|
||||
if (document.cookie && document.cookie != '') {
|
||||
var cookies = document.cookie.split(';');
|
||||
for (var i = 0; i < cookies.length; i++) {
|
||||
var cookie = jQuery.trim(cookies[i]);
|
||||
// Does this cookie string begin with the name we want?
|
||||
if (cookie.substring(0, name.length + 1) == (name + '=')) {
|
||||
cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return cookieValue;
|
||||
}
|
||||
|
||||
function close_case(x, url){
|
||||
var csrftoken = getCookie('csrftoken');
|
||||
var stat = $("#status_id"+x).text()
|
||||
if(stat==="Closed"){
|
||||
alert("Case Already Closed")
|
||||
}
|
||||
else{
|
||||
$.post(url, {
|
||||
"case_id": x,
|
||||
"csrfmiddlewaretoken": csrftoken
|
||||
"case_id": x
|
||||
}, function(data) {
|
||||
$("#status_id"+data.cid).text(data.status)
|
||||
})
|
||||
|
|
@ -31,13 +14,11 @@ function close_case(x, url){
|
|||
}
|
||||
|
||||
function remove_case(x, url){
|
||||
var csrftoken = getCookie('csrftoken');
|
||||
if (!confirm('Are you sure you want to Remove?'))
|
||||
return;
|
||||
window.location = url
|
||||
$.post(url, {
|
||||
"case_id": x,
|
||||
"csrfmiddlewaretoken": csrftoken
|
||||
"case_id": x
|
||||
}, function(data) {
|
||||
$(".case_row" + data.case_id).remove()
|
||||
$(".total_count").html("Total "+data.count)
|
||||
|
|
|
|||
|
|
@ -1,23 +1,7 @@
|
|||
function getCookie(name) {
|
||||
var cookieValue = null;
|
||||
if (document.cookie && document.cookie != '') {
|
||||
var cookies = document.cookie.split(';');
|
||||
for (var i = 0; i < cookies.length; i++) {
|
||||
var cookie = jQuery.trim(cookies[i]);
|
||||
// Does this cookie string begin with the name we want?
|
||||
if (cookie.substring(0, name.length + 1) == (name + '=')) {
|
||||
cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return cookieValue;
|
||||
}
|
||||
|
||||
$('#id_account').change(function(){
|
||||
var csrftoken = getCookie('csrftoken');
|
||||
var account = $("#id_account").val()
|
||||
$.get("/cases/select_contacts/", {"account":account, "csrfmiddlewaretoken": csrftoken}, function(data){
|
||||
$.get("/cases/select_contacts/", {"account":account}, function(data){
|
||||
$("#id_contacts").html("")
|
||||
$.each(data, function (index, value) {
|
||||
$("#id_contacts").append("<option value="+index+">"+value+"</option>")
|
||||
|
|
|
|||
|
|
@ -1,20 +1,4 @@
|
|||
|
||||
function getCookie(name) {
|
||||
var cookieValue = null;
|
||||
if (document.cookie && document.cookie != '') {
|
||||
var cookies = document.cookie.split(';');
|
||||
for (var i = 0; i < cookies.length; i++) {
|
||||
var cookie = jQuery.trim(cookies[i]);
|
||||
// Does this cookie string begin with the name we want?
|
||||
if (cookie.substring(0, name.length + 1) == (name + '=')) {
|
||||
cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return cookieValue;
|
||||
}
|
||||
|
||||
$("#comment_form").submit(function(e){
|
||||
e.preventDefault()
|
||||
var formData = new FormData($("#comment_form")[0]);
|
||||
|
|
@ -115,10 +99,9 @@ function HideError(e){
|
|||
}
|
||||
|
||||
function remove_file(x){
|
||||
var csrftoken = getCookie('csrftoken');
|
||||
var con = confirm("Sure, You want to delete")
|
||||
if (con == true){
|
||||
$.post('/cases/remove_comment_file/', {"file_id":x, "csrfmiddlewaretoken": csrftoken,}, function(data){
|
||||
$.post('/cases/remove_comment_file/', {"file_id":x}, function(data){
|
||||
if(data.error){
|
||||
alert(data.error)
|
||||
}
|
||||
|
|
@ -129,10 +112,9 @@ function remove_file(x){
|
|||
}
|
||||
|
||||
function remove_comment(x){
|
||||
var csrftoken = getCookie('csrftoken');
|
||||
var con = confirm("Sure, You want to delete")
|
||||
if (con == true){
|
||||
$.post('/cases/remove_comment/', {"comment_id":x, "csrfmiddlewaretoken": csrftoken,}, function(data){
|
||||
$.post('/cases/remove_comment/', {"comment_id":x}, function(data){
|
||||
if(data.error){
|
||||
alert(data.error)
|
||||
}
|
||||
|
|
@ -143,12 +125,10 @@ function remove_comment(x){
|
|||
}
|
||||
|
||||
function editFun(x) {
|
||||
var csrftoken = getCookie('csrftoken');
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/cases/editdetails/", // the endpoint,commonly same url
|
||||
data: {
|
||||
csrfmiddlewaretoken: csrftoken,
|
||||
tid: x
|
||||
},
|
||||
success: function(data) {
|
||||
|
|
@ -173,10 +153,8 @@ function editFun(x) {
|
|||
|
||||
$('#id_account').change(function() {
|
||||
var acc = $("#id_account").val()
|
||||
var csrftoken = getCookie('csrftoken');
|
||||
$.get("/cases/select_contacts/", {
|
||||
"acc": acc,
|
||||
"csrfmiddlewaretoken": csrftoken
|
||||
"acc": acc
|
||||
}, function(data) {
|
||||
$("#id_contacts").html("")
|
||||
$.each(data, function(index, value) {
|
||||
|
|
@ -198,11 +176,10 @@ $('body').on('click', '.status_set', function (e) {
|
|||
eventID = $(this).closest('ul').attr('id')
|
||||
event = eventID.match(/\d+/)[0]
|
||||
status = $(this).text().replace('Set ', '')
|
||||
var token = getCookie('csrftoken');
|
||||
window.location = ""
|
||||
$.post(
|
||||
'/planner/event/set/status/',
|
||||
{id: event, status: status, csrfmiddlewaretoken: token},
|
||||
{id: event, status: status},
|
||||
function (data) {
|
||||
console.log("success")
|
||||
})
|
||||
|
|
@ -212,11 +189,10 @@ $('body').on('click', '.remove_event', function (e) {
|
|||
e.preventDefault();
|
||||
eventID = $(this).closest('ul').attr('id')
|
||||
event = eventID.match(/\d+/)[0]
|
||||
var token = getCookie('csrftoken');
|
||||
window.location = ""
|
||||
$.post(
|
||||
'/planner/meeting/delete/',
|
||||
{meetingID: event, csrfmiddlewaretoken: token},
|
||||
{meetingID: event},
|
||||
function (data) {
|
||||
console.log("removed")
|
||||
})
|
||||
|
|
@ -226,10 +202,9 @@ $('body').on('click', '.display_event', function (e) {
|
|||
e.preventDefault();
|
||||
eventID = $(this).closest('ul').attr('id')
|
||||
event = eventID.match(/\d+/)[0]
|
||||
var token = getCookie('csrftoken');
|
||||
$.post(
|
||||
'/planner/get/meeting/',
|
||||
{meetingID: event, csrfmiddlewaretoken: token},
|
||||
{meetingID: event},
|
||||
function (data, status, xhr) {
|
||||
$("#meeting-dispaly-model").modal("show") })
|
||||
})
|
||||
|
|
@ -1,18 +1,3 @@
|
|||
function getCookie(name) {
|
||||
var cookieValue = null;
|
||||
if (document.cookie && document.cookie != '') {
|
||||
var cookies = document.cookie.split(';');
|
||||
for (var i = 0; i < cookies.length; i++) {
|
||||
var cookie = jQuery.trim(cookies[i]);
|
||||
// Does this cookie string begin with the name we want?
|
||||
if (cookie.substring(0, name.length + 1) == (name + '=')) {
|
||||
cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return cookieValue;
|
||||
}
|
||||
|
||||
$("#comment_form").submit(function (e) {
|
||||
e.preventDefault()
|
||||
|
|
@ -84,12 +69,10 @@ function HideError(e) {
|
|||
}
|
||||
|
||||
function remove_comment(x) {
|
||||
var csrftoken = getCookie('csrftoken');
|
||||
var con = confirm("Do you want to Delete it for Sure!?")
|
||||
if (con == true) {
|
||||
$.post('/cases/comment/remove/', {
|
||||
"comment_id": x,
|
||||
"csrfmiddlewaretoken": csrftoken,
|
||||
"comment_id": x
|
||||
}, function (data) {
|
||||
if (data.error) {
|
||||
alert(data.error)
|
||||
|
|
|
|||
|
|
@ -64,10 +64,9 @@ $("#comment_edit").click(function(e){
|
|||
|
||||
|
||||
function remove_comment(x){
|
||||
var csrftoken = getCookie('csrftoken');
|
||||
var verify = confirm("Are You Sure, you Want to Delete this Comment!?")
|
||||
if (verify == true){
|
||||
$.post('/contacts/comment_remove/', {"comment_id":x, "csrfmiddlewaretoken": csrftoken, }, function(data){
|
||||
$.post('/contacts/comment_remove/', {"comment_id":x}, function(data){
|
||||
if(data.error){
|
||||
alert(data.error)
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -351,26 +351,7 @@ $.ajaxSetup({
|
|||
if (settings.type == 'POST' || settings.type == 'PUT' || settings.type == 'DELETE') {
|
||||
|
||||
if (!(/^http:.*/.test(settings.url) || /^https:.*/.test(settings.url))) {
|
||||
// Only send the token to relative URLs i.e. locally.
|
||||
xhr.setRequestHeader("X-CSRFToken", getCookie('csrftoken'));
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
function getCookie(name) {
|
||||
var cookieValue = null;
|
||||
if (document.cookie && document.cookie != '') {
|
||||
var cookies = document.cookie.split(';');
|
||||
for (var i = 0; i < cookies.length; i++) {
|
||||
var cookie = jQuery.trim(cookies[i]);
|
||||
// Does this cookie string begin with the name we want?
|
||||
if (cookie.substring(0, name.length + 1) == (name + '=')) {
|
||||
cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return cookieValue;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,18 +1,3 @@
|
|||
function getCookie(name) {
|
||||
var cookieValue = null;
|
||||
if (document.cookie && document.cookie != '') {
|
||||
var cookies = document.cookie.split(';');
|
||||
for (var i = 0; i < cookies.length; i++) {
|
||||
var cookie = jQuery.trim(cookies[i]);
|
||||
// Does this cookie string begin with the name we want?
|
||||
if (cookie.substring(0, name.length + 1) == (name + '=')) {
|
||||
cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return cookieValue;
|
||||
}
|
||||
|
||||
$("#comment_form").submit(function (e) {
|
||||
e.preventDefault()
|
||||
|
|
@ -84,12 +69,10 @@ function HideError(e) {
|
|||
}
|
||||
|
||||
function remove_comment(x) {
|
||||
var csrftoken = getCookie('csrftoken');
|
||||
var con = confirm("Do you want to Delete it for Sure!?")
|
||||
if (con == true) {
|
||||
$.post('/contacts/comment/remove/', {
|
||||
"comment_id": x,
|
||||
"csrfmiddlewaretoken": csrftoken,
|
||||
"comment_id": x
|
||||
}, function (data) {
|
||||
if (data.error) {
|
||||
alert(data.error)
|
||||
|
|
|
|||
|
|
@ -1,18 +1,3 @@
|
|||
function getCookie(name) {
|
||||
var cookieValue = null;
|
||||
if (document.cookie && document.cookie != '') {
|
||||
var cookies = document.cookie.split(';');
|
||||
for (var i = 0; i < cookies.length; i++) {
|
||||
var cookie = jQuery.trim(cookies[i]);
|
||||
// Does this cookie string begin with the name we want?
|
||||
if (cookie.substring(0, name.length + 1) == (name + '=')) {
|
||||
cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return cookieValue;
|
||||
}
|
||||
|
||||
$("#comment_form").submit(function (e) {
|
||||
e.preventDefault()
|
||||
|
|
@ -85,12 +70,10 @@ function HideError(e) {
|
|||
}
|
||||
|
||||
function remove_comment(x) {
|
||||
var csrftoken = getCookie('csrftoken');
|
||||
var con = confirm("Do you want to Delete it for Sure!?")
|
||||
if (con == true) {
|
||||
$.post('/leads/comment/remove/', {
|
||||
"comment_id": x,
|
||||
"csrfmiddlewaretoken": csrftoken,
|
||||
"comment_id": x
|
||||
}, function (data) {
|
||||
if (data.error) {
|
||||
alert(data.error)
|
||||
|
|
|
|||
|
|
@ -369,26 +369,7 @@ $.ajaxSetup({
|
|||
if (settings.type == 'POST' || settings.type == 'PUT' || settings.type == 'DELETE') {
|
||||
|
||||
if (!(/^http:.*/.test(settings.url) || /^https:.*/.test(settings.url))) {
|
||||
// Only send the token to relative URLs i.e. locally.
|
||||
xhr.setRequestHeader("X-CSRFToken", getCookie('csrftoken'));
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
function getCookie(name) {
|
||||
var cookieValue = null;
|
||||
if (document.cookie && document.cookie != '') {
|
||||
var cookies = document.cookie.split(';');
|
||||
for (var i = 0; i < cookies.length; i++) {
|
||||
var cookie = jQuery.trim(cookies[i]);
|
||||
// Does this cookie string begin with the name we want?
|
||||
if (cookie.substring(0, name.length + 1) == (name + '=')) {
|
||||
cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return cookieValue;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,22 +1,7 @@
|
|||
function getCookie(name) {
|
||||
var cookieValue = null;
|
||||
if (document.cookie && document.cookie != '') {
|
||||
var cookies = document.cookie.split(';');
|
||||
for (var i = 0; i < cookies.length; i++) {
|
||||
var cookie = jQuery.trim(cookies[i]);
|
||||
if (cookie.substring(0, name.length + 1) == (name + '=')) {
|
||||
cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return cookieValue;
|
||||
}
|
||||
|
||||
$('#id_account').change(function(){
|
||||
var csrftoken = getCookie('csrftoken');
|
||||
var Account= $("#id_account").val()
|
||||
$.get("/opportunities/contacts/", {"Account":Account, "csrfmiddlewaretoken": csrftoken}, function(data){
|
||||
$.get("/opportunities/contacts/", {"Account":Account}, function(data){
|
||||
$("#id_contacts").html("")
|
||||
$.each(data, function (index, value) {
|
||||
$("#id_contacts").append("<option value="+index+">"+value+"</option>")
|
||||
|
|
@ -89,10 +74,9 @@ $("#comment_edit").click(function(e){
|
|||
});
|
||||
|
||||
function remove_comment(x){
|
||||
var csrftoken = getCookie('csrftoken');
|
||||
var warn = confirm("Are You Sure, you Want to Delete this Comment!?")
|
||||
if (warn == true){
|
||||
$.post('/opportunities/comment_remove/', {"comment_id":x, "csrfmiddlewaretoken": csrftoken, }, function(data){
|
||||
$.post('/opportunities/comment_remove/', {"comment_id":x}, function(data){
|
||||
if(data.error){
|
||||
alert(data.error)
|
||||
} else {
|
||||
|
|
@ -103,15 +87,10 @@ function remove_comment(x){
|
|||
}
|
||||
|
||||
function editFun(x) {
|
||||
var csrftoken = getCookie('csrftoken');
|
||||
alert("Heloooooooooooooo")
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/opportunities/editdetails/",
|
||||
data: {
|
||||
csrfmiddlewaretoken: csrftoken,
|
||||
tid: x
|
||||
},
|
||||
data: {tid: x},
|
||||
success: function(data) {
|
||||
$("#viewdiv").hide()
|
||||
$("#editdiv").show()
|
||||
|
|
@ -136,10 +115,8 @@ function editFun(x) {
|
|||
|
||||
$('#id_account').change(function() {
|
||||
var Account = $("#id_account").val()
|
||||
var csrftoken = getCookie('csrftoken');
|
||||
$.get("/opportunities/contacts/", {
|
||||
"Account": Account,
|
||||
"csrfmiddlewaretoken": csrftoken
|
||||
"Account": Account
|
||||
}, function(data) {
|
||||
$("#id_contacts").html("")
|
||||
$.each(data, function(index, value) {
|
||||
|
|
|
|||
|
|
@ -1,18 +1,3 @@
|
|||
function getCookie(name) {
|
||||
var cookieValue = null;
|
||||
if (document.cookie && document.cookie != '') {
|
||||
var cookies = document.cookie.split(';');
|
||||
for (var i = 0; i < cookies.length; i++) {
|
||||
var cookie = jQuery.trim(cookies[i]);
|
||||
// Does this cookie string begin with the name we want?
|
||||
if (cookie.substring(0, name.length + 1) == (name + '=')) {
|
||||
cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return cookieValue;
|
||||
}
|
||||
|
||||
$("#comment_form").submit(function (e) {
|
||||
e.preventDefault()
|
||||
|
|
@ -84,13 +69,11 @@ function HideError(e) {
|
|||
}
|
||||
|
||||
function remove_comment(x) {
|
||||
var csrftoken = getCookie('csrftoken');
|
||||
var con = confirm("Do you want to Delete it for Sure!?")
|
||||
if (con == true) {
|
||||
$.post('/opportunities/comment/remove/', {
|
||||
"comment_id": x,
|
||||
"csrfmiddlewaretoken": csrftoken,
|
||||
}, function (data) {
|
||||
"comment_id": x
|
||||
}, function (data) {
|
||||
if (data.error) {
|
||||
alert(data.error)
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -268,24 +268,7 @@ $.ajaxSetup({
|
|||
if (settings.type == 'POST' || settings.type == 'PUT' || settings.type == 'DELETE') {
|
||||
|
||||
if (!(/^http:.*/.test(settings.url) || /^https:.*/.test(settings.url))) {
|
||||
// Only send the token to relative URLs i.e. locally.
|
||||
xhr.setRequestHeader("X-CSRFToken", getCookie('csrftoken'));
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
function getCookie(name) {
|
||||
var cookieValue = null;
|
||||
if (document.cookie && document.cookie != '') {
|
||||
var cookies = document.cookie.split(';');
|
||||
for (var i = 0; i < cookies.length; i++) {
|
||||
var cookie = jQuery.trim(cookies[i]);
|
||||
// Does this cookie string begin with the name we want?
|
||||
if (cookie.substring(0, name.length + 1) == (name + '=')) {
|
||||
cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return cookieValue;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,8 +24,7 @@
|
|||
<div class="filter_row row marl">
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
|
||||
<form id="accounts_filter" method="POST" action="">{% csrf_token %}
|
||||
<form id="accounts_filter" method="POST" action="">
|
||||
<div class="card-body">
|
||||
<div class="card-title">Filters</div>
|
||||
<div class="row marl">
|
||||
|
|
@ -70,7 +69,6 @@
|
|||
<div class="table_container_row row marl">
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
|
||||
<div class="card-body">
|
||||
<div class="panel-heading-list card-title">
|
||||
List of Accounts
|
||||
|
|
|
|||
|
|
@ -13,41 +13,10 @@
|
|||
|
||||
{% 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="card">
|
||||
<div class="card-body">
|
||||
<div class="card-title">
|
||||
Assigned Users & Teams
|
||||
</div>
|
||||
<div class="row marl">
|
||||
<div class="filter_col col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Assigned Users</label>
|
||||
{{ account_form.assigned_to }}
|
||||
{{ account_form.assigned_to.errors }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="filter_col col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Teams</label>
|
||||
{{ account_form.teams }}
|
||||
{{ account_form.teams.errors }}
|
||||
</div>
|
||||
</div>
|
||||
<br clear="all">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br clear="all">
|
||||
</div> -->
|
||||
<!-- overview starts here -->
|
||||
<form id="formid" action='' method="POST" novalidate>
|
||||
<div class="overview_form_block row marl ">
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
|
||||
<div class="card-body">
|
||||
<div class="card-title text-center">
|
||||
CREATE ACCOUNT
|
||||
|
|
@ -101,9 +70,10 @@
|
|||
<div class="filter_col col-12">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Assigned Users</label>
|
||||
{{request.POST.assigned_to}}
|
||||
<select class="assigned_users form-control" name="assigned_to" multiple="multiple">
|
||||
{% for user in users %}
|
||||
<option value="{{user.id}}" {% if user in account_obj.assigned_to.all %} selected="" {% endif %}>{{user.email}}</option>
|
||||
<option value="{{user.id}}" {% if user in account_obj.assigned_to.all or user.id in assignedto_list %} selected="" {% endif %}>{{user.email}}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
{{ account_form.assigned_to.errors }}
|
||||
|
|
@ -140,36 +110,6 @@
|
|||
<div>
|
||||
<h6 style="color:white;">Copy Address</h6>
|
||||
</div>
|
||||
<!-- <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">
|
||||
<label for="exampleInputEmail1">Shipping Address</label>
|
||||
{{ shipping_form.address_line }}
|
||||
<span class="error">{{ shipping_form.address_line.errors }}</span>
|
||||
</div>
|
||||
{{ shipping_form.street }}
|
||||
<span class="error">{{ shipping_form.street.errors }}</span>
|
||||
<div class="row" style="margin-top: 10px;">
|
||||
<div class="col-md-4">
|
||||
{{ shipping_form.city }}
|
||||
<span class="error">{{ shipping_form.city.errors }}</span>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
{{ shipping_form.state }}
|
||||
<span class="error">{{ shipping_form.state.errors }}</span>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
{{ shipping_form.postcode }}
|
||||
<span class="error">{{ shipping_form.postcode.errors }}</span>
|
||||
</div>
|
||||
<div class="col-md-12" style="margin-top: 10px;">
|
||||
{{ shipping_form.country }}
|
||||
<span class="error">{{ shipping_form.country.errors }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
<br clear="all">
|
||||
|
|
@ -216,4 +156,4 @@
|
|||
$('.assigned_users').select2();
|
||||
});
|
||||
</script>
|
||||
{% endblock js_block %}
|
||||
{% endblock js_block %}
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@
|
|||
<div class="overview_form_block row marl">
|
||||
<div class="col-md-8">
|
||||
<div class="card">
|
||||
|
||||
<div class="card-body" id="datashow">
|
||||
<div class="card-title">
|
||||
<h5>
|
||||
|
|
@ -143,14 +142,13 @@
|
|||
</div>
|
||||
</div>
|
||||
<!-- Comments Section starts-->
|
||||
|
||||
<div class="card-body" id="datashow">
|
||||
<div class="card-title">
|
||||
<h5>Comments</h5>
|
||||
</div>
|
||||
<div class="row marl">
|
||||
<div class="col-md-12">
|
||||
<form id="comment_form" method="POST" enctype="multipart/form-data">{% csrf_token %}
|
||||
<form id="comment_form" method="POST" enctype="multipart/form-data">
|
||||
<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>
|
||||
|
|
@ -193,7 +191,7 @@
|
|||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title">Update Your Comment</h4>
|
||||
</div>
|
||||
<form id="comment_edit_form" method="POST" >{% csrf_token %}
|
||||
<form id="comment_edit_form" method="POST" >
|
||||
<div class="modal-body">
|
||||
<div class="form-group">
|
||||
<textarea class="form-control" textarea cols="40" rows="3" id="id_editcomment" name="comment" placeholder="Submit Your Comments"></textarea><span><i id="CommentEditError" style="display:none; color:red"></i></span>
|
||||
|
|
@ -214,7 +212,6 @@
|
|||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="card">
|
||||
|
||||
<div class="card-body" id="datashow">
|
||||
<div class="card-title">
|
||||
<h5>Label</h5>
|
||||
|
|
@ -232,20 +229,6 @@
|
|||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="filter_col col-md-12">
|
||||
<div class="form-group">
|
||||
<label class="acc_field_label" for="id_team" data-name="name">Assigned Team(s)</label>
|
||||
<div class="account_field" id="account_team" data-name="name">
|
||||
{%if not account_record.teams.all %}
|
||||
Not Assigned Yet
|
||||
{% else %}
|
||||
{% for team in account_record.teams.all %}
|
||||
<li>{{ team }}</li>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
<div class="filter_col col-md-12">
|
||||
<div class="form-group">
|
||||
<label class="acc_field_label" for="id_created_on" data-name="name">Created On</label>
|
||||
|
|
@ -274,7 +257,6 @@
|
|||
<div class="table_container_row row marl">
|
||||
<div class="col-md-8">
|
||||
<div class="card">
|
||||
|
||||
<div class="card-body">
|
||||
<div class="panel-heading-list card-title view-pad">
|
||||
Contacts
|
||||
|
|
@ -320,7 +302,6 @@
|
|||
<div class="modal-dialog modal-lg" role="document">
|
||||
<div class="modal-content">
|
||||
<form id="form_con" method="post" action="">
|
||||
{%csrf_token%}
|
||||
<div class="modal-header" style="background:lightblue;">
|
||||
<h4 class="modal-title" id="myLargeModalLabel" style="text-align:center;">CONTACTS</h4>
|
||||
</div>
|
||||
|
|
@ -371,7 +352,7 @@
|
|||
<div class="col-md-6">
|
||||
<div class="filter_col col-md-12">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1" class="required">Name</label>
|
||||
<label for="exampleInputEmail1" class="required">Name</label>
|
||||
<div class="row">
|
||||
<div class="filter_col col-md-6">
|
||||
<input type="text" class="form-control" placeholder="First Name" id="id_first_name" name="first_name" value="{{request.POST.first_name}}">
|
||||
|
|
@ -386,7 +367,7 @@
|
|||
</div>
|
||||
<div class="filter_col col-md-12">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Accounts</label>
|
||||
<label for="exampleInputEmail1">Accounts</label>
|
||||
<select class="form-control" id="id_account" name="account">
|
||||
<option value="{{ account_record.id }}" selected >{{ account_record.name }}</option>
|
||||
</select>
|
||||
|
|
@ -395,14 +376,14 @@
|
|||
</div>
|
||||
<div class="filter_col col-md-12">
|
||||
<div class="form-group ">
|
||||
<label for="exampleInputEmail1" class="required">Phone</label>
|
||||
<label for="exampleInputEmail1" class="required">Phone</label>
|
||||
<input type="text" class="form-control text-filter" id="id_phone" name="phone" value="{{request.POST.phone}}"/>
|
||||
{{ contact_form.phone.errors }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="filter_col col-md-12">
|
||||
<div class="form-group ">
|
||||
<label for="exampleInputEmail1" class="required">Email Address</label>
|
||||
<label for="exampleInputEmail1" class="required">Email Address</label>
|
||||
<input type="text" class="form-control text-filter" id="id_email" name="email" value="{{request.POST.email}}"/>
|
||||
{{ contact_form.email.errors }}
|
||||
</div>
|
||||
|
|
@ -631,7 +612,6 @@
|
|||
<div class="modal-dialog modal-lg" role="document">
|
||||
<div class="modal-content">
|
||||
<form class= "form_con_edit" id="form_con_edit" method="POST" action="{% url 'contacts:edit_contact' pk=contact.id %}">
|
||||
{% csrf_token %}
|
||||
<div class="modal-header" style="background:lightblue;">
|
||||
<h4 class="modal-title" id="myLargeModalLabel" style="text-align:center;">CONTACTS</h4>
|
||||
</div>
|
||||
|
|
@ -640,7 +620,7 @@
|
|||
<div class="col-md-12">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading view-pad">
|
||||
Assigned Users & Teams
|
||||
Assigned Users & Teams
|
||||
</div>
|
||||
<div class="panel-content">
|
||||
<div class="filter_col col-md-6">
|
||||
|
|
@ -834,7 +814,6 @@
|
|||
<div class="modal-dialog modal-lg" role="document">
|
||||
<div class="modal-content">
|
||||
<form class= "form_user" id="form_opp" method="POST" action="">
|
||||
{% csrf_token %}
|
||||
<div class="modal-header" style="background:lightblue;">
|
||||
<h4 class="modal-title" id="myLargeModalLabel" style="text-align:center;">OPPORTUNITIES</h4>
|
||||
</div>
|
||||
|
|
@ -843,7 +822,7 @@
|
|||
<div class="col-md-12">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading view-pad">
|
||||
Assigned Users & Teams
|
||||
Assigned Users & Teams
|
||||
</div>
|
||||
<div class="panel-content">
|
||||
<div class="filter_col col-md-6">
|
||||
|
|
@ -1178,7 +1157,6 @@
|
|||
<div class="modal-dialog modal-lg" role="document">
|
||||
<div class="modal-content">
|
||||
<form class= "form_opp_edit" id="form_opp_edit" method="POST" action="{% url 'opportunities:opp_edit' pk=opportunity.id %}">
|
||||
{% csrf_token %}
|
||||
<div class="modal-header" style="background:lightblue;">
|
||||
<h4 class="modal-title" id="myLargeModalLabel" style="text-align:center;">OPPORTUNITIES</h4>
|
||||
</div>
|
||||
|
|
@ -1187,7 +1165,7 @@
|
|||
<div class="col-md-12">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading view-pad">
|
||||
Assigned Users & Teams
|
||||
Assigned Users & Teams
|
||||
</div>
|
||||
<div class="panel-content">
|
||||
<div class="filter_col col-md-6">
|
||||
|
|
@ -1395,7 +1373,6 @@
|
|||
<div class="modal-dialog modal-lg" role="document">
|
||||
<div class="modal-content">
|
||||
<form id="form_case" method="POST" action="" >
|
||||
{% csrf_token %}
|
||||
<div class="modal-header" style="background:lightblue;">
|
||||
<h4 class="modal-title" id="myLargeModalLabel" style="text-align:center;">Overview</h4>
|
||||
</div>
|
||||
|
|
@ -1404,7 +1381,7 @@
|
|||
<div class="col-md-12">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading view-pad">
|
||||
Assigned Users & Teams
|
||||
Assigned Users & Teams
|
||||
</div>
|
||||
<div class="panel-content">
|
||||
<div class="filter_col col-md-6">
|
||||
|
|
@ -1704,7 +1681,6 @@
|
|||
<div class="modal-dialog modal-lg" role="document">
|
||||
<div class="modal-content">
|
||||
<form class= "form_case_edit" id="form_case_edit" method="POST" action="{% url 'cases:edit_case' case.id %}">
|
||||
{% csrf_token %}
|
||||
<div class="modal-header" style="background:lightblue;">
|
||||
<h4 class="modal-title" id="myLargeModalLabel" style="text-align:center;">CASES</h4>
|
||||
</div>
|
||||
|
|
@ -1713,7 +1689,7 @@
|
|||
<div class="col-md-12">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading view-pad">
|
||||
Assigned Users & Teams
|
||||
Assigned Users & Teams
|
||||
</div>
|
||||
<div class="panel-content">
|
||||
<div class="filter_col col-md-6">
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Django CRM</title>
|
||||
<!-- Bootstrap core CSS -->
|
||||
<link href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css?family=Muli" rel="stylesheet">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/css/bootstrap.min.css" />
|
||||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.9/css/all.css" />
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.47/css/bootstrap-datetimepicker.min.css" />
|
||||
|
|
@ -56,5 +56,11 @@
|
|||
{% block js_block %}
|
||||
|
||||
{% endblock js_block %}
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
word = window.location.pathname.split('/')[1]
|
||||
$('#'+word).addClass('active')
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -24,8 +24,7 @@
|
|||
<div class="filter_row row marl">
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
|
||||
<form id="cases_filter" method="POST" action="" >{% csrf_token %}
|
||||
<form id="cases_filter" method="POST" action="" >
|
||||
<div class="card-body">
|
||||
<div class="card-title">Filters</div>
|
||||
<div class="row marl">
|
||||
|
|
|
|||
|
|
@ -13,39 +13,10 @@
|
|||
|
||||
{% 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="card">
|
||||
|
||||
<div class="card-body">
|
||||
<div class="card-title">
|
||||
Assigned Users & Teams
|
||||
</div>
|
||||
<div class="row marl">
|
||||
<div class="filter_col col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Assigned Users</label>
|
||||
{{ case_form.assigned_to }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="filter_col col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Teams</label>
|
||||
{{ case_form.teams }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br clear="all">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br clear="all">
|
||||
</div> -->
|
||||
<form id="submitForm" method="POST" action="" novalidate>
|
||||
<div class="overview_form_block row marl">
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
|
||||
<div class="card-body">
|
||||
<div class="card-title text-center">
|
||||
CREATE CASE
|
||||
|
|
@ -99,7 +70,7 @@
|
|||
<label for="exampleInputEmail1">Assigned Users</label>
|
||||
<select class="assigned_users form-control" name="assigned_to" multiple="multiple">
|
||||
{% for user in users %}
|
||||
<option value="{{user.id}}" {% if user in case_obj.assigned_to.all %} selected="" {% endif %}>{{user.email}}</option>
|
||||
<option value="{{user.id}}" {% if user in case_obj.assigned_to.all or user.id in assignedto_list %} selected="" {% endif %}>{{user.email}}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<span class="error">{{ case_form.assigned_to.errors }}</span>
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@
|
|||
<!-- show case ends here-->
|
||||
</div>
|
||||
<!-- Comments Section starts-->
|
||||
<form id="comment_form" method="POST" enctype="multipart/form-data">{% csrf_token %}
|
||||
<form id="comment_form" method="POST" enctype="multipart/form-data">
|
||||
<div class="filter_col col-md-12">
|
||||
<div style="background-color:gray"><h4 >Comments</h4></div>
|
||||
<div class="form-group">
|
||||
|
|
@ -131,7 +131,8 @@
|
|||
<h4 class="modal-title">Update Your Comment</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="form-group"><form id="comment_edit_form" method="POST" >{% csrf_token %}
|
||||
<div class="form-group">
|
||||
<form id="comment_edit_form" method="POST" >
|
||||
<textarea class="form-control" textarea cols="40" id="id_editcomment" name="comment" rows="1" placeholder="Submit Your Comments"></textarea>
|
||||
<input type="hidden" value="{{case.id}}" name="caseid">
|
||||
<input type="hidden" value="" name="commentid" id="commentid">
|
||||
|
|
@ -635,7 +636,7 @@
|
|||
<!--END CREATE MEETING MODEL-->
|
||||
</div>
|
||||
</div>
|
||||
<form id="edit_form" method="POST" action="{% url 'cases:edit_case' case.id %}" >{% csrf_token %}
|
||||
<form id="edit_form" method="POST" action="{% url 'cases:edit_case' case.id %}" >
|
||||
<div class="overview_form_block row marl" id="editdiv" {% if edit2%}style="display:block"{% endif %} style="display:none">
|
||||
<div class="col-md-12">
|
||||
<div class="panel panel-default">
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@
|
|||
</div>
|
||||
<div class="row marl">
|
||||
<div class="col-md-12">
|
||||
<form id="comment_form" method="POST" enctype="multipart/form-data">{% csrf_token %}
|
||||
<form id="comment_form" method="POST" enctype="multipart/form-data">
|
||||
<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>
|
||||
|
|
@ -145,7 +145,7 @@
|
|||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title">Update Your Comment</h4>
|
||||
</div>
|
||||
<form id="comment_edit_form" method="POST" >{% csrf_token %}
|
||||
<form id="comment_edit_form" method="POST" >
|
||||
<div class="modal-body">
|
||||
<div class="form-group">
|
||||
<textarea class="form-control" textarea cols="40" rows="3" id="id_editcomment" name="comment" placeholder="Submit Your Comments"></textarea>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
{% load staticfiles %}
|
||||
|
||||
{% block content %}
|
||||
<form id="add_form" method="POST" action="" novalidate>{%csrf_token%}
|
||||
<form id="add_form" method="POST" action="" novalidate>
|
||||
<div class="overview_form_block row marl justify-content-center">
|
||||
<div class="col-md-6">
|
||||
<div class="card">
|
||||
|
|
@ -48,7 +48,6 @@
|
|||
<br>
|
||||
<div class="row marl buttons_row form_btn_row text-center">
|
||||
<button class="btn btn-default save" type="submit">Change Password</button>
|
||||
<button class="btn btn-default" type="submit">Reset</button>
|
||||
<button class="btn btn-default" type="submit">Cancel</button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
|
||||
<form id="contacts_filter" action="" method="POST">{%csrf_token%}
|
||||
<form id="contacts_filter" action="" method="POST">
|
||||
<div class="card-body">
|
||||
<div class="card-title">Filters</div>
|
||||
<div class="row marl">
|
||||
|
|
|
|||
|
|
@ -13,40 +13,10 @@
|
|||
|
||||
{% 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="card">
|
||||
<div class="card-body">
|
||||
<div class="card-title">
|
||||
Assigned Users & Teams
|
||||
</div>
|
||||
<div class="row marl">
|
||||
<div class="filter_col col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Assigned Users</label>
|
||||
{{ contact_form.assigned_to }}
|
||||
{{ contact_form.assigned_to.errors }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="filter_col col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Teams</label>
|
||||
{{ contact_form.teams }}
|
||||
{{ contact_form.teams.errors }}
|
||||
</div>
|
||||
</div>
|
||||
<br clear="all">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br clear="all">
|
||||
</div> -->
|
||||
<form id="add_form" method="POST" action='' novalidate>
|
||||
<div class="overview_form_block row marl">
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
|
||||
<div class="card-body">
|
||||
<div class="card-title text-center">
|
||||
CREATE CONTACT
|
||||
|
|
@ -94,7 +64,7 @@
|
|||
<label for="exampleInputEmail1">Assigned Users</label>
|
||||
<select class="assigned_users form-control" name="assigned_to" multiple="multiple">
|
||||
{% for user in users %}
|
||||
<option value="{{user.id}}" {% if user in contact_obj.assigned_to.all %} selected="" {% endif %}>{{user.email}}</option>
|
||||
<option value="{{user.id}}" {% if user in contact_obj.assigned_to.all or user.id in assignedto_list %} selected="" {% endif %}>{{user.email}}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<span class="error">{{ contact_form.assigned_to.errors }}</span>
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@
|
|||
</div>
|
||||
<div class="row marl">
|
||||
<div class="col-md-12">
|
||||
<form id="comment_form" method="POST" enctype="multipart/form-data">{% csrf_token %}
|
||||
<form id="comment_form" method="POST" enctype="multipart/form-data">
|
||||
<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>
|
||||
|
|
@ -148,7 +148,7 @@
|
|||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title">Update Your Comment</h4>
|
||||
</div>
|
||||
<form id="comment_edit_form" method="POST" >{% csrf_token %}
|
||||
<form id="comment_edit_form" method="POST" >
|
||||
<div class="modal-body">
|
||||
<div class="form-group">
|
||||
<textarea class="form-control" textarea cols="40" rows="3" id="id_editcomment" name="comment" placeholder="Submit Your Comments"></textarea>
|
||||
|
|
|
|||
|
|
@ -10,10 +10,8 @@
|
|||
<li class="active">Create Mail</li>
|
||||
</ol>
|
||||
<!-- breadcrumb ends here -->
|
||||
|
||||
<!-- overview starts here -->
|
||||
<form id="email_form" action="." method="POST">
|
||||
{% csrf_token %}
|
||||
<div class="overview_form_block row marl">
|
||||
<div class="col-md-12">
|
||||
<div class="panel panel-default">
|
||||
|
|
|
|||
|
|
@ -9,23 +9,19 @@
|
|||
|
||||
|
||||
<form method="POST" action="/emails/email_sent/">
|
||||
{% csrf_token %}
|
||||
<input type="submit" name="sent_email" id="sent_mail" value="sent mails"/>
|
||||
<input type="submit" name="sent_email" id="sent_mail" value="sent mails"/>
|
||||
</form>
|
||||
|
||||
<form method="POST" action="/emails/email_trash/">
|
||||
{% csrf_token %}
|
||||
<input type="submit" name="trash" id="trash" value="trash"/>
|
||||
<input type="submit" name="trash" id="trash" value="trash"/>
|
||||
</form>
|
||||
|
||||
<form method="POST" action="/emails/email_draft/">
|
||||
{% csrf_token %}
|
||||
<input type="submit" name="draft" id="draft" value="draft"/>
|
||||
<input type="submit" name="draft" id="draft" value="draft"/>
|
||||
</form>
|
||||
|
||||
<div id="table" style="display:none">
|
||||
<form method="POST" id="detail" action="/emails/email/" enctype="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
<table border="1">
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
<div class="panel-heading">
|
||||
filters
|
||||
</div>
|
||||
<form method="GET" action="/emails/email_draft/" >{% csrf_token %}
|
||||
<form method="GET" action="/emails/email_draft/" >
|
||||
<div class="panel-content">
|
||||
<div class="filter_col col-md-3">
|
||||
<div class="form-group">
|
||||
|
|
|
|||
|
|
@ -35,7 +35,6 @@
|
|||
filters
|
||||
</div>
|
||||
<form method="GET" action="/emails/email_sent/" >
|
||||
{% csrf_token %}
|
||||
<div class="panel-content">
|
||||
<div class="filter_col col-md-3">
|
||||
<div class="form-group">
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
{% load staticfiles %}
|
||||
{% block breadcrumb %}
|
||||
|
||||
<form id="formid" method='POST' action="{% url 'leads:leads_convert' post.id%}">{% csrf_token %}
|
||||
<form id="formid" method='POST' action="{% url 'leads:leads_convert' post.id%}">
|
||||
|
||||
<div class="page-header">
|
||||
<h3>
|
||||
|
|
@ -240,7 +240,6 @@
|
|||
|
||||
|
||||
<div class="contactconvert" style="display:none;">
|
||||
{% csrf_token %}
|
||||
<div class="assigned_teams row marl">
|
||||
<div class="col-md-12">
|
||||
<div class="panel panel-default">
|
||||
|
|
|
|||
|
|
@ -13,36 +13,7 @@
|
|||
|
||||
{% 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="card">
|
||||
<div class="card-body">
|
||||
<div class="card-title">
|
||||
Assigned Users & Teams
|
||||
</div>
|
||||
<div class="row marl">
|
||||
<div class="filter_col col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Assigned Users</label>
|
||||
{{ lead_form.assigned_to }}
|
||||
{{ lead_form.assigned_to.errors }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="filter_col col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Teams</label>
|
||||
{{ lead_form.teams }}
|
||||
{{ lead_form.teams.errors }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br clear="all">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br clear="all">
|
||||
</div> -->
|
||||
<form id="add_form" method="POST" action="" novalidate>
|
||||
<div class="overview_form_block row marl">
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
|
|
@ -110,7 +81,7 @@
|
|||
<label for="exampleInputEmail1">Assigned Users</label>
|
||||
<select class="assigned_users form-control" name="assigned_to" multiple="multiple">
|
||||
{% for user in users %}
|
||||
<option value="{{user.id}}" {% if user in lead_obj.assigned_to.all %} selected="" {% endif %}>{{user.email}}</option>
|
||||
<option value="{{user.id}}" {% if user in lead_obj.assigned_to.all or user.id in assignedto_list %} selected="" {% endif %}>{{user.email}}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<span class="error">{{ lead_form.assigned_to.errors }}</span>
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
|
||||
<form id="leads_filter" action="" method="POST">{%csrf_token%}
|
||||
<form id="leads_filter" action="" method="POST">
|
||||
<div class="card-body ">
|
||||
<div class="card-title">Filters</div>
|
||||
<div class="row marl">
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@
|
|||
</div>
|
||||
<div class="row marl">
|
||||
<div class="col-md-12">
|
||||
<form id="comment_form" method="POST" enctype="multipart/form-data">{% csrf_token %}
|
||||
<form id="comment_form" method="POST" enctype="multipart/form-data">
|
||||
<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>
|
||||
|
|
@ -183,7 +183,7 @@
|
|||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title">Update Your Comment</h4>
|
||||
</div>
|
||||
<form id="comment_edit_form" method="POST" >{% csrf_token %}
|
||||
<form id="comment_edit_form" method="POST" >
|
||||
<div class="modal-body">
|
||||
<div class="form-group">
|
||||
<textarea class="form-control" textarea cols="40" rows="3" id="id_editcomment" name="comment" placeholder="Submit Your Comments"></textarea><span><i id="CommentEditError" style="display:none; color:red"></i></span>
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
<div class="login_block">
|
||||
<div class="login_form_block">
|
||||
<div class="welcome">Login to your crm account</div>
|
||||
<form method="POST" action="">{% csrf_token %}
|
||||
<form method="POST" action="">
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control" id="exampleInputEmail1" placeholder="Email" name="email">
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -8,16 +8,17 @@
|
|||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav mr-auto">
|
||||
{% if request.user.role == "ADMIN" %}
|
||||
<li class="nav-item"><a class="nav-link" href="{% url 'common:users_list' %}">Users</a></li>
|
||||
<li class="nav-item"><a class="nav-link" id="users" href="{% url 'common:users_list' %}">Users</a></li>
|
||||
{% endif %}
|
||||
<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>
|
||||
<li class="nav-item"><a class="nav-link" id="accounts" href="{% url 'accounts:list' %}">Accounts</a></li>
|
||||
<li class="nav-item"><a class="nav-link" id="contacts" href="{% url 'contacts:list' %}">Contacts</a></li>
|
||||
<li class="nav-item"><a class="nav-link" id="leads" href="{% url 'leads:list' %}">Leads</a></li>
|
||||
<li class="nav-item"><a class="nav-link" id="opportunities"href="{% url 'opportunities:list' %}">Opportunities</a></li>
|
||||
<li class="nav-item"><a class="nav-link" id="cases" href="{% url 'cases:list' %}">Cases</a></li>
|
||||
</ul>
|
||||
|
||||
<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"
|
||||
|
|
@ -30,11 +31,15 @@
|
|||
<b class="caret"></b></a>
|
||||
{% endwith %}
|
||||
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
|
||||
<a class="dropdown-item" href="/change-password/">Change Password</a>
|
||||
<a class="dropdown-item" href="{% url 'common:profile' %}">profile</a>
|
||||
<a class="dropdown-item" href="/change-password/"><i class="fas fa-key"></i> Change Password</a>
|
||||
<a class="dropdown-item" href="{% url 'common:profile' %}"><i class="fas fa-user"></i> Profile</a>
|
||||
<a class="dropdown-item" href="{% url 'common:logout' %}"><i class="fas fa-sign-out-alt"></i> Logout</a>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -12,39 +12,10 @@
|
|||
</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="card">
|
||||
|
||||
<div class="card-body">
|
||||
<div class="card-title">
|
||||
Assigned Users & Teams
|
||||
</div>
|
||||
<div class="row marl">
|
||||
<div class="filter_col col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Assigned Users</label>
|
||||
{{ opportunity_form.assigned_to }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="filter_col col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="id_teams">Teams</label>
|
||||
{{ opportunity_form.teams }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br clear="all">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br clear="all">
|
||||
</div> -->
|
||||
<form class= "form_user" method="POST" action="" novalidate>
|
||||
<div class="overview_form_block row marl">
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
|
||||
<div class="card-body">
|
||||
<div class="card-title text-center">
|
||||
CREATE OPPORTUNITY
|
||||
|
|
@ -106,7 +77,7 @@
|
|||
<label for="exampleInputEmail1">Assigned Users</label>
|
||||
<select class="assigned_users form-control" name="assigned_to" multiple="multiple">
|
||||
{% for user in users %}
|
||||
<option value="{{user.id}}" {% if user in opportunity_obj.assigned_to.all %} selected="" {% endif %}>{{user.email}}</option>
|
||||
<option value="{{user.id}}" {% if user in opportunity_obj.assigned_to.all or user.id in assignedto_list %} selected="" {% endif %}>{{user.email}}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -24,8 +24,7 @@
|
|||
<div class="filter_row row marl">
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
|
||||
<form id="opportunity_filter" method="POST" action="">{% csrf_token %}
|
||||
<form id="opportunity_filter" method="POST" action="">
|
||||
<div class="card-body ">
|
||||
<div class="card-title">Filters</div>
|
||||
<div class="row marl">
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@
|
|||
</div>
|
||||
<div class="row marl">
|
||||
<div class="col-md-12">
|
||||
<form id="comment_form" method="POST" enctype="multipart/form-data">{% csrf_token %}
|
||||
<form id="comment_form" method="POST" enctype="multipart/form-data">
|
||||
<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>
|
||||
|
|
@ -163,7 +163,7 @@
|
|||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title">Update Your Comment</h4>
|
||||
</div>
|
||||
<form id="comment_edit_form" method="POST" >{% csrf_token %}
|
||||
<form id="comment_edit_form" method="POST" >
|
||||
<div class="modal-body">
|
||||
<div class="form-group">
|
||||
<textarea class="form-control" textarea cols="40" rows="3" id="id_editcomment" name="comment" placeholder="Submit Your Comments"></textarea><span><i id="CommentEditError" style="display:none; color:red"></i></span>
|
||||
|
|
|
|||
|
|
@ -7,48 +7,8 @@
|
|||
<div class="col-md-7">
|
||||
<div class="row marl search-row">
|
||||
<form id="filter-form" method="get">
|
||||
{% csrf_token %}
|
||||
<div class="form-group col-md-8 col-sm-8">
|
||||
<div class="input-group">
|
||||
{# <div class="input-group-btn left-dropdown">#}
|
||||
{# <button type="button" class="btn dropdown-toggle filters-button btn-default"#}
|
||||
{# title="Filter"#}
|
||||
{# data-toggle="dropdown" tabindex="-1" aria-expanded="false">#}
|
||||
{# <span class="filters-label">All</span>#}
|
||||
{# <span class="caret"></span>#}
|
||||
{# </button>#}
|
||||
{# <ul class="dropdown-menu pull-left filter-menu">#}
|
||||
{##}
|
||||
{# <li><a class="preset" tabindex="-1" href="javascript:" data-name=""#}
|
||||
{# data-action="selectPreset"><span#}
|
||||
{# class="glyphicon glyphicon-ok pull-right"></span>#}
|
||||
{# <div>All</div>#}
|
||||
{# </a></li>#}
|
||||
{# <li><a class="preset" tabindex="-1" href="javascript:" data-name="portalUsers"#}
|
||||
{# data-action="selectPreset">#}
|
||||
{# <div>Portal Users</div>#}
|
||||
{# </a></li>#}
|
||||
{# <li class="divider preset-control hidden"></li>#}
|
||||
{##}
|
||||
{##}
|
||||
{# <li class="preset-control remove-preset hidden"><a tabindex="-1" href="#"#}
|
||||
{# data-action="removePreset">Remove#}
|
||||
{# Filter</a></li>#}
|
||||
{# <li class="preset-control save-preset hidden"><a tabindex="-1" href="#"#}
|
||||
{# data-action="savePreset">Save#}
|
||||
{# Filter</a>#}
|
||||
{# </li>#}
|
||||
{# <li class="divider"></li>#}
|
||||
{##}
|
||||
{# <li class="checkbox"><label><input type="checkbox" data-role="boolFilterCheckbox"#}
|
||||
{# name="onlyMy">#}
|
||||
{# Only My</label></li>#}
|
||||
{# <li class="checkbox"><label><input type="checkbox" data-role="boolFilterCheckbox"#}
|
||||
{# name="followed"> Followed</label>#}
|
||||
{# </li>#}
|
||||
{# </ul>#}
|
||||
{# </div>#}
|
||||
|
||||
<input placeholder="Search Calls" type="text" class="form-control text-filter"
|
||||
name="event_name" value="" tabindex="1">
|
||||
<div class="input-group-btn">
|
||||
|
|
@ -335,7 +295,6 @@
|
|||
</div>
|
||||
<!-- CREATE CALL MODEL -->
|
||||
<form id="model-form" method="post">
|
||||
{% csrf_token %}
|
||||
<div class="modal fade" id="call-create-model" role="dialog" data-keyboard="false"
|
||||
data-backdrop="static">
|
||||
<div class="modal-dialog modal-lg">
|
||||
|
|
|
|||
|
|
@ -7,48 +7,8 @@
|
|||
<div class="col-md-7">
|
||||
<div class="row marl search-row">
|
||||
<form id="filter-form" method="get">
|
||||
{% csrf_token %}
|
||||
<div class="form-group col-md-8 col-sm-8">
|
||||
<div class="input-group">
|
||||
{# <div class="input-group-btn left-dropdown">#}
|
||||
{# <button type="button" class="btn dropdown-toggle filters-button btn-default"#}
|
||||
{# title="Filter"#}
|
||||
{# data-toggle="dropdown" tabindex="-1" aria-expanded="false">#}
|
||||
{# <span class="filters-label">All</span>#}
|
||||
{# <span class="caret"></span>#}
|
||||
{# </button>#}
|
||||
{# <ul class="dropdown-menu pull-left filter-menu">#}
|
||||
{##}
|
||||
{# <li><a class="preset" tabindex="-1" href="javascript:" data-name=""#}
|
||||
{# data-action="selectPreset"><span#}
|
||||
{# class="glyphicon glyphicon-ok pull-right"></span>#}
|
||||
{# <div>All</div>#}
|
||||
{# </a></li>#}
|
||||
{# <li><a class="preset" tabindex="-1" href="javascript:" data-name="portalUsers"#}
|
||||
{# data-action="selectPreset">#}
|
||||
{# <div>Portal Users</div>#}
|
||||
{# </a></li>#}
|
||||
{# <li class="divider preset-control hidden"></li>#}
|
||||
{##}
|
||||
{##}
|
||||
{# <li class="preset-control remove-preset hidden"><a tabindex="-1" href="#"#}
|
||||
{# data-action="removePreset">Remove#}
|
||||
{# Filter</a></li>#}
|
||||
{# <li class="preset-control save-preset hidden"><a tabindex="-1" href="#"#}
|
||||
{# data-action="savePreset">Save#}
|
||||
{# Filter</a>#}
|
||||
{# </li>#}
|
||||
{# <li class="divider"></li>#}
|
||||
{##}
|
||||
{# <li class="checkbox"><label><input type="checkbox" data-role="boolFilterCheckbox"#}
|
||||
{# name="onlyMy">#}
|
||||
{# Only My</label></li>#}
|
||||
{# <li class="checkbox"><label><input type="checkbox" data-role="boolFilterCheckbox"#}
|
||||
{# name="followed"> Followed</label>#}
|
||||
{# </li>#}
|
||||
{# </ul>#}
|
||||
{# </div>#}
|
||||
|
||||
<input placeholder="Search Meetings" type="text" class="form-control text-filter"
|
||||
name="event_name" value="" tabindex="1">
|
||||
<div class="input-group-btn">
|
||||
|
|
@ -261,7 +221,6 @@
|
|||
</div>
|
||||
<!-- CREATE MEETING MODEL -->
|
||||
<form id="model-form" method="POST" novalidate >
|
||||
{% csrf_token %}
|
||||
<div class="modal fade" id="meeting-create-model" role="dialog" data-keyboard="false"
|
||||
data-backdrop="static">
|
||||
<div class="modal-dialog modal-lg">
|
||||
|
|
|
|||
|
|
@ -7,48 +7,8 @@
|
|||
<div class="col-md-7">
|
||||
<div class="row marl search-row">
|
||||
<form id="filter-form" method="get">
|
||||
{% csrf_token %}
|
||||
<div class="form-group col-md-8 col-sm-8">
|
||||
<div class="input-group">
|
||||
{# <div class="input-group-btn left-dropdown">#}
|
||||
{# <button type="button" class="btn dropdown-toggle filters-button btn-default"#}
|
||||
{# title="Filter"#}
|
||||
{# data-toggle="dropdown" tabindex="-1" aria-expanded="false">#}
|
||||
{# <span class="filters-label">All</span>#}
|
||||
{# <span class="caret"></span>#}
|
||||
{# </button>#}
|
||||
{# <ul class="dropdown-menu pull-left filter-menu">#}
|
||||
{##}
|
||||
{# <li><a class="preset" tabindex="-1" href="javascript:" data-name=""#}
|
||||
{# data-action="selectPreset"><span#}
|
||||
{# class="glyphicon glyphicon-ok pull-right"></span>#}
|
||||
{# <div>All</div>#}
|
||||
{# </a></li>#}
|
||||
{# <li><a class="preset" tabindex="-1" href="javascript:" data-name="portalUsers"#}
|
||||
{# data-action="selectPreset">#}
|
||||
{# <div>Portal Users</div>#}
|
||||
{# </a></li>#}
|
||||
{# <li class="divider preset-control hidden"></li>#}
|
||||
{##}
|
||||
{##}
|
||||
{# <li class="preset-control remove-preset hidden"><a tabindex="-1" href="#"#}
|
||||
{# data-action="removePreset">Remove#}
|
||||
{# Filter</a></li>#}
|
||||
{# <li class="preset-control save-preset hidden"><a tabindex="-1" href="#"#}
|
||||
{# data-action="savePreset">Save#}
|
||||
{# Filter</a>#}
|
||||
{# </li>#}
|
||||
{# <li class="divider"></li>#}
|
||||
{##}
|
||||
{# <li class="checkbox"><label><input type="checkbox" data-role="boolFilterCheckbox"#}
|
||||
{# name="onlyMy">#}
|
||||
{# Only My</label></li>#}
|
||||
{# <li class="checkbox"><label><input type="checkbox" data-role="boolFilterCheckbox"#}
|
||||
{# name="followed"> Followed</label>#}
|
||||
{# </li>#}
|
||||
{# </ul>#}
|
||||
{# </div>#}
|
||||
|
||||
<input placeholder="Search Tasks" type="text" class="form-control text-filter"
|
||||
name="event_name" value="" tabindex="1">
|
||||
<div class="input-group-btn">
|
||||
|
|
@ -295,7 +255,6 @@
|
|||
|
||||
<!-- CREATE TASK MODEL -->
|
||||
<form id="model-form" method="post">
|
||||
{% csrf_token %}
|
||||
<div class="modal fade" id="task-create-model" role="dialog" data-keyboard="false"
|
||||
data-backdrop="static">
|
||||
<div class="modal-dialog modal-lg">
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
{% block content %}
|
||||
<h1>Registration</h1>
|
||||
<form method="POST" class="user-form">
|
||||
{% csrf_token %}
|
||||
{{ reg_form.as_p }}
|
||||
<button class="btn btn-primary" type="submit">Submit</button></form>
|
||||
{% endblock %}
|
||||
|
|
@ -4,7 +4,6 @@
|
|||
</head>
|
||||
<body>
|
||||
<form method="POST" action="/auth/">
|
||||
{% csrf_token %}
|
||||
USERNAME:<input type="text" name="username"></input>
|
||||
PASSWORD:<input type="password" name="password"></input>
|
||||
<input type="submit" name="submit"></input>
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
{% endblock breadcrumb %}
|
||||
{% block content %}
|
||||
<form id="add_form" method="POST" action="" novalidate>{%csrf_token%}
|
||||
<form id="add_form" method="POST" action="" novalidate>
|
||||
<div class="overview_form_block row marl justify-content-center">
|
||||
<div class="col-md-6">
|
||||
<div class="card">
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="card-title">Filters</div>
|
||||
<form id="users_filter" action="" method="POST">{%csrf_token%}
|
||||
<form id="users_filter" action="" method="POST">
|
||||
<div class="row marl">
|
||||
<div class="filter_col col-4">
|
||||
<div class="form-group">
|
||||
|
|
|
|||
Loading…
Reference in a new issue