Skip to content

Commit

Permalink
Add feedback form (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Aug 15, 2018
1 parent c3c27f0 commit 72b98d9
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 4 deletions.
3 changes: 2 additions & 1 deletion config/cocoda.default.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,6 @@
"url": "https://coli-conc.gbv.de",
"alt": "coli-conc"
}
]
],
"feedbackUrl": "https://docs.google.com/forms/d/e/1FAIpQLSdwJrYIL6oj7LLFA9qCZb7SwZImp72Bi_1iIL1d_h1Pbu8_vg/viewform"
}
3 changes: 2 additions & 1 deletion config/cocoda.dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,6 @@
"url": "https://coli-conc.gbv.de",
"alt": "coli-conc"
}
]
],
"feedbackUrl": "https://docs.google.com/forms/d/e/1FAIpQLSdwJrYIL6oj7LLFA9qCZb7SwZImp72Bi_1iIL1d_h1Pbu8_vg/viewform"
}
3 changes: 2 additions & 1 deletion config/cocoda.master.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,6 @@
"url": "https://coli-conc.gbv.de",
"alt": "coli-conc"
}
]
],
"feedbackUrl": "https://docs.google.com/forms/d/e/1FAIpQLSdwJrYIL6oj7LLFA9qCZb7SwZImp72Bi_1iIL1d_h1Pbu8_vg/viewform"
}
8 changes: 8 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,14 @@
href="https://github.com/gbv/cocoda"
target="_blank">GitHub</a>
</p>
<p v-if="config.feedbackUrl">
<br>
If you have any feedback, please use
<a
:href="config.feedbackUrl"
target="_blank">this form</a>
to submit it to us. Thank you!
</p>
</div>
</div>
</div>
Expand Down
52 changes: 51 additions & 1 deletion src/components/TheNavbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@
<font-awesome-icon :icon="['fab', 'github']" />
GitHub
</b-nav-item>
<!-- Feedback button -->
<b-nav-item
v-if="config.feedbackUrl"
class="feedbackButton"
@click="$refs.feedback.show()">
Feedback
</b-nav-item>
<!-- Help button (links to documentation) -->
<b-nav-item
v-if="help"
Expand All @@ -46,6 +53,23 @@
</b-nav-item>
<!-- Settings modal -->
<the-settings ref="settings" />
<!-- Feedback modal -->
<b-modal
v-if="config.feedbackUrl"
ref="feedback"
centered
class="feedbackModal"
hide-footer
size="lg"
title="Feedback" >
<iframe
:src="config.feedbackUrl + '?embedded=true'"
frameborder="0"
marginheight="0"
marginwidth="0">
Loading...
</iframe>
</b-modal>
</b-navbar-nav>
</b-navbar>
</template>
Expand Down Expand Up @@ -83,10 +107,36 @@ nav.navbar {
background-color: @color-primary-0;
box-shadow: 0 1px 2px 0 @color-shadow;
}
.navbar-dark .navbar-nav .nav-link, .btn-link, .navbar-brand {
.navbar-dark .navbar-nav .nav-link, .btn-link {
color: @color--theNavbar-text;
}
.navbar-brand {
color: @color--theNavbar-text !important;
}
.feedbackButton a.nav-link {
color: @color-complement-3 !important;
}
.btn-link:disabled, .btn-link.disabled {
text-decoration: line-through;
color: @color--theNavbar-text;
}
</style>

<style>
.feedbackModal .modal-dialog {
height: 90%;
}
.feedbackModal .modal-content {
height: 100%;
}
.feedbackModal iframe {
overflow:hidden;
position:absolute;
height:100%;
width:100%;
top:0;
bottom:0;
left:0;
right:0;
}
</style>

0 comments on commit 72b98d9

Please sign in to comment.