mirror of
https://github.com/typemill/typemill.git
synced 2025-08-03 20:57:38 +02:00
v2.2.0 add license activation input again
This commit is contained in:
@@ -43,6 +43,40 @@ const app = Vue.createApp({
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div v-for="(fieldDefinition, fieldname) in formDefinitions">
|
||||
<fieldset class="flex flex-wrap justify-between border-2 border-stone-200 p-4 my-8" v-if="fieldDefinition.type == 'fieldset'">
|
||||
<legend class="text-lg font-medium">{{ fieldDefinition.legend }}</legend>
|
||||
<component v-for="(subfieldDefinition, subfieldname) in fieldDefinition.fields"
|
||||
:key="subfieldname"
|
||||
:is="selectComponent(subfieldDefinition.type)"
|
||||
:errors="errors"
|
||||
:name="subfieldname"
|
||||
:userroles="userroles"
|
||||
:value="formData[subfieldname]"
|
||||
v-bind="subfieldDefinition">
|
||||
</component>
|
||||
</fieldset>
|
||||
<component v-else
|
||||
:key="fieldname"
|
||||
:is="selectComponent(fieldDefinition.type)"
|
||||
:errors="errors"
|
||||
:name="fieldname"
|
||||
:userroles="userroles"
|
||||
:value="formData[fieldname]"
|
||||
v-bind="fieldDefinition">
|
||||
</component>
|
||||
</div>
|
||||
<div class="my-5">
|
||||
<div :class="messageClass" class="block w-full h-8 px-3 py-1 my-1 text-white transition duration-100">{{ message }}</div>
|
||||
<input type="submit" @click.prevent="save()" value="save" class="w-full p-3 my-1 bg-stone-700 hover:bg-stone-900 text-white cursor-pointer transition duration-100">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</form>
|
||||
</Transition>`,
|
||||
data() {
|
||||
|
@@ -1,15 +1,23 @@
|
||||
license:
|
||||
name: license
|
||||
label: 'Your license key'
|
||||
type: 'text'
|
||||
required: true
|
||||
email:
|
||||
name: email
|
||||
label: 'Your email'
|
||||
type: 'text'
|
||||
required: true
|
||||
domain:
|
||||
name: domain
|
||||
label: 'Domain for license'
|
||||
type: 'text'
|
||||
required: true
|
||||
fieldsetlicense:
|
||||
type: fieldset
|
||||
legend: Activate Your License
|
||||
description: 'bla bla bla'
|
||||
fields:
|
||||
license:
|
||||
name: license
|
||||
label: 'Your license key'
|
||||
type: 'text'
|
||||
required: true
|
||||
description: 'Enter your license key. You got your license key via mail from Paddle.'
|
||||
email:
|
||||
name: email
|
||||
label: 'Your email'
|
||||
type: 'text'
|
||||
required: true
|
||||
description: 'Enter your e-mail address that you used for your license-purchase.'
|
||||
domain:
|
||||
name: domain
|
||||
label: 'Domain for license'
|
||||
type: 'text'
|
||||
required: true
|
||||
description: 'Enter the full domain like https://wwww.mywebsite.de. Note about proxy?'
|
Reference in New Issue
Block a user