Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2021-03-24 11:05:40 +0300
committerdartcafe <github@dartcafe.de>2021-03-24 11:05:40 +0300
commit183ef7582979bf8a107221b654cd3648406180ee (patch)
treeec212ab1aeed54c92c7b6cffe0b65494beb3d913 /src/js/views
parent879d8e73cb9e441a2b78f58c27f82c4b25b2aa6d (diff)
added OptionProposal and styling
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src/js/views')
-rw-r--r--src/js/views/Vote.vue47
1 files changed, 32 insertions, 15 deletions
diff --git a/src/js/views/Vote.vue b/src/js/views/Vote.vue
index 28cf06f5..e5209eeb 100644
--- a/src/js/views/Vote.vue
+++ b/src/js/views/Vote.vue
@@ -45,13 +45,10 @@
class="error" />
</h2>
- <MarkUpDescription />
- </div>
-
- <div v-if="acl.allowAddOptions && !acl.isOwner">
- <h3>{{ t('polls', 'This poll is open for proposals') }}</h3>
- <OptionsDateAdd v-if="poll.type === 'datePoll'" />
- <OptionsTextAdd v-if="poll.type === 'textPoll'" />
+ <div class="area__header__description">
+ <MarkUpDescription />
+ <OptionProposals v-if="acl.allowAddOptions" />
+ </div>
</div>
<div class="area__main" :class="viewMode">
@@ -98,8 +95,7 @@ import VoteTable from '../components/VoteTable/VoteTable'
import ActionSortOptions from '../components/Actions/ActionSortOptions'
import ActionChangeView from '../components/Actions/ActionChangeView'
import ActionToggleSidebar from '../components/Actions/ActionToggleSidebar'
-import OptionsDateAdd from '../components/Options/OptionsDateAdd'
-import OptionsTextAdd from '../components/Options/OptionsTextAdd'
+import OptionProposals from '../components/Options/OptionProposals'
export default {
name: 'Vote',
@@ -115,8 +111,7 @@ export default {
PollInformation,
PublicRegisterModal,
VoteTable,
- OptionsDateAdd,
- OptionsTextAdd,
+ OptionProposals,
},
data() {
@@ -231,12 +226,34 @@ export default {
</script>
<style lang="scss" scoped>
-.description {
- white-space: pre-wrap;
+.area__header__description {
+ display: flex;
+ flex-wrap: wrap;
+
+ .markup-description {
+ min-width: 275px;
+ padding: 8px;
+ flex: 1;
+ }
+ .option-proposals {
+ width: 300px;
+ max-width: 400px;
+ min-width: 275px;
+ padding: 8px;
+ flex: 1 1 300px;
+ border: 1px solid var(--color-polls-foreground-yes);
+ border-radius: var(--border-radius);
+ background-color: var(--color-polls-background-yes);
+ .mx-datepicker {
+ .mx-input {
+ background-clip: initial !important;
+ }
+ }
+ }
}
-.description a {
- font-weight: bold;
+.description {
+ white-space: pre-wrap;
}
.header-actions {