Update links, add group_id in customer
This commit is contained in:
parent
55f120f1ff
commit
0aa1625837
|
|
@ -14,7 +14,6 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
@import "@/styles/_variables.scss";
|
@import "@/styles/_variables.scss";
|
||||||
@import "@/styles/_mixins.scss";
|
@import "@/styles/_mixins.scss";
|
||||||
|
|
|
||||||
|
|
@ -41,8 +41,8 @@
|
||||||
<section class="get-license">
|
<section class="get-license">
|
||||||
<h2>Oder, kaufen Sie eine Lizenz</h2>
|
<h2>Oder, kaufen Sie eine Lizenz</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a :href="`{process.env.HEP_URL}/myskillbox-lehrpersonen`">mySkillobx für Lehrpersonen</a></li>
|
<li><a :href="teacherEditionUrl">mySkillobx für Lehrpersonen</a></li>
|
||||||
<li><a :href="`{process.env.HEP_URL}/myskillbox-fur-lernende`">mySkillobx für Lernende</a></li>
|
<li><a :href="studentEditionUrl">mySkillobx für Lernende</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -107,7 +107,9 @@ export default {
|
||||||
submitted: false,
|
submitted: false,
|
||||||
me: {
|
me: {
|
||||||
email: ''
|
email: ''
|
||||||
}
|
},
|
||||||
|
teacherEditionUrl: `${process.env.HEP_URL}/myskillbox-lehrpersonen`,
|
||||||
|
studentEditionUrl: `${process.env.HEP_URL}/myskillbox-fur-lernende`
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ class RegistrationProxyView(View):
|
||||||
def post(self, request, *args, **kwargs):
|
def post(self, request, *args, **kwargs):
|
||||||
hep_client = HepClient()
|
hep_client = HepClient()
|
||||||
data = json.loads(request.body)
|
data = json.loads(request.body)
|
||||||
data['group_id'] = 5
|
data['customer']['group_id'] = 5
|
||||||
|
|
||||||
try:
|
try:
|
||||||
hep_data = hep_client.customer_create(data)
|
hep_data = hep_client.customer_create(data)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue