Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 | <template> <div class="change-pass-container specific-breakpoint m-lg-0 mb-4"> <p class="subtitle specific-breakpoint text-lg-end mb-5 mb-lg-2">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut, consectetur adipiscing elit</p> <form-comp :formSpecs="{ fields: getFields, // form fields task: 'changePass', // specifies what form fields to use from the vuex store submitText: 'Salveaza', // submit button text checkboxLabel: null // checkbox label }" @submit="submitChangePass"/> </div> </template> <script> import {mapActions, mapGetters, mapMutations} from "vuex"; import formComp from '../../../../components/utilities/form-utils/form-comp.vue'; export default { components: {formComp}, computed: { ...mapGetters({ getFields: 'changePassFields' }) }, methods: { ...mapActions(['sendChangePass']), ...mapMutations(['resetInputState', 'changeError']), /** * Dispatches the sendChangePass action when the submit button is clicked * @see submitChangePass * @return void */ async submitChangePass() { await this.sendChangePass(); } }, /** * Resets the error and the fields for the change pass form when the page is destroyed * @see destroyed * @return void */ destroyed() { this.resetInputState({task: 'changePass'}); this.changeError(''); } } </script> <style lang="scss" scoped> .subtitle { font-size: 0.9rem; color: rgb(0, 21, 44); } .change-pass-container { width: 45%; } ::v-deep .submit-button { align-self: end; } @media screen and #{$ipad-pro-landscape-breakpoint}, screen and #{$ipad-pro-portrait-breakpoint}, screen and #{$ipad-landscape-breakpoint} { .specific-breakpoint.change-pass-container { width: 100%; margin-bottom: $spacer * 1.5 !important; } .specific-breakpoint.subtitle { font-size: 1.1rem; text-align: justify; margin-bottom: $spacer * 3 !important; } ::v-deep .submit-button { align-self: center; } } @include media-breakpoint-down(lg) { .change-pass-container { width: 100%; } .subtitle { font-size: 1rem; text-align: justify; } ::v-deep .submit-button { align-self: center; } } </style> |