Skip to content

Commit

Permalink
Added settings submenu
Browse files Browse the repository at this point in the history
  • Loading branch information
elirehema committed Feb 18, 2022
1 parent bc1ffd5 commit 97799e3
Show file tree
Hide file tree
Showing 9 changed files with 70 additions and 10 deletions.
1 change: 1 addition & 0 deletions assets/css/_font-weights.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ h3,
h4,
h5,
h6 {
@include font_family;
font-weight: bold;
color: black;
}
3 changes: 3 additions & 0 deletions assets/css/_mixin.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@mixin font_family {
font-family: "SofiaPro", sans-serif;
}
1 change: 1 addition & 0 deletions assets/css/styles.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion assets/css/styles.css.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/css/styles.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import "_fonts";
@import "_mixin";
@import "_body";
@import "_colors";
@import "_breadcrumb";
Expand Down
14 changes: 9 additions & 5 deletions layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
height="100%"
>
<v-list nav subheader tile class="mt-0 pa-0 py-1">
<v-list-item class="list-item ma-0" to="/">
<v-list-item class="list-item ma-0" v-if="!showback" to="/">
<v-list-item-icon class="ml-1 mr-2">
<v-icon medium color="primary">mdi-panorama-wide-angle</v-icon>
</v-list-item-icon>
Expand All @@ -26,7 +26,6 @@
@click="navigateBack"
class="ma-2 px-4"
color="primary"
to="/"
text-color="white"
pill
>
Expand All @@ -39,15 +38,16 @@
v-on:click="navigateToHere(setting.to)"
>
<v-list-item-title
:class="!showback ? `font-weight-thin` : `font-weight-thin ml-5`"
v-bind="attrs"
:class="
!showback ? `font-weight-light ` : ` font-weight-light ml-5`
"
>
<v-icon
slot="prependIcon"
v-html="setting.icon"
:medium="!showback"
:small="showback"
:color="showback ? 'blue' : 'primary'"
color=" primary"
class="ml-1 mr-2"
></v-icon>
{{ $t(setting.title) }}</v-list-item-title
Expand Down Expand Up @@ -395,6 +395,10 @@ export default {
this.settings = this.menuoptions.reports;
this.showback = true;
}
if (id == "/settings") {
this.settings = this.menuoptions.settings;
this.showback = true;
}
},
toggle(mode) {
if (`${mode}` === "true") {
Expand Down
46 changes: 45 additions & 1 deletion mixins/mixins.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,50 @@ Vue.mixin({
permissions:
"ALL_FUNCTIONS, READ_INSURANCE_COMPANY,UPDATE_INSURANCE_COMPANY,DELETE_INSURANCE_COMPANY,CREATE_INSURANCE_COMPANY"
},
],
settings: [
{
title: "label.titles.users",
to: "/settings",
icon: "mdi-account-settings",
permissions: "ALL_FUNCTIONS",
},
{
title: "label.menu.selfservice",
to: "/settings/selfservices",
icon: "mdi-tooltip-account",
permissions: "ALL_FUNCTIONS",
},
{
title: "label.menu.roles",
icon: "mdi-account-cog",
to: "/settings/roles",
permissions: "ALL_FUNCTIONS",
},
{
title: "label.titles.sms",
to: "/settings/sms",
icon: "mdi-message-cog-outline",
permissions: "ALL_FUNCTIONS",
},
{
title: "label.titles.email",
to: "/settings/config/email",
icon: "mdi-folder-cog-outline",
permissions: "ALL_FUNCTIONS",
},
{
title: "label.titles.themecolor",
to: "/settings/colors",
icon: "mdi-invert-colors",
permissions: "ALL_FUNCTIONS",
},
{
title: "label.menu.system",
to: "/settings/configurations",
icon: "mdi-cog-transfer",
permissions: "ALL_FUNCTIONS",
}
]


Expand Down Expand Up @@ -260,7 +304,7 @@ Vue.mixin({
permissions: "ALL_FUNCTIONS",
},
{
title: "label.tooltip.settingsandconfigurations",
title: "label.menu.settings",
icon: "mdi-cog",
to: "/settings",
permissions: "ALL_FUNCTIONS",
Expand Down
File renamed without changes.
11 changes: 8 additions & 3 deletions static/locales/content-en.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@
"medicalservices": "Medical Services",
"overview": "Overview",
"settings": "Settings",
"calendarlist": "List of Events"
"calendarlist": "List of Events",
"roles": "Roles",
"selfservice": "Self-services",
"system": "System"
},
"message": {
"nodataavailable": "No Data available ...",
Expand Down Expand Up @@ -183,9 +186,11 @@
"insurances": "Insurances",
"systemcolors": "System colors",
"globalconfigurations": "Global configurations",
"themecolor": "Theme colors",
"themecolor": "Themes",
"addnewevent": "Add new event",
"events": "Events"
"events": "Events",
"sms": "SMS",
"email": "Email"
},
"tab": {
"appointments": "Appointments",
Expand Down

0 comments on commit 97799e3

Please sign in to comment.