File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
netbox_custom_objects/templates/netbox_custom_objects Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ {% extends base_template %}
2+ {% load form_helpers %}
3+ {% load render_table from django_tables2 %}
4+ {% load i18n %}
5+
6+ {% render_errors form %}
7+
8+ {% block content %}
9+ < div class ="card ">
10+ < div class ="table-responsive ">
11+ {% render_table table 'inc/table.html' %}
12+ {% include 'inc/paginator.html' with paginator=table.paginator page=table.page %}
13+ </ div >
14+ </ div >
15+ {% if perms.extras.add_journalentry %}
16+ < div class ="card ">
17+ < h2 class ="card-header "> {% trans "New Journal Entry" %}</ h2 >
18+ < div class ="card-body ">
19+ < form action ="{% if form_action %}{{ form_action }}{% else %}{% url 'extras:journalentry_add' %}{% endif %} " method ="post " enctype ="multipart/form-data ">
20+ < div class ="container ">
21+ < div class ="field-group ">
22+ {% csrf_token %}
23+ {% render_form form %}
24+ </ div >
25+ < div class ="col col-md-12 text-end my-3 ">
26+ < a href ="{{ object.get_absolute_url }} " class ="btn btn-outline-secondary "> {% trans "Cancel" %}</ a >
27+ < button type ="submit " class ="btn btn-primary "> {% trans "Save" %}</ button >
28+ </ div >
29+ </ div >
30+ </ form >
31+ </ div >
32+ </ div >
33+ {% endif %}
34+ {% endblock %}
You can’t perform that action at this time.
0 commit comments