From 6b0df34cdd5acd8c7ad6e53301178c960ea0b395 Mon Sep 17 00:00:00 2001 From: emile Date: Thu, 10 Apr 2025 15:06:07 +0300 Subject: [PATCH] new --- osinaweb/.idea/.gitignore | 8 ++ .../inspectionProfiles/Project_Default.xml | 19 +++ .../inspectionProfiles/profiles_settings.xml | 6 + osinaweb/.idea/misc.xml | 7 ++ osinaweb/.idea/modules.xml | 8 ++ osinaweb/.idea/osinaweb.iml | 34 +++++ osinaweb/.idea/vcs.xml | 6 + .../__pycache__/__init__.cpython-313.pyc | Bin 184 -> 182 bytes .../__pycache__/admin.cpython-313.pyc | Bin 688 -> 686 bytes .../__pycache__/apps.cpython-313.pyc | Bin 558 -> 556 bytes .../__pycache__/models.cpython-313.pyc | Bin 4577 -> 4575 bytes .../__pycache__/__init__.cpython-313.pyc | Bin 180 -> 178 bytes .../billing/__pycache__/admin.cpython-313.pyc | Bin 1019 -> 1017 bytes .../billing/__pycache__/apps.cpython-313.pyc | Bin 546 -> 544 bytes .../__pycache__/models.cpython-313.pyc | Bin 11370 -> 11368 bytes .../add/__pycache__/views.cpython-313.pyc | Bin 12018 -> 12016 bytes .../__pycache__/__init__.cpython-313.pyc | Bin 185 -> 183 bytes .../__pycache__/admin.cpython-313.pyc | Bin 229 -> 227 bytes .../__pycache__/apps.cpython-313.pyc | Bin 561 -> 559 bytes .../__pycache__/decorators.cpython-313.pyc | Bin 1336 -> 1334 bytes .../__pycache__/models.cpython-313.pyc | Bin 183 -> 181 bytes .../__pycache__/urls.cpython-313.pyc | Bin 2721 -> 2719 bytes .../__pycache__/views.cpython-313.pyc | Bin 14245 -> 14243 bytes osinaweb/db.sqlite3 | Bin 2142208 -> 2142208 bytes .../__pycache__/__init__.cpython-313.pyc | Bin 180 -> 178 bytes .../osichat/__pycache__/admin.cpython-313.pyc | Bin 1405 -> 1403 bytes .../osichat/__pycache__/apps.cpython-313.pyc | Bin 546 -> 544 bytes .../__pycache__/models.cpython-313.pyc | Bin 23373 -> 23371 bytes .../__pycache__/__init__.cpython-313.pyc | Bin 182 -> 180 bytes .../__pycache__/admin.cpython-313.pyc | Bin 3421 -> 3419 bytes .../__pycache__/apps.cpython-313.pyc | Bin 552 -> 550 bytes .../__pycache__/decorators.cpython-313.pyc | Bin 1319 -> 1317 bytes .../__pycache__/forms.cpython-313.pyc | Bin 1363 -> 1361 bytes .../__pycache__/models.cpython-313.pyc | Bin 32065 -> 32063 bytes .../__pycache__/urls.cpython-313.pyc | Bin 6276 -> 6274 bytes .../__pycache__/views.cpython-313.pyc | Bin 36857 -> 36855 bytes .../add/__pycache__/urls.cpython-313.pyc | Bin 4077 -> 4075 bytes .../add/__pycache__/views.cpython-313.pyc | Bin 36398 -> 36396 bytes osinaweb/osinacore/add/urls.py | 2 + osinaweb/osinacore/add/views.py | 48 +++++++ .../__pycache__/serializers.cpython-313.pyc | Bin 1710 -> 1708 bytes .../api/__pycache__/urls.cpython-313.pyc | Bin 544 -> 542 bytes .../api/__pycache__/utils.cpython-313.pyc | Bin 2635 -> 2633 bytes .../api/__pycache__/views.cpython-313.pyc | Bin 4928 -> 4926 bytes .../delete/__pycache__/urls.cpython-313.pyc | Bin 1901 -> 1899 bytes .../delete/__pycache__/views.cpython-313.pyc | Bin 7655 -> 7653 bytes .../edit/__pycache__/urls.cpython-313.pyc | Bin 3254 -> 3252 bytes .../edit/__pycache__/views.cpython-313.pyc | Bin 29722 -> 29720 bytes .../__pycache__/urls.cpython-313.pyc | Bin 404 -> 402 bytes .../__pycache__/views.cpython-313.pyc | Bin 638 -> 636 bytes .../add_templates/add-addressbook.html | 110 ++++++++++++++++ .../templates/listing_pages/adressbooks.html | 118 ++++++++++++++++++ osinaweb/osinacore/templates/main.html | 43 +++++++ osinaweb/osinacore/urls.py | 2 +- osinaweb/osinacore/views.py | 12 ++ .../__pycache__/__init__.cpython-313.pyc | Bin 181 -> 179 bytes .../__pycache__/settings.cpython-313.pyc | Bin 4205 -> 4203 bytes .../osinaweb/__pycache__/urls.cpython-313.pyc | Bin 1580 -> 1578 bytes osinaweb/requirements.txt | 10 ++ osinaweb/static/dist/output.css | 9 +- .../__pycache__/__init__.cpython-313.pyc | Bin 180 -> 178 bytes .../support/__pycache__/admin.cpython-313.pyc | Bin 1062 -> 1060 bytes .../support/__pycache__/apps.cpython-313.pyc | Bin 546 -> 544 bytes .../__pycache__/models.cpython-313.pyc | Bin 15820 -> 15818 bytes 64 files changed, 437 insertions(+), 5 deletions(-) create mode 100644 osinaweb/.idea/.gitignore create mode 100644 osinaweb/.idea/inspectionProfiles/Project_Default.xml create mode 100644 osinaweb/.idea/inspectionProfiles/profiles_settings.xml create mode 100644 osinaweb/.idea/misc.xml create mode 100644 osinaweb/.idea/modules.xml create mode 100644 osinaweb/.idea/osinaweb.iml create mode 100644 osinaweb/.idea/vcs.xml create mode 100644 osinaweb/osinacore/templates/add_templates/add-addressbook.html create mode 100644 osinaweb/osinacore/templates/listing_pages/adressbooks.html create mode 100644 osinaweb/requirements.txt diff --git a/osinaweb/.idea/.gitignore b/osinaweb/.idea/.gitignore new file mode 100644 index 00000000..13566b81 --- /dev/null +++ b/osinaweb/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/osinaweb/.idea/inspectionProfiles/Project_Default.xml b/osinaweb/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 00000000..684dccda --- /dev/null +++ b/osinaweb/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,19 @@ + + + + \ No newline at end of file diff --git a/osinaweb/.idea/inspectionProfiles/profiles_settings.xml b/osinaweb/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 00000000..105ce2da --- /dev/null +++ b/osinaweb/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/osinaweb/.idea/misc.xml b/osinaweb/.idea/misc.xml new file mode 100644 index 00000000..a305c083 --- /dev/null +++ b/osinaweb/.idea/misc.xml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/osinaweb/.idea/modules.xml b/osinaweb/.idea/modules.xml new file mode 100644 index 00000000..f5efc726 --- /dev/null +++ b/osinaweb/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/osinaweb/.idea/osinaweb.iml b/osinaweb/.idea/osinaweb.iml new file mode 100644 index 00000000..182c0fdd --- /dev/null +++ b/osinaweb/.idea/osinaweb.iml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/osinaweb/.idea/vcs.xml b/osinaweb/.idea/vcs.xml new file mode 100644 index 00000000..6c0b8635 --- /dev/null +++ b/osinaweb/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/osinaweb/addressbook/__pycache__/__init__.cpython-313.pyc b/osinaweb/addressbook/__pycache__/__init__.cpython-313.pyc index eec335f375d0cad18bf754d41ed72c0a50ad4af6..69a32a52b72805effe965e80b7824e673654b39c 100644 GIT binary patch delta 61 zcmdnNxQ&tfGcPX}0}!~Be4EH^tQM*tTAW%`te={jnUk8DlapDQs_&AYT$-DjS5mB> PoS%}KlvtcPF)auHRCE;@ delta 63 zcmdnSxPy`VGcPX}0}wb^UYy8ntP!psTAW%`tY4g%lbM^ElapDQs_&AYT$-DjS5mAW Ro?n!$pI@ArmpCyc2mo!T6?gyu diff --git a/osinaweb/addressbook/__pycache__/admin.cpython-313.pyc b/osinaweb/addressbook/__pycache__/admin.cpython-313.pyc index b102a11eb97c6821f7b937d5d936deee475dec40..8217de9cadc8f6948664ce98c211ed1586519e53 100644 GIT binary patch delta 63 zcmdnMx{j6mGcPX}0}!~BeA~!e)=$mN%t=kn$;qrt)pyBHF3nBND=F4b R&QD2AN-R#@JeA3Z9{_~D6=VPa delta 65 zcmcbw{7{+eGcPX}0}$lqY~)I2(g@WLElw>e)-O)X$;?g7$;qrt)pyBHF3nBND=F3w T&o9c>&o9o*OWZt}$%h{Rxeyjd diff --git a/osinaweb/billing/__pycache__/__init__.cpython-313.pyc b/osinaweb/billing/__pycache__/__init__.cpython-313.pyc index 5f7661837985289b75969b539da74095c4ab6c31..bd9a0e34200c6cfd144062aff5a02b04b13ddf16 100644 GIT binary patch delta 61 zcmdnOxQUVbGcPX}0}!~Be4EH^tQM#rTAW%`te={jnUk8DlapDQs_&AYT$-DjS5mB> PoS%}KlvtcPG0hJEQS228 delta 63 zcmdnQxP_7XGcPX}0}wb^UYy8ntP!jqTAW%`tY4g%lbM^ElapDQs_&AYT$-DjS5mAW Ro?n!$pI@ArmpC!S4*+Wi6=(ne diff --git a/osinaweb/billing/__pycache__/admin.cpython-313.pyc b/osinaweb/billing/__pycache__/admin.cpython-313.pyc index 45654bc4fe60c0791a4386c83339cc7939785187..c0598e8fda7021042d451090d93ac7ee3222ed31 100644 GIT binary patch delta 63 zcmey({*#^iGcPX}0}!~BeA~!kjN$rn-p delta 66 zcmaD6@hXD*GcPX}0}wb^UfjrS!=e$WA6lGRRIFc|n3I{Cnv;`RnX2!SpIn-onpaY+ UAD&;7t)E|TnA6lGRRIHzxo0*fEnv;`RnX2!SpIn-onpaY+ SpPZkPnv__ay19Y1ND~0r7#9ox delta 66 zcmewm`zeEgA6lGRRIFc|n3I{Cnv;`RnX2!SpIn-onpaY+ UAD&;7t)E| PoS%}KlvtcPF)bJXRTdQ< delta 63 zcmdnaxRa6lGcPX}0}wb^UYy8ntP!CfTAW%`tY4g%lbM^ElapDQs_&AYT$-DjS5mAW Ro?n!$pI@ArmpCyc7yxch6?^~y diff --git a/osinaweb/customercore/__pycache__/admin.cpython-313.pyc b/osinaweb/customercore/__pycache__/admin.cpython-313.pyc index 70e26512e27b9e3062544751cf41d73fd85f7ffb..cad9536d817acefc4ac50f0b23c039886846e486 100644 GIT binary patch delta 61 zcmaFL_?VIVGcPX}0}!~Be4EG}uNJHyTAW%`te={jnUk8DlapDQs_&AYT$-DjS5mB> PoS%}KlvtcPaZ)e__RGcPX}0}wb^UYy7suMw&rTAW%`tY4g%lbM^ElapDQs_&AYT$-DjS5mAW Ro?n!$pI@ArmpE}kFaV1(7AXJ# diff --git a/osinaweb/customercore/__pycache__/apps.cpython-313.pyc b/osinaweb/customercore/__pycache__/apps.cpython-313.pyc index d4d3607a88835650789b9f5dc71e13b6146c9102..409580ea29dd86441efa92273aecbd6b53c9e9af 100644 GIT binary patch delta 63 zcmdnUvYv(eGcPX}0}!~BeA~$F%cvHlA6lGRRIHzxo0*fEnv;`RnX2!SpIn-onpaY+ RpPZkPnv__aI=O*yBLH_T6~+Jn delta 65 zcmZ3_vXO=RGcPX}0}wb^Ufjs-%cv2eA6lGRRIFc|n3I{Cnv;`RnX2!SpIn-onpaY+ TAD&;7t)E| PoS%}KlvtcPF)a`PQ_>X{ delta 63 zcmdnWxSf&vGcPX}0}wb^UYy8ntP!RkTAW%`tY4g%lbM^ElapDQs_&AYT$-DjS5mAW Ro?n!$pI@ArmpCyc5CCld6?6aq diff --git a/osinaweb/customercore/__pycache__/urls.cpython-313.pyc b/osinaweb/customercore/__pycache__/urls.cpython-313.pyc index 1ad95192e8b02d29fbdea409e7ed45f653b6fb9b..8cf093f7ac955400a26d34ff5e86e18d8188a0dc 100644 GIT binary patch delta 64 zcmZ1|I$xCgGcPX}0}!~BeA~z!$e|XbA6lGRRIHzxo0*fEnv;`RnX2!SpIn-onpaY+ SpPZkPnv__ay19izmI(lk;T3EE delta 66 zcmbO)x=@t+GcPX}0}wb^UfjqX$e|IUA6lGRRIFc|n3I{Cnv;`RnX2!SpIn-onpaY+ UAD&;7t)E|5nsgrz&AavD1yQs_;4Q1Iq>Co zzP+FNa1S_Mu(}`!nSmfE3edN&)3EE4TlaDn|65vrs|3KsVhRTtOE3+VzC;M7Jy zs}&k;OerrnTzS}63VQg=n6*Pphy$S(9F;f z=7&xG%ZniFd(h#{f5HqumK|ri!aeuof?WcK(A&e=V-I4NK=ka{-Q%xp76^jB?RSrq zlYw#q0|;m&OmKo$fDSX=J|d{06ZtjlaL|jLyK&==0y=x}ea z`p^kn2IhgMfratv!z({?2=w8|g)Y9)tsgHPIS E070@iV*mgE delta 694 zcmYk4O=uHA7=~xI$!`93Cuy=-({#-$Rw5eRq)F2XLg=+97Q6_8sb;HE2v{uv51RNh zLFgfMDT7#S3LeCpl)5(=K@p+Q7KC`v(s~IV1VIm;)Gt+R2A;$B%*#99VX9lVaTRF9 zWdk9>j}RIIhUb!bY&;u%{i9>#(b+LA}HJu~r6s%fWWR6AjB7d89k6>0h6 zg{73IkCY*f-`jyk)(%zAEiW`y6}ven-YGBE%ZnHgfF4#}bUk$EAv;?SG+lrj5CO>v zG(A5_KMEp5+GLfikjLacxk}EGQF4StlwV4FIaGbC+){fb6vp0tUeh!WWz0-2WoA=m zE)tSZsH3N*x@QaGkb zB8tIeO-@^t>E!=dmU0i}Udnxx`za4lE>o^hPACsj9-_RL^6(2DaTW0CdAE9RepXH3 zPb<&VmWXq#xe(v)JdxBd0y7@P-7feCU+r&Cb=N@8Nr5HPx>0ZWR3PfKd|K)azQo+? z+J PoS%}KlvtcPG0hJEQXCZv delta 63 zcmdnQxP_7XGcPX}0}wb^UYy8ntP!jqTAW%`tY4g%lbM^ElapDQs_&AYT$-DjS5mAW Ro?n!$pI@ArmpC!S4*+Wi6=(ne diff --git a/osinaweb/osichat/__pycache__/admin.cpython-313.pyc b/osinaweb/osichat/__pycache__/admin.cpython-313.pyc index 44f1db9a57757f1ee63de4790b8af851f76b4754..bdbb1b5a5c658676494fe910a695d4ee47f64eed 100644 GIT binary patch delta 64 zcmey%^_z?PGcPX}0}!~DeA~#)!=mP=A6lGRRIHzxo0*fEnv;`RnX2!SpIn-onpaY+ SpPZkPnv__ay4jw^ju8N;V-=YI delta 66 zcmey(^_PqLGcPX}0}wb^Ufjsd!=e$OA6lGRRIFc|n3I{Cnv;`RnX2!SpIn-onpaY+ UAD&;7t)E| delta 65 zcmZ3$vWSKIGcPX}0}wb^Ufjs-%&6h7A6lGRRIFc|n3I{Cnv;`RnX2!SpIn-onpaY+ TAD&;7t)E|Mv> UNwI!%eoAUmVsYx`N{%Z*0QS`v_W%F@ delta 68 zcmX@Tjq&U@M()qNyj%=G;9z-iBexreMxcIZacWVqesN+>W^QUuPG)7QzDs^`X>Mv> WNwI!-eo?l5esN}A;^uOWD?tDg&=^zz diff --git a/osinaweb/osinacore/__pycache__/__init__.cpython-313.pyc b/osinaweb/osinacore/__pycache__/__init__.cpython-313.pyc index 4e15bd5c75a3cf2add0c8910d2b569e550076599..12222a7acca5687345898a8caa12c41bfeb44152 100644 GIT binary patch delta 61 zcmdnSxP_7XGcPX}0}!~De4EH^tQM>vTAW%`te={jnUk8DlapDQs_&AYT$-DjS5mB> PoS%}KlvtcPF)aW9Q(zSn delta 63 zcmdnOxQ&tfGcPX}0}wb^UYy8ntP!doTAW%`tY4g%lbM^ElapDQs_&AYT$-DjS5mAW Ro?n!$pI@ArmpCyc003-P6>tCm diff --git a/osinaweb/osinacore/__pycache__/admin.cpython-313.pyc b/osinaweb/osinacore/__pycache__/admin.cpython-313.pyc index 099b611f24da0eb5b3be6ac81b87c1058f2667cf..b0c5fd6d68f3f5f407997f94ec3ef4e3225cca7e 100644 GIT binary patch delta 64 zcmcaBbz6%2GcPX}0}!~DeA~#qjZG~;KeRZts8~NWH!~+SH76&tGF9ItKe;qFHLs*t SKRG`oH7T(;b@NNM5;g$Bz84Mv delta 66 zcmcaDbyte}GcPX}0}#Bl`M8mL8=FRuerR!OQL%n;VoqjmYEDjOWvaeQesXDUYF?fHvj+t diff --git a/osinaweb/osinacore/__pycache__/apps.cpython-313.pyc b/osinaweb/osinacore/__pycache__/apps.cpython-313.pyc index e76f26ef7a7199530e8e1f3c7f711e3d0cc7841d..c1acfca27e200d880719851f91a405af09abac7c 100644 GIT binary patch delta 63 zcmZ3%vW$iMGcPX}0}!~DeA~$F&Zy?EA6lGRRIHzxo0*fEnv;`RnX2!SpIn-onpaY+ RpPZkPnv__aI=PB*9RP7+6{7$E delta 65 zcmZ3+vVw*CGcPX}0}wb^Ufjs-&ZrTnA6lGRRIFc|n3I{Cnv;`RnX2!SpIn-onpaY+ TAD&;7t)E|?(%jU% Ul4AYj{FKzB#NyP=%?(%jU% Wl4AYv{Gx3A{Nl{K#LbNCc4Yuadl+m0 diff --git a/osinaweb/osinacore/__pycache__/urls.cpython-313.pyc b/osinaweb/osinacore/__pycache__/urls.cpython-313.pyc index 173ec6e12842c3ad175713b75a04dc62ba5525bd..a7ca243fdabe1ba00d4291bbad1547b7d442263e 100644 GIT binary patch delta 64 zcmZoMY%=8j%*)Hg00gcj-!^jZ5>oTm4=qkDD%MZU&CE$n&B@8EOx1VEPcF?(%_}L^ SPtH$CO-d|I-TYQ)Ix7IBHWteO delta 66 zcmZoNY%%2i%*)Hg00cWNKW^mSC8QCkA6lGRRIFc|n3I{Cnv;`RnX2!SpIn-onpaY+ UAD&;7t)E|?(%jU% Ul4AYj{FKzB#NyP=m)X=h0TNyqT>t<8 delta 68 zcmex9pXuj(ChpI?yj%=GU}pJoBliL}jUfHd;?$yI{o=%&%-qzRoXpBpeV6>?(%jU% Wl4AYv{Gx3A{Nl{K#LXAk)H(q)q8QKs diff --git a/osinaweb/osinacore/add/__pycache__/urls.cpython-313.pyc b/osinaweb/osinacore/add/__pycache__/urls.cpython-313.pyc index d4afa8f6040ad1f450b5f9c35b931d93fabb2105..0dc038d651dcec4ef610de73ac70b72b24060206 100644 GIT binary patch delta 64 zcmaDW|5~2=GcPX}0}!~DeA~$Vhg&UJKeRZts8~NWH!~+SH76&tGF9ItKe;qFHLs*t SKRG`oH7T(;b+bOtK4t*eyB8S% delta 66 zcmaDY|5l#+GcPX}0}x!W{?(%jU% Ul4AYj{FKzB#NyP=KUmE=0P@@z8~^|S delta 68 zcmZ28hiTm$ChpI?yj%=GQ0w(^Bll5OjWGSt;?$yI{o=%&%-qzRoXpBpeV6>?(%jU% Wl4AYv{Gx3A{Nl{K#LeGW%{l-kZW!kP diff --git a/osinaweb/osinacore/add/urls.py b/osinaweb/osinacore/add/urls.py index 26388d3d..7dae3401 100644 --- a/osinaweb/osinacore/add/urls.py +++ b/osinaweb/osinacore/add/urls.py @@ -7,6 +7,8 @@ urlpatterns = [ path('status/', views.add_status_modal, name='addstatusmodal'), path('customer/', views.add_customer, name='addcustomer'), path('business/', views.add_business, name='addbusiness'), + path('addressbook/', views.add_addressbook, name='addaddressbook'), + path('staff/', views.add_staff, name='adduser'), diff --git a/osinaweb/osinacore/add/views.py b/osinaweb/osinacore/add/views.py index d8617627..8efa1c79 100644 --- a/osinaweb/osinacore/add/views.py +++ b/osinaweb/osinacore/add/views.py @@ -894,3 +894,51 @@ def add_ticket_update(request, ticket_id): } return render(request, 'add_templates/customer-add-ticket.html', context) + +@staff_login_required +def add_addressbook(request): + customers = CustomerProfile.objects.all().order_by('-id') + business_types = BusinessType.objects.all().order_by('-id') + if request.method == 'POST': + + customer_id = request.POST.get('customer') + customer = get_object_or_404(CustomerProfile, id=customer_id) + + name = request.POST.get('name') + email = request.POST.get('email') + financial_number = request.POST.get('financial_number') + phone_number = request.POST.get('phone_number') + vat = request.POST.get('vat') + if vat: + vat = True + else: + vat = False + commercial_registration = request.POST.get('commercial_registration') + website = request.POST.get('website') + logo = request.FILES.get('logo') + + business_type_id = request.POST.get('type') + business_type = get_object_or_404(BusinessType, id=business_type_id) + + business = Business( + customer=customer, + name=name, + email=email, + financial_number=financial_number, + vat=vat, + commercial_registration=commercial_registration, + website=website, + type=business_type, + logo=logo, + phone_number=phone_number, + ) + business.save() + + return redirect('businesses') + + context = { + 'customers': customers, + 'business_types': business_types, + } + + return render(request, 'add_templates/add-business.html', context) diff --git a/osinaweb/osinacore/api/__pycache__/serializers.cpython-313.pyc b/osinaweb/osinacore/api/__pycache__/serializers.cpython-313.pyc index 106e7b19e6117c3a862d23353d675d82547caafb..037527ce568f9d67d5fd1481c257fe62def80cb3 100644 GIT binary patch delta 64 zcmZ3-yM~whGcPX}0}!~DeA~z^%A^*hA6lGRRIHzxo0*fEnv;`RnX2!SpIn-onpaY+ SpPZkPnv__ay4iy%jRgRPt`$ZA delta 66 zcmZ3(yN;LpGcPX}0}wb^Ufjqn%A^saA6lGRRIFc|n3I{Cnv;`RnX2!SpIn-onpaY+ UAD&;7t)E|ta#Do*GcPX}0}!~DeA~#a!KfCZA6lGRRIHzxo0*fEnv;`RnX2!SpIn-onpaY+ SpPZkPnv__ax;dKh0|x+`^cFe* delta 66 zcmX>pa$1D@GcPX}0}wb^Ufjs7!Ke|YA6lGRRIFc|n3I{Cnv;`RnX2!SpIn-onpaY+ UAD&;7t)E|lSMO delta 66 zcmaEA{oI=SGcPX}0}wb^Ufjqn$E*>lA6lGRRIFc|n3I{Cnv;`RnX2!SpIn-onpaY+ UAD&;7t)E|0KeRZts93)^F()%OH76&tGF9ItKe;qFHLs*t UKRmxETR*=zGcR#-4wnZL0M@$}vj6}9 diff --git a/osinaweb/osinacore/edit/__pycache__/views.cpython-313.pyc b/osinaweb/osinacore/edit/__pycache__/views.cpython-313.pyc index 3f21abca802eba08e838ea6974ad8eadae6add85..77184bf5562ba89896e6e3c9f4808ea7a56160b0 100644 GIT binary patch delta 66 zcmbRBf^o(RM()qNyj%=G;9Bx+Bllc(wNU-g;?$yI{nXsdoYd5uoXpBpeV6>?(%jU% Ul4AYj{FKzB#NyP=7udaW00z|?(%jU% Wl4AYv{Gx3A{Nl{K#Lef}y>b95Ss1ba diff --git a/osinaweb/osinacore/knowledge_base/__pycache__/urls.cpython-313.pyc b/osinaweb/osinacore/knowledge_base/__pycache__/urls.cpython-313.pyc index b54c532873e094984ceee2b051f17134862f2b5c..31aef81f641fcd7363a7e1f0eca12db9e8860156 100644 GIT binary patch delta 62 zcmbQjJc*h6GcPX}0}!~De4EJqSS?OJv^ce>SU)v4Gbc4QCnvKqRo^8)ximL5ucTN% QIX@*eDX}0C+VOZvX%Q delta 64 zcmbQlJcXJ2GcPX}0}wb^UYyANSR+9{v^ce>Sid+iCo?xSCnvKqRo^8)ximL5ucTN% SJijPgKfgFLFLAO6V;umJe-+FC diff --git a/osinaweb/osinacore/knowledge_base/__pycache__/views.cpython-313.pyc b/osinaweb/osinacore/knowledge_base/__pycache__/views.cpython-313.pyc index 88e250a937993d5fd57bd29e78bb258bf3a1d8cc..378abfb285082a111bb79f2fd0bbaa80fc8b2e07 100644 GIT binary patch delta 64 zcmeyz@`r`{GcPX}0}!~DeA~z^&8QZyA6lGRRIHzxo0*fEnv;`RnX2!SpIn-onpaY+ SpPZkPnv__ay4jD>fDr(z78R-h delta 66 zcmeyv@{fi4GcPX}0}wb^Ufjqn&8U&6A6lGRRIFc|n3I{Cnv;`RnX2!SpIn-onpaY+ UAD&;7t)E| +
+

+ Add Business +

+ +
+ {% csrf_token %} +
+ +
+ +
+
+ + Upload + Logo + +
+
+
+ +
+ + +
+ + +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ + +
+ + +
+ +
+ + +
+ +
+ + +
+ + +
+ + +
+ + +
+ +
+
+
+
+ + + + + + +{% endblock content %} \ No newline at end of file diff --git a/osinaweb/osinacore/templates/listing_pages/adressbooks.html b/osinaweb/osinacore/templates/listing_pages/adressbooks.html new file mode 100644 index 00000000..7155de01 --- /dev/null +++ b/osinaweb/osinacore/templates/listing_pages/adressbooks.html @@ -0,0 +1,118 @@ +{% extends "main.html" %} +{%load static%} +{% block title %}My Projects{% endblock %} +{% block content %} + + +
+
+

Address Book

+ + +
+
+
+ + +
+
+
+ + + +
+
+ + +
+ + + + + + + + + + + + + + + {% for address in addresses %} + + + + + + + + + + + + {% endfor %} + +
+ Name + + Country + + Contact + + Actions +
+
+
+ Business Logo +
+

{{ address.first_name }} {{ address.middle_name }} {{ address.last_name }}

+
+
+ {% for c in address.contact_set.all %} +

{{c.type}}: {{c.contact}}

+ {% endfor %} +
+

{{address.type.name}}

+
+ +
+
+
+
+ + +{% endblock content %} \ No newline at end of file diff --git a/osinaweb/osinacore/templates/main.html b/osinaweb/osinacore/templates/main.html index 6881041c..0944eca0 100644 --- a/osinaweb/osinacore/templates/main.html +++ b/osinaweb/osinacore/templates/main.html @@ -466,6 +466,49 @@

Activity

+ + +
+ + + + + +

Address Book

+
+
+ + + + diff --git a/osinaweb/osinacore/urls.py b/osinaweb/osinacore/urls.py index 1277e629..011302bf 100644 --- a/osinaweb/osinacore/urls.py +++ b/osinaweb/osinacore/urls.py @@ -81,7 +81,7 @@ urlpatterns = [ path('edit/', include('osinacore.edit.urls')), path('delete/', include('osinacore.delete.urls')), path('knowledge_base/', include('osinacore.knowledge_base.urls')), - + path('addressbook/', views.addressbook, name='addressbook'), #Fetch urls path('get_tasks//', views.get_tasks, name='get_tasks'), diff --git a/osinaweb/osinacore/views.py b/osinaweb/osinacore/views.py index 637c2557..dd423cb1 100644 --- a/osinaweb/osinacore/views.py +++ b/osinaweb/osinacore/views.py @@ -1,4 +1,6 @@ from django.shortcuts import render, redirect, get_object_or_404 + +from addressbook.models import AddressBook from .models import * from django.contrib.auth import authenticate, login, logout from django.contrib.auth import login as auth_login @@ -259,6 +261,8 @@ def businesses(request): } return render(request, 'listing_pages/businesses.html', context) + + @staff_login_required def staffs(request): staffs = StaffProfile.objects.all().order_by('-staff_id') @@ -853,3 +857,11 @@ def fetch_projects_by_status(request, status=None): +@staff_login_required +def addressbook(request): + addresses = AddressBook.objects.all() + context = { + 'addresses' : addresses, + + } + return render(request, 'listing_pages/adressbooks.html', context) \ No newline at end of file diff --git a/osinaweb/osinaweb/__pycache__/__init__.cpython-313.pyc b/osinaweb/osinaweb/__pycache__/__init__.cpython-313.pyc index 8a315970db7e93f938be1f84a07c29c4b363edce..f166879eae12e5461b1837701b3150e9d9e40700 100644 GIT binary patch delta 61 zcmdnWxS5grGcPX}0}!~De4EH^tQMpnTAW%`te={jnUk8DlapDQs_&AYT$-DjS5mB> PoS%}KlvtcPG0h(UQoa=r delta 63 zcmdnYxRsInGcPX}0}wb^UYy8ntP!FgTAW%`tY4g%lbM^ElapDQs_&AYT$-DjS5mAW Ro?n!$pI@ArmpC!S9{_8w6>I@LGZUGcPX}0}!~DeA@`*s0HbV7N-^!>!;>s=A@?PbvA8m*%GCl@#kI R=clA5B^IY{R^xML0sz*#7L))0 delta 66 zcmaE@@K%BQGcPX}0}wb^Ufc-eXoTp87N-^!>lY{HWag&kbvA8m*%GCl@#lT T=NDz`=ND(@C2m&Xb7uko^EVdp diff --git a/osinaweb/osinaweb/__pycache__/urls.cpython-313.pyc b/osinaweb/osinaweb/__pycache__/urls.cpython-313.pyc index b8f4539518f29cad1038c3ec56f56a765f66bc4d..9a94236ca540d66b00708199edb13b2b60976fe6 100644 GIT binary patch delta 63 zcmZ3(vx PoS%}KlvtcPG0hJEQXCZv delta 63 zcmdnQxP_7XGcPX}0}wb^UYy8ntP!jqTAW%`tY4g%lbM^ElapDQs_&AYT$-DjS5mAW Ro?n!$pI@ArmpC!S4*+Wi6=(ne diff --git a/osinaweb/support/__pycache__/admin.cpython-313.pyc b/osinaweb/support/__pycache__/admin.cpython-313.pyc index ad42e662b1c0f103b75b80629389a83b4e4f9c41..856b6170d9d5664da45de5121ef3aa0d79b5b414 100644 GIT binary patch delta 63 zcmZ3+v4n&BGcPX}0}!~DeA~$Vi%HE-KeRZts8~NWH!~+SH76&tGF9ItKe;qFHLs*t RKRG`oH7T(;b+Rt=PXLiK7FqxR delta 65 zcmZ3&v5bTJGcPX}0}wb^Ufjt2i%BCuKeRZts93)^F()%OH76&tGF9ItKe;qFHLs*t TKRmxETR*=zGcR$nHuFyatHu_$ diff --git a/osinaweb/support/__pycache__/apps.cpython-313.pyc b/osinaweb/support/__pycache__/apps.cpython-313.pyc index 824d067443caedcb6270bcfcef128105dad78e97..54f5881232c387aa776a2055e6cfa8c3b5c58150 100644 GIT binary patch delta 63 zcmZ3)vVevAGcPX}0}!~DeA~$F%&6w8A6lGRRIHzxo0*fEnv;`RnX2!SpIn-onpaY+ RpPZkPnv__aI=PH-4FGLq6^j4> delta 65 zcmZ3$vWSKIGcPX}0}wb^Ufjs-%&6h7A6lGRRIFc|n3I{Cnv;`RnX2!SpIn-onpaY+ TAD&;7t)E|