NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

{% extends 'dashboard/index.html' %}
{% block dashoard_title %}
Party Details |
{% endblock %}
{% block dashboard_heading %}
<h1 class="h4 mb-0 text-gray-800">
Party List
</h1>

<a href="{% url 'dashboard:create_party' module=module %}" class="d-inline-block btn btn-primary shadow-sm"><i class="fas fa-plus text-white-50"></i> Create Party</a>


{% endblock %}


{% block dashboard_content %}
<div class="table-responsive">
<table class="table compact table-primary table-bordered" id="party_table">
<thead>
<tr>
<th scope="col">S.&nbsp;No.</th>
<th scope="col">Party&nbsp;Name</th>
<th scope="col">Customer&nbsp;ID</th>
<th scope="col">Address</th>
<th scope="col">GST</th>
<th scope="col">Email</th>
<th scope="col">Acc.&nbsp;Manager</th>
<th scope="col">Credit&nbsp;Days</th>
<th scope="col">Fin/NonFin</th>
<th scope="col">Under</th>
<th scope="col">Active</th>
<th scope="col">KYC</th>
<th scope="col">Created&nbsp;At</th>
<th scope="col">Created&nbsp;By</th>

<th scope="col">Actions</th>

</tr>
</thead>
<tbody>
{% for party in parties %}
<tr>
<th scope="row">{{ forloop.counter }}</th>
<td>{{ party.party_name }}</td>
<td>{{ party.customer_id }}</td>
<td>
{% for detail in party.party_address.all %}
{{detail}}
{% endfor %}
</td>
<td>
{% for detail in party.party_address.all %}
{{detail.corp_gstin}}
{% endfor %}
</td>
{% for detail in party.party_address.all %}
<td>{{detail.corp_email}}</td>
{% endfor %}
<td>{{ party.account_manager }}</td>
<td>{{ party.credit_days }}</td>
<td>{{ party.fin_non_fin }}</td>
<td>{{ party.under }}</td>
<td>
{% if party.is_active %}
<span class="badge badge-success">Active</span>
{% else %}
<span class="badge badge-danger">Not Active</span>
{% endif %}
</td>
<td>
{% if party.kyc_form %}
<span class="badge badge-success">Done</span>
{% else %}
<span class="badge badge-danger">Not Done</span>
{% endif %}
</td>
<td>
{{party.created_at}}
</td>
<td>
{{party.created_by}}
</td>

<td>
<a href="{% url 'dashboard:party_update' module=module id=party.id %}" class="btn btn-xs btn-info"><i class="fas fa-edit"></i></a>
&nbsp;

{% if request.user.user_account.can_delete %}
<!-- Button trigger modal -->
<button type="button" class="btn btn-xs btn-danger" data-toggle="modal" data-target="#deleteModal{{ forloop.counter }}">
<i class="fas fa-trash"></i>
</button>

<!-- Modal -->
<div class="modal fade" id="deleteModal{{ forloop.counter }}" tabindex="-1" role="dialog" aria-labelledby="deleteModal{{ forloop.counter }}Label" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="deleteModal{{ forloop.counter }}Label">Delete {{party.party_name}}</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
Are you sure want to delete {{ party.party_name }}?
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<a href="{% url 'dashboard:party_delete' module=module id=party.id %}" class="btn btn-primary">Confirm Delete</a>
</div>
</div>
</div>
</div>
{% endif %}



</td>

</tr>
{% endfor %}

</tbody>
</table>
</div>


{% endblock %}

{% block js %}

<script>
let table = new DataTable('#party_table', {
dom: 'BQlfrtip',
lengthMenu: [
[10, 25, 50, -1],
[10, 25, 50, 'All'],
],
buttons: [
{
extend: 'collection',
text: 'Export',
buttons: [
'copy',
'excel',
'csv',
'pdf',

]
},

]

});

document.querySelector('.dtsb-title').style.display = 'none'

</script>

{% endblock %}
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.