mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
update: styling and some function work
This commit is contained in:
@@ -24,6 +24,7 @@
|
|||||||
<button
|
<button
|
||||||
class="btn btn-primary next-button"
|
class="btn btn-primary next-button"
|
||||||
:value="$t('next')"
|
:value="$t('next')"
|
||||||
|
:disabled="!newGroupIsReady"
|
||||||
@click="close()"
|
@click="close()"
|
||||||
>
|
>
|
||||||
{{ $t('next') }}
|
{{ $t('next') }}
|
||||||
@@ -39,7 +40,7 @@
|
|||||||
<input
|
<input
|
||||||
id="new-group-name"
|
id="new-group-name"
|
||||||
v-model="newGroup.name"
|
v-model="newGroup.name"
|
||||||
class="form-control input-medium option-content"
|
class="form-control input-medium option-content name-input"
|
||||||
required="required"
|
required="required"
|
||||||
type="text"
|
type="text"
|
||||||
:placeholder="$t('nameStarText')"
|
:placeholder="$t('nameStarText')"
|
||||||
@@ -53,7 +54,7 @@
|
|||||||
<textarea
|
<textarea
|
||||||
id="new-group-description"
|
id="new-group-description"
|
||||||
v-model="newGroup.description"
|
v-model="newGroup.description"
|
||||||
class="form-control option-content"
|
class="form-control option-content description-input"
|
||||||
cols="3"
|
cols="3"
|
||||||
:placeholder="$t('descriptionOptionalText')"
|
:placeholder="$t('descriptionOptionalText')"
|
||||||
></textarea>
|
></textarea>
|
||||||
@@ -86,24 +87,28 @@
|
|||||||
for="create-group-leaderOnlyChallenges-checkbox"
|
for="create-group-leaderOnlyChallenges-checkbox"
|
||||||
>{{ $t('leaderOnlyChallenges') }}</label>
|
>{{ $t('leaderOnlyChallenges') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
</div>
|
||||||
<lockable-label
|
<div class="form-group">
|
||||||
:text="$t('groupUse')"
|
<lockable-label
|
||||||
/>
|
:text="$t('groupUse')"
|
||||||
<select-translated-array
|
/>
|
||||||
:items="[
|
<select-translated-array
|
||||||
'groupUseDefault',
|
v-model="newGroup.demographics"
|
||||||
'groupParentChildren',
|
:items="[
|
||||||
'groupCouple',
|
'groupUseDefault',
|
||||||
'groupFriends',
|
'groupParentChildren',
|
||||||
'groupCoworkers',
|
'groupCouple',
|
||||||
'groupManager',
|
'groupFriends',
|
||||||
'groupTeacher'
|
'groupCoworkers',
|
||||||
]"
|
'groupManager',
|
||||||
:value="groupUseDefault"
|
'groupTeacher'
|
||||||
@select="groupUseDefault"
|
]"
|
||||||
/>
|
:value="groupUseDefault"
|
||||||
</div>
|
class="group-input"
|
||||||
|
@select="groupUseDefault"
|
||||||
|
/>
|
||||||
|
<!-- need to figure out what goes in @select
|
||||||
|
there's an error being thrown in the component, perhaps I can't reuse it? -->
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-if="type === 'party'"
|
v-if="type === 'party'"
|
||||||
@@ -117,11 +122,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<button
|
<button
|
||||||
class="btn btn-primary btn-lg btn-block"
|
class="btn btn-primary btn-lg btn-block btn-payment"
|
||||||
:disabled="!newGroupIsReady"
|
:disabled="!newGroupIsReady"
|
||||||
@click="createGroup()"
|
@click="createGroup()"
|
||||||
>
|
>
|
||||||
{{ $t('create') }}
|
{{ $t('nextPaymentMethod') }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -167,6 +172,22 @@
|
|||||||
height: 32px;
|
height: 32px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.name-input, .description-input, .group-input {
|
||||||
|
margin-top: -4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.description-input {
|
||||||
|
height: 56px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.spacer {
|
||||||
|
margin-bottom: 16px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-payment {
|
||||||
|
margin-top: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
.payment-options {
|
.payment-options {
|
||||||
margin-bottom: 4em;
|
margin-bottom: 4em;
|
||||||
|
|
||||||
@@ -291,6 +312,7 @@ export default {
|
|||||||
leaderOnly: {
|
leaderOnly: {
|
||||||
challenges: false,
|
challenges: false,
|
||||||
},
|
},
|
||||||
|
demographics: '',
|
||||||
},
|
},
|
||||||
activePage: 'create-group',
|
activePage: 'create-group',
|
||||||
type: 'guild', // Guild or Party @TODO enum this
|
type: 'guild', // Guild or Party @TODO enum this
|
||||||
@@ -301,7 +323,7 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
...mapState({ user: 'user.data' }),
|
...mapState({ user: 'user.data' }),
|
||||||
newGroupIsReady () {
|
newGroupIsReady () {
|
||||||
return Boolean(this.newGroup.name);
|
return Boolean(this.newGroup.name) && Boolean(this.newGroup.demographics);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
|
|||||||
@@ -357,6 +357,7 @@
|
|||||||
"nameStarText": "Add a title",
|
"nameStarText": "Add a title",
|
||||||
"descriptionOptional": "Description",
|
"descriptionOptional": "Description",
|
||||||
"descriptionOptionalText": "Add a description",
|
"descriptionOptionalText": "Add a description",
|
||||||
|
"nextPaymentMethod": "Next: Payment Method",
|
||||||
"congratsOnGroupPlan": "Congratulations on creating your new Group! Here are a few answers to some of the more commonly asked questions.",
|
"congratsOnGroupPlan": "Congratulations on creating your new Group! Here are a few answers to some of the more commonly asked questions.",
|
||||||
"whatsIncludedGroup": "What's included in the subscription",
|
"whatsIncludedGroup": "What's included in the subscription",
|
||||||
"whatsIncludedGroupDesc": "All members of the Group receive full subscription benefits, including the monthly subscriber items, the ability to buy Gems with Gold, and the Royal Purple Jackalope mount, which is exclusive to users with a Group Plan membership.",
|
"whatsIncludedGroupDesc": "All members of the Group receive full subscription benefits, including the monthly subscriber items, the ability to buy Gems with Gold, and the Royal Purple Jackalope mount, which is exclusive to users with a Group Plan membership.",
|
||||||
|
|||||||
Reference in New Issue
Block a user