mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
open contribution table style
This commit is contained in:
parent
130cc2b624
commit
544261bac0
@ -164,7 +164,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div> -->
|
</div> -->
|
||||||
<b-collapse :id="collapsId" class="mt-2" v-model="visible">
|
<b-collapse :id="collapsId" class="mt-2" v-model="visible">
|
||||||
|
|
||||||
<contribution-messages-list
|
<contribution-messages-list
|
||||||
:messages="messages_get"
|
:messages="messages_get"
|
||||||
:state="state"
|
:state="state"
|
||||||
@ -172,7 +171,6 @@
|
|||||||
@get-list-contribution-messages="getListContributionMessages"
|
@get-list-contribution-messages="getListContributionMessages"
|
||||||
@update-state="updateState"
|
@update-state="updateState"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
</b-collapse>
|
</b-collapse>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -1,12 +1,30 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="container">
|
<div class="px-2">
|
||||||
<div class="open-creations-amount bg-white appBoxShadow gradido-border-radius p-4">
|
<div>
|
||||||
<div class="my-3">
|
<b-row class="small">
|
||||||
<ul class="my-3">
|
<b-col>Monatsbeiträge</b-col>
|
||||||
<li v-html="textForMonth(new Date(minimalDate), maxGddLastMonth)"></li>
|
<b-col class="d-none d-md-inline">Status</b-col>
|
||||||
<li v-html="textForMonth(new Date(), maxGddThisMonth)"></li>
|
<b-col class="d-none d-md-inline">Eingereicht</b-col>
|
||||||
</ul>
|
<b-col>offene Stunden</b-col>
|
||||||
</div>
|
</b-row>
|
||||||
|
|
||||||
|
<b-row>
|
||||||
|
<b-col>{{ $d(new Date(minimalDate), 'monthAndYear') }}</b-col>
|
||||||
|
<b-col class="d-none d-md-inline">
|
||||||
|
{{ maxGddLastMonth > 0 ? 'Einreichen' : 'Max. erreicht' }}
|
||||||
|
</b-col>
|
||||||
|
<b-col class="d-none d-md-inline">{{ (1000 - maxGddLastMonth) / 20 }} h</b-col>
|
||||||
|
<b-col>{{ maxGddLastMonth / 20 }} h</b-col>
|
||||||
|
</b-row>
|
||||||
|
|
||||||
|
<b-row>
|
||||||
|
<b-col>{{ $d(new Date(), 'monthAndYear') }}</b-col>
|
||||||
|
<b-col class="d-none d-md-inline">
|
||||||
|
{{ maxGddThisMonth > 0 ? 'Einreichen' : 'Max. erreicht' }}
|
||||||
|
</b-col>
|
||||||
|
<b-col class="d-none d-md-inline">{{ (1000 - maxGddThisMonth) / 20 }} h</b-col>
|
||||||
|
<b-col>{{ maxGddThisMonth / 20 }} h</b-col>
|
||||||
|
</b-row>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -18,15 +36,5 @@ export default {
|
|||||||
maxGddLastMonth: { type: Number, required: true },
|
maxGddLastMonth: { type: Number, required: true },
|
||||||
maxGddThisMonth: { type: Number, required: true },
|
maxGddThisMonth: { type: Number, required: true },
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
|
||||||
textForMonth(date, availableAmount) {
|
|
||||||
const obj = {
|
|
||||||
monthAndYear: this.$d(date, 'monthAndYear'),
|
|
||||||
creation: availableAmount,
|
|
||||||
}
|
|
||||||
return this.$t('contribution.formText.openAmountForMonth', obj)
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="nav-community container">
|
<div class="nav-community">
|
||||||
<b-row class="nav-row">
|
<b-row class="nav-row">
|
||||||
<b-col cols="12" md="4" lg="4" class="mb-2 mb-md-0 mb-lg-0">
|
<b-col cols="12" lg="4" md="4">
|
||||||
<b-btn active-class="btn-active" variant="link" block to="#edit">
|
<b-btn active-class="btn-active" block variant="link" to="#edit">
|
||||||
<b-icon icon="pencil" class="mr-2" />
|
<b-icon icon="pencil" class="mr-2" />
|
||||||
{{ $t('community.submitContribution') }}
|
{{ $t('community.submitContribution') }}
|
||||||
</b-btn>
|
</b-btn>
|
||||||
</b-col>
|
</b-col>
|
||||||
<b-col cols="12" md="4" lg="4" class="text-center mb-2 mb-md-0 mb-lg-0">
|
<b-col cols="12" lg="4" md="4">
|
||||||
<b-btn active-class="btn-active" variant="link" block to="#my">
|
<b-btn active-class="btn-active" block variant="link" to="#my">
|
||||||
<b-icon icon="person" class="mr-2" />
|
<b-icon icon="person" class="mr-2" />
|
||||||
{{ $t('community.myContributions') }}
|
{{ $t('community.myContributions') }}
|
||||||
</b-btn>
|
</b-btn>
|
||||||
</b-col>
|
</b-col>
|
||||||
<b-col cols="12" md="4" lg="4" class="text-right">
|
<b-col cols="12" lg="4" md="4">
|
||||||
<b-btn active-class="btn-active" variant="link" block to="#all">
|
<b-btn active-class="btn-active" block variant="link" to="#all">
|
||||||
<b-icon icon="people" class="mr-2" />
|
<b-icon icon="people" class="mr-2" />
|
||||||
{{ $t('community.community') }}
|
{{ $t('community.community') }}
|
||||||
</b-btn>
|
</b-btn>
|
||||||
|
|||||||
@ -17,8 +17,8 @@
|
|||||||
<collapse-icon class="text-right" :visible="visible" />
|
<collapse-icon class="text-right" :visible="visible" />
|
||||||
</b-col>
|
</b-col>
|
||||||
</b-row>
|
</b-row>
|
||||||
<b-collapse class="pb-4 pt-5" v-model="visible">
|
<b-collapse class="pb-4 pt-lg-3" v-model="visible">
|
||||||
<div class="word-break mb-4 mt-lg-3 offset-3 offset-lg-2">
|
<div class="word-break mb-4 mt-lg-3 offset-2">
|
||||||
<div class="font-weight-bold pb-2">{{ $t('form.memo') }}</div>
|
<div class="font-weight-bold pb-2">{{ $t('form.memo') }}</div>
|
||||||
{{ memo }}
|
{{ memo }}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -42,8 +42,8 @@
|
|||||||
<collapse-icon class="text-right" :visible="visible" />
|
<collapse-icon class="text-right" :visible="visible" />
|
||||||
</b-col>
|
</b-col>
|
||||||
</b-row>
|
</b-row>
|
||||||
<b-collapse class="pb-4 pt-5" v-model="visible">
|
<b-collapse class="pb-4 pt-lg-3" v-model="visible">
|
||||||
<div class="word-break mb-4 mt-lg-3 offset-3 offset-lg-2">
|
<div class="word-break mb-4 mt-lg-3 offset-2">
|
||||||
<div class="font-weight-bold pb-2">{{ $t('form.memo') }}</div>
|
<div class="font-weight-bold pb-2">{{ $t('form.memo') }}</div>
|
||||||
{{ memo }}
|
{{ memo }}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -41,8 +41,8 @@
|
|||||||
<collapse-icon class="text-right" :visible="visible" />
|
<collapse-icon class="text-right" :visible="visible" />
|
||||||
</b-col>
|
</b-col>
|
||||||
</b-row>
|
</b-row>
|
||||||
<b-collapse class="pb-4 pt-2" v-model="visible">
|
<b-collapse class="pb-4 pt-lg-3" v-model="visible">
|
||||||
<div class="word-break mb-5 mt-lg-3 offset-3 offset-lg-2">
|
<div class="word-break mb-5 mt-lg-3 offset-2">
|
||||||
<div class="font-weight-bold pb-2">{{ $t('form.memo') }}</div>
|
<div class="font-weight-bold pb-2">{{ $t('form.memo') }}</div>
|
||||||
<div class="">{{ memo }}</div>
|
<div class="">{{ memo }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -35,7 +35,7 @@
|
|||||||
</b-col>
|
</b-col>
|
||||||
<!-- ContentHeader && Content -->
|
<!-- ContentHeader && Content -->
|
||||||
<b-col>
|
<b-col>
|
||||||
<b-row>
|
<b-row class="px-lg-3">
|
||||||
<b-col cols="12">
|
<b-col cols="12">
|
||||||
<b-row class="d-lg-flex" cols="12">
|
<b-row class="d-lg-flex" cols="12">
|
||||||
<!-- ContentHeader -->
|
<!-- ContentHeader -->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user