mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-11-13 12:23:44 +01:00
Merge pull request #647 from eitchtee/fix/dca-create-transaction-layout
fix(dca): repair the create transaction section layout
This commit is contained in:
1 file changed
+13
-26
+13
-26
@@ -12,7 +12,7 @@ from apps.dca.models import DCAEntry, DCAStrategy
|
|||||||
from apps.transactions.models import Transaction, TransactionCategory, TransactionTag
|
from apps.transactions.models import Transaction, TransactionCategory, TransactionTag
|
||||||
from crispy_forms.bootstrap import AccordionGroup, FormActions, Accordion
|
from crispy_forms.bootstrap import AccordionGroup, FormActions, Accordion
|
||||||
from crispy_forms.helper import FormHelper
|
from crispy_forms.helper import FormHelper
|
||||||
from crispy_forms.layout import HTML, Column, Layout, Row
|
from crispy_forms.layout import HTML, Column, Div, Layout, Row
|
||||||
from django import forms
|
from django import forms
|
||||||
from django.utils.translation import gettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
|
|
||||||
@@ -157,34 +157,21 @@ class DCAEntryForm(forms.ModelForm):
|
|||||||
AccordionGroup(
|
AccordionGroup(
|
||||||
_("Create transaction"),
|
_("Create transaction"),
|
||||||
Switch("create_transaction"),
|
Switch("create_transaction"),
|
||||||
Row(
|
Div(
|
||||||
Column(
|
"from_account",
|
||||||
Row(
|
Row(
|
||||||
Column(
|
Column("from_category"),
|
||||||
"from_account",
|
Column("from_tags"),
|
||||||
),
|
|
||||||
),
|
|
||||||
Row(
|
|
||||||
Column("from_category"),
|
|
||||||
Column("from_tags"),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
css_class="p-1 mx-1 my-3 border rounded-3",
|
css_class="bg-base-100 rounded-box p-4 border-base-content/60 border my-3",
|
||||||
),
|
),
|
||||||
Row(
|
Div(
|
||||||
Column(
|
"to_account",
|
||||||
Row(
|
Row(
|
||||||
Column(
|
Column("to_category"),
|
||||||
"to_account",
|
Column("to_tags"),
|
||||||
css_class="form-group",
|
|
||||||
),
|
|
||||||
),
|
|
||||||
Row(
|
|
||||||
Column("to_category"),
|
|
||||||
Column("to_tags"),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
css_class="p-1 mx-1 my-3 border rounded-3",
|
css_class="bg-base-100 rounded-box p-4 border-base-content/60 border",
|
||||||
),
|
),
|
||||||
active=False,
|
active=False,
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in new issue
Block a user