mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
improve sub styling
This commit is contained in:
@@ -2,11 +2,7 @@
|
|||||||
<form @submit.prevent="saveHero({ hero, msg: 'Subscription Perks' })">
|
<form @submit.prevent="saveHero({ hero, msg: 'Subscription Perks' })">
|
||||||
<div class="card mt-2">
|
<div class="card mt-2">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<h3
|
<h3 class="mb-0 mt-0" :class="{ 'open': expand }" @click="expand = !expand">
|
||||||
class="mb-0 mt-0"
|
|
||||||
:class="{'open': expand}"
|
|
||||||
@click="expand = !expand"
|
|
||||||
>
|
|
||||||
Subscription, Monthly Perks
|
Subscription, Monthly Perks
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
@@ -23,19 +19,13 @@
|
|||||||
Group plan ID:
|
Group plan ID:
|
||||||
<strong>{{ hero.purchased.plan.owner }}</strong>
|
<strong>{{ hero.purchased.plan.owner }}</strong>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div v-if="hero.purchased.plan.dateCreated" class="form-group row">
|
||||||
v-if="hero.purchased.plan.dateCreated"
|
<label class="col-sm-3 col-form-label">
|
||||||
class="form-group row"
|
|
||||||
>
|
|
||||||
<label>
|
|
||||||
Creation date:
|
Creation date:
|
||||||
</label>
|
</label>
|
||||||
<div class="col-sm-9">
|
<div class="col-sm-9">
|
||||||
<input
|
<div class="input-group">
|
||||||
v-model="hero.purchased.plan.dateCreated"
|
<input v-model="hero.purchased.plan.dateCreated" class="form-control" type="text">
|
||||||
class="form-control"
|
|
||||||
type="text"
|
|
||||||
>
|
|
||||||
<div class="input-group-append">
|
<div class="input-group-append">
|
||||||
<strong>
|
<strong>
|
||||||
{{ dateFormat(hero.purchased.plan.dateCreated) }}
|
{{ dateFormat(hero.purchased.plan.dateCreated) }}
|
||||||
@@ -43,19 +33,14 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
</div>
|
||||||
v-if="hero.purchased.plan.dateCurrentTypeCreated"
|
<div v-if="hero.purchased.plan.dateCurrentTypeCreated" class="form-group row">
|
||||||
class="form-group row"
|
|
||||||
>
|
|
||||||
<label class="col-sm-3 col-form-label">
|
<label class="col-sm-3 col-form-label">
|
||||||
Start date for current subscription type:
|
Current sub start date:
|
||||||
</label>
|
</label>
|
||||||
<div class="col-sm-9 input-group">
|
<div class="col-sm-9">
|
||||||
<input
|
<div class="input-group">
|
||||||
v-model="hero.purchased.plan.dateCurrentTypeCreated"
|
<input v-model="hero.purchased.plan.dateCurrentTypeCreated" class="form-control" type="text">
|
||||||
class="form-control"
|
|
||||||
type="text"
|
|
||||||
>
|
|
||||||
<div class="input-group-append">
|
<div class="input-group-append">
|
||||||
<strong>
|
<strong>
|
||||||
{{ dateFormat(hero.purchased.plan.dateCurrentTypeCreated) }}
|
{{ dateFormat(hero.purchased.plan.dateCurrentTypeCreated) }}
|
||||||
@@ -63,17 +48,14 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="col-sm-3 col-form-label">
|
<label class="col-sm-3 col-form-label">
|
||||||
Termination date:
|
Termination date:
|
||||||
</label>
|
</label>
|
||||||
<div class="col-sm-9">
|
<div class="col-sm-9">
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<input
|
<input v-model="hero.purchased.plan.dateTerminated" class="form-control" type="text">
|
||||||
v-model="hero.purchased.plan.dateTerminated"
|
|
||||||
class="form-control"
|
|
||||||
type="text"
|
|
||||||
>
|
|
||||||
<div class="input-group-append">
|
<div class="input-group-append">
|
||||||
<strong class="input-group-text">
|
<strong class="input-group-text">
|
||||||
{{ dateFormat(hero.purchased.plan.dateTerminated) }}
|
{{ dateFormat(hero.purchased.plan.dateTerminated) }}
|
||||||
@@ -87,13 +69,7 @@
|
|||||||
Consecutive months:
|
Consecutive months:
|
||||||
</label>
|
</label>
|
||||||
<div class="col-sm-9">
|
<div class="col-sm-9">
|
||||||
<input
|
<input v-model="hero.purchased.plan.consecutive.count" class="form-control" type="number" min="0" step="1">
|
||||||
v-model="hero.purchased.plan.consecutive.count"
|
|
||||||
class="form-control"
|
|
||||||
type="number"
|
|
||||||
min="0"
|
|
||||||
step="1"
|
|
||||||
>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
@@ -101,13 +77,7 @@
|
|||||||
Perk offset months:
|
Perk offset months:
|
||||||
</label>
|
</label>
|
||||||
<div class="col-sm-9">
|
<div class="col-sm-9">
|
||||||
<input
|
<input v-model="hero.purchased.plan.consecutive.offset" class="form-control" type="number" min="0" step="1">
|
||||||
v-model="hero.purchased.plan.consecutive.offset"
|
|
||||||
class="form-control"
|
|
||||||
type="number"
|
|
||||||
min="0"
|
|
||||||
step="1"
|
|
||||||
>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
@@ -115,14 +85,8 @@
|
|||||||
Perk month count:
|
Perk month count:
|
||||||
</label>
|
</label>
|
||||||
<div class="col-sm-9">
|
<div class="col-sm-9">
|
||||||
<input
|
<input v-model="hero.purchased.plan.perkMonthCount" class="form-control" type="number" min="0" max="2"
|
||||||
v-model="hero.purchased.plan.perkMonthCount"
|
step="1">
|
||||||
class="form-control"
|
|
||||||
type="number"
|
|
||||||
min="0"
|
|
||||||
max="2"
|
|
||||||
step="1"
|
|
||||||
>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
@@ -136,13 +100,8 @@
|
|||||||
Mystic Hourglasses:
|
Mystic Hourglasses:
|
||||||
</label>
|
</label>
|
||||||
<div class="col-sm-9">
|
<div class="col-sm-9">
|
||||||
<input
|
<input v-model="hero.purchased.plan.consecutive.trinkets" class="form-control" type="number" min="0"
|
||||||
v-model="hero.purchased.plan.consecutive.trinkets"
|
step="1">
|
||||||
class="form-control"
|
|
||||||
type="number"
|
|
||||||
min="0"
|
|
||||||
step="1"
|
|
||||||
>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
@@ -150,14 +109,8 @@
|
|||||||
Gem cap increase:
|
Gem cap increase:
|
||||||
</label>
|
</label>
|
||||||
<div class="col-sm-9">
|
<div class="col-sm-9">
|
||||||
<input
|
<input v-model="hero.purchased.plan.consecutive.gemCapExtra" class="form-control" type="number" min="0"
|
||||||
v-model="hero.purchased.plan.consecutive.gemCapExtra"
|
max="25" step="5">
|
||||||
class="form-control"
|
|
||||||
type="number"
|
|
||||||
min="0"
|
|
||||||
max="25"
|
|
||||||
step="5"
|
|
||||||
>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
@@ -173,19 +126,11 @@
|
|||||||
Gems bought this month:
|
Gems bought this month:
|
||||||
</label>
|
</label>
|
||||||
<div class="col-sm-9">
|
<div class="col-sm-9">
|
||||||
<input
|
<input v-model="hero.purchased.plan.gemsBought" class="form-control" type="number" min="0"
|
||||||
v-model="hero.purchased.plan.gemsBought"
|
:max="hero.purchased.plan.consecutive.gemCapExtra + 25" step="1">
|
||||||
class="form-control"
|
|
||||||
type="number"
|
|
||||||
min="0"
|
|
||||||
:max="hero.purchased.plan.consecutive.gemCapExtra + 25"
|
|
||||||
step="1"
|
|
||||||
>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div v-if="hero.purchased.plan.extraMonths > 0">
|
||||||
v-if="hero.purchased.plan.extraMonths > 0"
|
|
||||||
>
|
|
||||||
Additional credit (applied upon cancellation):
|
Additional credit (applied upon cancellation):
|
||||||
<strong>{{ hero.purchased.plan.extraMonths }}</strong>
|
<strong>{{ hero.purchased.plan.extraMonths }}</strong>
|
||||||
</div>
|
</div>
|
||||||
@@ -194,13 +139,8 @@
|
|||||||
Mystery Items:
|
Mystery Items:
|
||||||
</label>
|
</label>
|
||||||
<div class="col-sm-9 col-form-label">
|
<div class="col-sm-9 col-form-label">
|
||||||
<span
|
<span v-if="hero.purchased.plan.mysteryItems.length > 0">
|
||||||
v-if="hero.purchased.plan.mysteryItems.length > 0"
|
<span v-for="(item, index) in hero.purchased.plan.mysteryItems" :key="index">
|
||||||
>
|
|
||||||
<span
|
|
||||||
v-for="(item, index) in hero.purchased.plan.mysteryItems"
|
|
||||||
:key="index"
|
|
||||||
>
|
|
||||||
<strong v-if="index < hero.purchased.plan.mysteryItems.length - 1">
|
<strong v-if="index < hero.purchased.plan.mysteryItems.length - 1">
|
||||||
{{ item }},
|
{{ item }},
|
||||||
</strong>
|
</strong>
|
||||||
@@ -214,11 +154,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer" v-if="expand">
|
<div class="card-footer" v-if="expand">
|
||||||
<input
|
<input type="submit" value="Save" class="btn btn-primary mt-1">
|
||||||
type="submit"
|
</div>
|
||||||
value="Save"
|
|
||||||
class="btn btn-primary mt-1"
|
|
||||||
></div>
|
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user