Separated client form into tabs. Fixed deleting client. Implemented custom fields for client and invoice client fields. Removed "hardcoded" client_reg_no and client_vat_no fields from client and invoice model - can be replaced with custom fields. Abstracted invoice-rows management to separate store namespace. Invoice client fields are prefilled from selected client.

This commit is contained in:
HenriT
2021-04-08 19:54:45 +03:00
parent af22213b9b
commit 292fafe3a5
20 changed files with 465 additions and 138 deletions

View File

@ -0,0 +1,75 @@
.nav-tabs {
overflow-x: auto;
overflow-y: hidden;
white-space: nowrap;
// scrollbar styles
scrollbar-color: var(--text-caption);
scrollbar-width: 6px;
scrollbar-gutter: always;
&::-webkit-scrollbar-track {
background: var(--shade);
border-radius: 6px;
}
&::-webkit-scrollbar-thumb {
background: var(--text-caption);
border-radius: 6px;
&:hover {
background: var(--text-secondary);
}
}
&::-webkit-scrollbar {
width: 6px;
height: 6px;
}
> li {
display: inline-block;
float: none;
white-space: normal;
}
&--simple {
&.nav-tabs {
> li {
> a {
border-bottom: 1px solid transparent;
&.active {
background-color: transparent;
border-left-color: transparent;
border-top-color: transparent;
border-right-color: transparent;
border-bottom-color: var(--text-primary);
color: $nav-tabs-link-active-color;
}
&:hover, &:focus, &:active {
background-color: transparent;
border-left-color: transparent;
border-top-color: transparent;
border-right-color: transparent;
}
}
}
> li {
> a {
border-bottom-width: 2px;
min-width: 90px;
text-align: center;
font-weight: 500;
color: $nav-tabs-link-active-color;
}
}
}
.tab-content {
padding-top: 16px;
}
}
}

View File

@ -13,6 +13,7 @@
@import "snackbars";
@import "surfaces";
@import "tables";
@import "tabs";
@import "transitions";
@import "type";
@import "utilities";