{% extends "base.html" %} {% load static %} {% block content %}

Companies

{% include 'modals.html' %} {% endblock %} {% block js_load %} {% endblock %} {% block js_ready %} $('#new-company').click(function () { launchModalForm('#modal-form', "{% url 'company-create' %}", { follow: true }); }); $("#company-table").bootstrapTable({ sortable: true, search: true, columns: [ { field: 'pk', title: 'ID', visible: false, }, { field: 'name', title: 'Company', sortable: true, formatter: function(value, row, index, field) { return renderLink(value, row.url); } }, { field: 'description', title: 'Description', }, { field: 'website', title: 'Website', formatter: function(value, row, index, field) { if (value) { return renderLink(value, value); } return ''; } } ], url: "{% url 'api-company-list' %}" }); {% endblock %}