Skip to content

Commit

Permalink
Added location option (#195)
Browse files Browse the repository at this point in the history
* updated class name for checkbox

* added location checkbox in wizard step

* updated the template with location text
  • Loading branch information
nisrulz committed Mar 19, 2024
1 parent 420c3ac commit b359c67
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 9 deletions.
2 changes: 1 addition & 1 deletion public/css/style.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions public/images/app_graphics/location.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion public/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/js/main.min.js

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

9 changes: 8 additions & 1 deletion src/includes/content/privacy_policy/gdpr.pug
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,14 @@
br
strong Does the Application collect precise real time location information of the device?

p This Application does not gather precise information about the location of your mobile device.
p(v-show='!isLocationTracked') This Application does not gather precise information about the location of your mobile device.

div(v-show='isLocationTracked')
p This Application collects your device's location, which helps the Service Provider determine your approximate geographical location and make use of in below ways:
ul
li Geolocation Services: The Service Provider utilizes location data to provide features such as personalized content, relevant recommendations, and location-based services.
li Analytics and Improvements: Aggregated and anonymized location data helps the Service Provider to analyze user behavior, identify trends, and improve the overall performance and functionality of the Application.
li Third-Party Services: Periodically, the Service Provider may transmit anonymized location data to external services. These services assist them in enhancing the Application and optimizing their offerings.

br
strong Do third parties see and/or have access to information obtained by the Application?
Expand Down
11 changes: 9 additions & 2 deletions src/includes/content/privacy_policy/simple.pug
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,17 @@
li The pages of the Application that you visit, the time and date of your visit, the time spent on those pages
li The time spent on the Application
li The operating system you use on your mobile device
p ...and more.

p(v-show='!isLocationTracked') The Application does not gather precise information about the location of your mobile device.

div(v-show='isLocationTracked')
p The Application collects your device's location, which helps the Service Provider determine your approximate geographical location and make use of in below ways:
ul
li Geolocation Services: The Service Provider utilizes location data to provide features such as personalized content, relevant recommendations, and location-based services.
li Analytics and Improvements: Aggregated and anonymized location data helps the Service Provider to analyze user behavior, identify trends, and improve the overall performance and functionality of the Application.
li Third-Party Services: Periodically, the Service Provider may transmit anonymized location data to external services. These services assist them in enhancing the Application and optimizing their offerings.

p The Service Provider may use the information you provided to contact you from time to time to provide you with important information, required notices and marketing promotions.

br
p For a better experience, while using the Application, the Service Provider may require you to provide us with certain personally identifiable information{{pidInfo}} The information that the Service Provider request will be retained by them and used as described in this privacy policy.

Expand Down
6 changes: 6 additions & 0 deletions src/includes/content/wizard/step_3.pug
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ section#step-3.columns(v-if='wizardStep==3')
type="radio"
)
| Commercial
br
div.block(v-show='typeOfPolicyInt!=2')
input(v-model="isLocationTracked" id="locationcheckbox" type="checkbox")
label(for="locationcheckbox")
img.checkbox-logo(src="images/app_graphics/location.svg")
strong Is Location tracked
footer.card-footer
a.card-footer-item(@click='prevStep') Previous
a.card-footer-item(@click='nextStep') Next
Expand Down
4 changes: 2 additions & 2 deletions src/includes/content/wizard/step_6.pug
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ section#step-6.columns(v-if="wizardStep==6")
type="checkbox"
)
label(:for="'list-switch-' + item.model")
img.thirdparty-logo(
img.checkbox-logo(
:alt="item.name"
:src="item.logo"
)
span.thirdparty-text {{ item.name }}
span {{ item.name }}
div(v-show='typeOfPolicyInt==2')
p No third party services to choose. Goto
b Next step.
Expand Down
1 change: 1 addition & 0 deletions src/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ var app = new Vue({
totalWizardSteps: 7,
typeOfPolicy: 'Simple',
typeOfPolicyInt: 1,
isLocationTracked: false,
},
filters: {
capitalize: function (value) {
Expand Down
2 changes: 1 addition & 1 deletion src/sass/app.sass
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ img.social-logo
height: 1em
margin-right: 5px

.thirdparty-logo
.checkbox-logo
height: 1.5em
padding-right: 8px
vertical-align: middle
Expand Down

0 comments on commit b359c67

Please sign in to comment.