diff --git a/apps/note/forms.py b/apps/note/forms.py new file mode 100644 index 00000000..d74fa5b4 --- /dev/null +++ b/apps/note/forms.py @@ -0,0 +1,9 @@ +#!/usr/bin/env python + +from django import forms +from .models import TransactionTemplate + +class TransactionTemplateForm(forms.ModelForm): + class Meta: + model = TransactionTemplate + fields ='__all__' diff --git a/templates/note/transactiontemplate_form.html b/templates/note/transactiontemplate_form.html new file mode 100644 index 00000000..82bb050e --- /dev/null +++ b/templates/note/transactiontemplate_form.html @@ -0,0 +1,11 @@ +{% extends "base.html" %} +{% load static %} +{% load crispy_forms_tags %} +{% block content %} +
+ +{% endblock %} diff --git a/templates/note/transactiontemplate_list.html b/templates/note/transactiontemplate_list.html new file mode 100644 index 00000000..25946322 --- /dev/null +++ b/templates/note/transactiontemplate_list.html @@ -0,0 +1,24 @@ +{% extends "base.html" %} +{% block content %} + +ID | Link | +name | +destinataire | +montant | +catégorie | +
{{object.pk}} | +{{object}} | +{{ object.name }} | +{{ object.destination }} | +{{ object.amount }} | +{{ object.template_type }} | +