diff --git a/base.css b/base.css
index b5c61c9..1a5cb65 100644
--- a/base.css
+++ b/base.css
@@ -1,3 +1,34 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
+
+.ars-input {
+ margin: 0.25rem;
+ margin-bottom: 0.75rem;
+}
+
+.ars-input input {
+ width: 100%;
+ padding: 0.25rem 0.75rem;
+ border: solid 1px #57534e;
+ border-radius: 0.5rem;
+}
+
+.ars-input select {
+ width: 100%;
+ padding: 0.25rem 0.75rem;
+ border: solid 1px #57534e;
+ border-radius: 0.5rem;
+ background-color: transparent;
+}
+
+.ars-button {
+ padding: 0.25rem 0.75rem;
+ border: solid 1px #57534e;
+ border-radius: 0.5rem;
+}
+
+.ars-button:hover {
+ background: #57534e77;
+ cursor: pointer;
+}
diff --git a/static/styles.css b/static/styles.css
index 49beb93..19a77f8 100644
--- a/static/styles.css
+++ b/static/styles.css
@@ -1,5 +1,5 @@
/*
-! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com
+! tailwindcss v3.4.3 | MIT License | https://tailwindcss.com
*/
/*
@@ -211,6 +211,8 @@ textarea {
/* 1 */
line-height: inherit;
/* 1 */
+ letter-spacing: inherit;
+ /* 1 */
color: inherit;
/* 1 */
margin: 0;
@@ -234,9 +236,9 @@ select {
*/
button,
-[type='button'],
-[type='reset'],
-[type='submit'] {
+input:where([type='button']),
+input:where([type='reset']),
+input:where([type='submit']) {
-webkit-appearance: button;
/* 1 */
background-color: transparent;
@@ -492,6 +494,10 @@ video {
--tw-backdrop-opacity: ;
--tw-backdrop-saturate: ;
--tw-backdrop-sepia: ;
+ --tw-contain-size: ;
+ --tw-contain-layout: ;
+ --tw-contain-paint: ;
+ --tw-contain-style: ;
}
::backdrop {
@@ -542,6 +548,10 @@ video {
--tw-backdrop-opacity: ;
--tw-backdrop-saturate: ;
--tw-backdrop-sepia: ;
+ --tw-contain-size: ;
+ --tw-contain-layout: ;
+ --tw-contain-paint: ;
+ --tw-contain-style: ;
}
.container {
@@ -578,6 +588,18 @@ video {
}
}
+.mb-2 {
+ margin-bottom: 0.5rem;
+}
+
+.mb-4 {
+ margin-bottom: 1rem;
+}
+
+.mb-8 {
+ margin-bottom: 2rem;
+}
+
.block {
display: block;
}
@@ -636,6 +658,37 @@ video {
line-height: 1.75rem;
}
+.ars-input {
+ margin: 0.25rem;
+ margin-bottom: 0.75rem;
+}
+
+.ars-input input {
+ width: 100%;
+ padding: 0.25rem 0.75rem;
+ border: solid 1px #57534e;
+ border-radius: 0.5rem;
+}
+
+.ars-input select {
+ width: 100%;
+ padding: 0.25rem 0.75rem;
+ border: solid 1px #57534e;
+ border-radius: 0.5rem;
+ background-color: transparent;
+}
+
+.ars-button {
+ padding: 0.25rem 0.75rem;
+ border: solid 1px #57534e;
+ border-radius: 0.5rem;
+}
+
+.ars-button:hover {
+ background: #57534e77;
+ cursor: pointer;
+}
+
.hover\:bg-stone-200:hover {
--tw-bg-opacity: 1;
background-color: rgb(231 229 228 / var(--tw-bg-opacity));
diff --git a/templates/accounts.html b/templates/accounts.html
index f63fa7c..3ed3e1b 100644
--- a/templates/accounts.html
+++ b/templates/accounts.html
@@ -8,22 +8,26 @@
-
+
- | Description |
- Date |
- Amount |
- Category |
+ Description |
+ Date |
+ Amount |
+ Acc |
+ Category |
+ Link |
{% for tx in transactions %}
| {{tx.description}} |
- {{tx.transaction_timestamp}} |
+ {{tx.tx_date}} |
{{tx.amount/100}} |
- {{tx.category}} |
+ {{tx.accumulated/100}} |
+ {% if tx.category %}{{categories[tx.category]}}{% endif %} |
+ Go to |
{% endfor %}
diff --git a/templates/base.html b/templates/base.html
index 53e5666..d183c85 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -27,7 +27,6 @@
diff --git a/templates/categories_new.html b/templates/categories_new.html
index 5903d33..e930a23 100644
--- a/templates/categories_new.html
+++ b/templates/categories_new.html
@@ -1,28 +1,21 @@
{% extends "base.html" %}
{% block title %}Create category{% endblock title %}
{% block body %}
-
-
{% endblock body %}
diff --git a/templates/classifiers.html b/templates/classifiers.html
index f0decd6..88f51a9 100644
--- a/templates/classifiers.html
+++ b/templates/classifiers.html
@@ -1,35 +1,38 @@
{% extends "base.html" %}
{% block title %}Rules{% endblock title %}
{% block body %}
-
-
-
-
- | Id |
- Name |
- Description |
-
-
-
- {% for category in categories %}
-
- | {{category.category_id}} |
- {{category.name}} |
- {{category.description}} |
-
- {% endfor %}
-
-
+
+
+
+
+
+ | Id |
+ Name |
+ Description |
+
+
+
+ {% for category in categories %}
+
+ | {{category.category_id}} |
+ {{category.name}} |
+ {{category.description}} |
+
+ {% endfor %}
+
+
+
-
+
- | CategorÃa |
+ CategorÃa |
Regla |
@@ -42,4 +45,5 @@
{% endfor %}
+
{% endblock body %}
diff --git a/templates/index.html b/templates/index.html
index d66e104..cc228ef 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -1,33 +1,91 @@
{% extends "base.html" %}
{% block title %}Index{% endblock title %}
{% block body %}
-Accounts
-
-Last transactions
-
-
+
+
Accounts
+
+ | ID |
Description |
- Date |
- Amount |
- Category |
+ Accumulated |
+ Go to |
+
+
+
+ {% for account in accounts %}
+
+ | {{ account.id }} |
+ {{ account.description }} |
+ {{ account.accumulated | round(precision=2) }} |
+
+ {{ account.description }}
+ |
+
+ {% endfor %}
+
+
+
+
+
Last month summary
+
+
+
+
+
+
Last transactions
+
+
+
+ | Description |
+ Date |
+ Amount |
+ Category |
{% for tx in transactions %}
-
+
| {{tx.description}} |
- {{tx.transaction_timestamp}} |
+ {{tx.tx_date}} |
{{tx.amount/100}} |
- {{tx.category}} |
+ {% if tx.category %}{{categories[tx.category]}}{% endif %} |
{% endfor %}
+
+
{% endblock body %}
diff --git a/templates/transaction.html b/templates/transaction.html
new file mode 100644
index 0000000..75dda7f
--- /dev/null
+++ b/templates/transaction.html
@@ -0,0 +1,41 @@
+{% extends "base.html" %}
+{% block title %}Transaction {{tx_id}}{% endblock title %}
+{% block body %}
+