mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
update: more work on success modal
This commit is contained in:
@@ -70,7 +70,7 @@
|
|||||||
v-html="$t(paymentData.newGroup
|
v-html="$t(paymentData.newGroup
|
||||||
? 'groupPlanCreated' : 'groupPlanUpgraded', {groupName: paymentData.group.name})"
|
? 'groupPlanCreated' : 'groupPlanUpgraded', {groupName: paymentData.group.name})"
|
||||||
></span>
|
></span>
|
||||||
<!-- <div class="details-block">
|
<!--<div class="details-block">
|
||||||
<span
|
<span
|
||||||
v-html="$t('paymentSubBilling', {
|
v-html="$t('paymentSubBilling', {
|
||||||
amount: groupPlanCost, months: paymentData.subscription.months})"
|
amount: groupPlanCost, months: paymentData.subscription.months})"
|
||||||
@@ -80,33 +80,47 @@
|
|||||||
v-if="!paymentData.newGroup"
|
v-if="!paymentData.newGroup"
|
||||||
class="form-group"
|
class="form-group"
|
||||||
>
|
>
|
||||||
<div class="details-block">
|
<div class="details-block group-billing-date">
|
||||||
<span>
|
<span>
|
||||||
Your next billing date is <strong>{{ dateRenewal }}</strong>.
|
{{ $t('groupPaymentSubBilling') }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<lockable-label
|
<div class="small-text group-auto-renew">
|
||||||
:text="$t('groupUse')"
|
<span
|
||||||
/>
|
v-once
|
||||||
<select-translated-array
|
>{{ $t('groupsPaymentAutoRenew') }}
|
||||||
:items="[
|
</span>
|
||||||
'groupParentChildren',
|
</div>
|
||||||
'groupCouple',
|
<div class="demographics">
|
||||||
'groupFriends',
|
<lockable-label
|
||||||
'groupCoworkers',
|
:text="$t('groupUse')"
|
||||||
'groupManager',
|
/>
|
||||||
'groupTeacher'
|
<select-translated-array
|
||||||
]"
|
:items="[
|
||||||
class="group-input"
|
'groupParentChildren',
|
||||||
:placeholder="'groupUseDefault'"
|
'groupCouple',
|
||||||
:value="groupPlanUpgraded.demographics"
|
'groupFriends',
|
||||||
@select="groupPlanUpgraded.demographics = $event"
|
'groupCoworkers',
|
||||||
/>
|
'groupManager',
|
||||||
|
'groupTeacher'
|
||||||
|
]"
|
||||||
|
class="group-input"
|
||||||
|
:placeholder="'groupUseDefault'"
|
||||||
|
:value="groupPlanUpgraded.demographics"
|
||||||
|
@select="groupPlanUpgraded.demographics = $event"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<button
|
||||||
|
v-oncee="!paymentData.newGroup"
|
||||||
|
class="btn btn-primary"
|
||||||
|
@click="close()"
|
||||||
|
>
|
||||||
|
{{ $t('submit') }}
|
||||||
|
</button>
|
||||||
</template>
|
</template>
|
||||||
<template
|
<template
|
||||||
v-if="paymentData.paymentType === 'groupPlan'
|
v-if="paymentData.paymentType === 'subscription'"
|
||||||
|| paymentData.paymentType === 'subscription'"
|
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
v-once
|
v-once
|
||||||
@@ -115,14 +129,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<div>
|
<div>
|
||||||
<button
|
<button
|
||||||
v-if="!paymentData.newGroup"
|
v-if="paymentData.paymentType === 'subscription'"
|
||||||
class="btn btn-primary"
|
|
||||||
@click="close()"
|
|
||||||
>
|
|
||||||
{{ $t('submit') }}
|
|
||||||
</button>
|
|
||||||
<button
|
|
||||||
v-else
|
|
||||||
class="btn btn-primary"
|
class="btn btn-primary"
|
||||||
@click="close()"
|
@click="close()"
|
||||||
>
|
>
|
||||||
@@ -223,6 +230,26 @@
|
|||||||
color: $orange-10;
|
color: $orange-10;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
.group-auto-renew {
|
||||||
|
margin-top: 16px;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
color: $yellow-5;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.group-billing-date {
|
||||||
|
width: 269px;
|
||||||
|
text-align: center;
|
||||||
|
margin-left: 57px;
|
||||||
|
}
|
||||||
|
.form-group {
|
||||||
|
// padding-top: 32px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.demographics {
|
||||||
|
background-color: $gray-700;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#payments-success-modal .modal-footer {
|
#payments-success-modal .modal-footer {
|
||||||
|
|||||||
@@ -93,8 +93,10 @@
|
|||||||
"paymentYouSentGems": "You sent <strong><%- name %></strong>:",
|
"paymentYouSentGems": "You sent <strong><%- name %></strong>:",
|
||||||
"paymentYouSentSubscription": "You sent <strong><%- name %></strong> a <%= months %>-months Habitica subscription.",
|
"paymentYouSentSubscription": "You sent <strong><%- name %></strong> a <%= months %>-months Habitica subscription.",
|
||||||
"paymentSubBilling": "Your subscription will be billed <strong>$<%= amount %></strong> every <strong><%= months %> months</strong>.",
|
"paymentSubBilling": "Your subscription will be billed <strong>$<%= amount %></strong> every <strong><%= months %> months</strong>.",
|
||||||
|
"groupPaymentSubBilling": "Your subscription will auto-renew on <strong><%= dateRenewal %></strong>.",
|
||||||
"paymentSubBillingWithMethod": "Your subscription will be billed <strong>$<%= amount %></strong> every <strong><%= months %> months</strong> via <strong><%= paymentMethod %></strong>.",
|
"paymentSubBillingWithMethod": "Your subscription will be billed <strong>$<%= amount %></strong> every <strong><%= months %> months</strong> via <strong><%= paymentMethod %></strong>.",
|
||||||
"paymentAutoRenew": "This subscription will auto-renew until it is canceled. If you need to cancel this subscription, you can do so from your settings.",
|
"paymentAutoRenew": "This subscription will auto-renew until it is canceled. If you need to cancel this subscription, you can do so from your settings.",
|
||||||
|
"groupsPaymentAutoRenew": "This subscription will auto-renew until it is canceled. If you need to cancel, you can do so from the Group Billing tab.",
|
||||||
"paymentCanceledDisputes": "We’ve sent a cancelation confirmation to your email. If you don’t see the email, please contact us to prevent future billing disputes.",
|
"paymentCanceledDisputes": "We’ve sent a cancelation confirmation to your email. If you don’t see the email, please contact us to prevent future billing disputes.",
|
||||||
"success": "Success!",
|
"success": "Success!",
|
||||||
"classGear": "Class Gear",
|
"classGear": "Class Gear",
|
||||||
|
|||||||
Reference in New Issue
Block a user