Merge remote-tracking branch 'origin/master'

pull/4978/head
Angel Fernando Quiroz Campos 1 year ago
commit cbfb713a45
  1. 3
      assets/locales/ar.json
  2. 3
      assets/locales/ast_ES.json
  3. 3
      assets/locales/bg.json
  4. 3
      assets/locales/bn_BD.json
  5. 3
      assets/locales/bo_CN.json
  6. 3
      assets/locales/bs_BA.json
  7. 3
      assets/locales/ca_ES.json
  8. 3
      assets/locales/cs_CZ.json
  9. 3
      assets/locales/da.json
  10. 3
      assets/locales/de.json
  11. 3
      assets/locales/el.json
  12. 3
      assets/locales/en.json
  13. 3
      assets/locales/eo.json
  14. 3
      assets/locales/es.json
  15. 3
      assets/locales/eu_ES.json
  16. 3
      assets/locales/fa_AF.json
  17. 3
      assets/locales/fa_IR.json
  18. 3
      assets/locales/fi_FI.json
  19. 3
      assets/locales/fo_FO.json
  20. 3
      assets/locales/fr_FR.json
  21. 3
      assets/locales/fur.json
  22. 3
      assets/locales/gl.json
  23. 3
      assets/locales/he_IL.json
  24. 3
      assets/locales/hi.json
  25. 3
      assets/locales/hr_HR.json
  26. 3
      assets/locales/hu_HU.json
  27. 3
      assets/locales/id_ID.json
  28. 3
      assets/locales/it.json
  29. 3
      assets/locales/ja.json
  30. 3
      assets/locales/ka_GE.json
  31. 3
      assets/locales/ko_KR.json
  32. 3
      assets/locales/lt_LT.json
  33. 3
      assets/locales/lv_LV.json
  34. 3
      assets/locales/mk_MK.json
  35. 3
      assets/locales/ms_MY.json
  36. 3
      assets/locales/nl.json
  37. 3
      assets/locales/nn_NO.json
  38. 3
      assets/locales/oc.json
  39. 3
      assets/locales/pl_PL.json
  40. 3
      assets/locales/ps.json
  41. 3
      assets/locales/pt_PT.json
  42. 3
      assets/locales/quz_PE.json
  43. 3
      assets/locales/ro_RO.json
  44. 3
      assets/locales/ru_RU.json
  45. 3
      assets/locales/sk_SK.json
  46. 3
      assets/locales/sl_SI.json
  47. 3
      assets/locales/so_SO.json
  48. 3
      assets/locales/sr_RS.json
  49. 3
      assets/locales/sv_SE.json
  50. 3
      assets/locales/sw_KE.json
  51. 3
      assets/locales/th.json
  52. 3
      assets/locales/tl_PH.json
  53. 3
      assets/locales/tr.json
  54. 3
      assets/locales/uk_UA.json
  55. 3
      assets/locales/vi_VN.json
  56. 3
      assets/locales/xh_ZA.json
  57. 3
      assets/locales/yo_NG.json
  58. 3
      assets/locales/zh_CN.json
  59. 3
      assets/locales/zh_TW.json
  60. 11
      assets/vue/components/ctoolintro/Form.vue
  61. 26
      assets/vue/components/layout/TopbarNotLoggedIn.vue
  62. 3
      assets/vue/mixins/UpdateMixin.js
  63. 28
      assets/vue/pages/Demo.vue
  64. 11
      assets/vue/router/index.js
  65. 5
      assets/vue/views/course/CourseHome.vue
  66. 14
      assets/vue/views/ctoolintro/Update.vue
  67. 7
      src/CoreBundle/Component/Utils/CreateDefaultPages.php
  68. 2
      src/CoreBundle/Controller/CourseController.php
  69. 1
      src/CoreBundle/Controller/IndexController.php

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": "\u062c\u0647\u0629 \u0627\u0644\u0627\u062a\u0635\u0627\u0644"
"Contact": "\u062c\u0647\u0629 \u0627\u0644\u0627\u062a\u0635\u0627\u0644",
"Registration": " \u062a\u0633\u062c\u064a\u0644"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": "Rexistru"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": "\u0421\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u043d\u0430 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u043d\u0430 \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u0438\u0442\u0435"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": ""
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": ""
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": ""
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": "Contacte"
"Contact": "Contacte",
"Registration": "Inscripci\u00f3"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": "Registrace"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": "Registrering"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": "Kontakt"
"Contact": "Kontakt",
"Registration": "Selbst-Registrierung"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": "\u0395\u03b3\u03b3\u03c1\u03b1\u03c6\u03ae"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": "Contact"
"Contact": "Contact",
"Registration": "Registration"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": "Registrado"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": "Contacto"
"Contact": "Contacto",
"Registration": "Registro"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": "Erregistroa"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": ""
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": "\u062b\u0628\u062a\u0646\u0627\u0645"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": "Rekister\u00f6inti"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": ""
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": "Contact"
"Contact": "Contact",
"Registration": "Inscription"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": "Contact"
"Contact": "Contact",
"Registration": "Registration"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": "Contact"
"Contact": "Contact",
"Registration": "Registration"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": ""
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": ""
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": "Registracija"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": "Regisztr\u00e1ci\u00f3"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": "Pendaftaran"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": "Registrazione"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": "\u767b\u9332"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": ""
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": "\ub4f1\ub85d"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": "Registracija"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": "Re\u0123istr\u0101cija platform\u0101"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": "\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0458\u0430"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": ""
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": "Registratie"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": "Registrering"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": "Contact"
"Contact": "Contact",
"Registration": "Registration"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": "Rejestracja"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": ""
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": "Registro\/inscri\u00e7\u00e3o"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": "Contact"
"Contact": "Contact",
"Registration": "Registration"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": "Inregistrare"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": "\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": "Registr\u00e1cia"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": "Kontakt"
"Contact": "Kontakt",
"Registration": "Dovoljenje za samoregistracijo"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": ""
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": "Registracija"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": "Registrering"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": ""
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": "\u0e01\u0e32\u0e23\u0e25\u0e07\u0e17\u0e30\u0e40\u0e1a\u0e35\u0e22\u0e19"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": "Rehistrasyon"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": "Kay\u0131t \u0130\u015flemi"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": "\u0420\u0435\u0454\u0441\u0442\u0440\u0430\u0446\u0456\u044f"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": ""
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": ""
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": ""
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": "\u6ce8\u518c"
}

@ -157,5 +157,6 @@
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Contact": ""
"Contact": "",
"Registration": "\u8a3b\u518a"
}

@ -33,6 +33,7 @@
import useVuelidate from "@vuelidate/core";
import { ref } from "vue";
import { usePlatformConfig } from "../../store/platformConfig";
import {useRoute} from "vue-router";
export default {
name: "ToolIntroForm",
props: {
@ -58,7 +59,10 @@ export default {
extraPlugins.value = "translatehtml";
}
return { v$: useVuelidate(), extraPlugins };
const route = useRoute();
const parentResourceNodeId = ref(route.query.parentResourceNodeId);
return { v$: useVuelidate(), extraPlugins, parentResourceNodeId};
},
data() {
return {
@ -77,12 +81,11 @@ export default {
},
methods: {
browser(callback, value, meta) {
//const route = useRoute();
let nodeId = this.$route.params["node"];
let nodeId = this.parentResourceNodeId;
let folderParams = this.$route.query;
let url = this.$router.resolve({
name: "DocumentForHtmlEditor",
params: { id: nodeId },
params: { node: nodeId },
query: folderParams,
});
url = url.fullPath;

@ -28,31 +28,35 @@ function setLanguage(event) {
const menuItems = ref([
{
label: 'Register oneself',
url: '/main/auth/inscription.php',
label: "FAQ",
to: { name: "Faq" },
},
{
label: 'FAQ',
url: '/web/faq',
label: "Registration",
url: "/main/auth/inscription.php",
},
{
label: 'Contact',
url: '/web/contact'
label: "Demo",
to: { name: "Demo" },
},
{
key: 'language_selector',
label: 'English',
label: "Contact",
to: { name: "Contact" },
},
{
key: "language_selector",
label: "English",
items: [
{
label: 'English',
label: "English",
command: setLanguage,
},
{
label: 'French',
label: "French",
command: setLanguage,
},
{
label: 'Spanish',
label: "Spanish",
command: setLanguage,
},
],

@ -130,7 +130,8 @@ export default {
updated(val) {
console.log('updated');
this.showMessage(`${val['@id']} updated.`);
//this.showMessage(`${val['@id']} updated.`);
this.$router.go(-1);
},
retrieved(val) {

@ -0,0 +1,28 @@
<template>
<!-- List of pages of category "contact" -->
<div class="container mx-auto flex gap-8">
<div v-if="pages.length" class="flex-1">
<PageCardList :pages="pages" class="grid gap-4 grid-cols-1" />
</div>
</div>
</template>
<script setup>
import { ref } from "vue";
import { useStore } from "vuex";
import { useI18n } from "vue-i18n";
import PageCardList from "../components/page/PageCardList";
const store = useStore();
const { locale } = useI18n();
const pages = ref([]);
store
.dispatch("page/findAll", {
"category.title": "demo",
enabled: "1",
locale: locale.value,
})
.then((response) => (pages.value = response));
</script>

@ -35,6 +35,8 @@ import Home from "../pages/Home.vue"
import Login from "../pages/Login.vue"
import Faq from "../pages/Faq.vue"
import Contact from "../pages/Contact.vue"
import Demo from "../pages/Demo.vue"
import { useCidReqStore } from "../store/cidReq"
const router = createRouter({
@ -84,6 +86,15 @@ const router = createRouter({
showBreadcrumb: false,
},
},
{
path: "/demo",
name: "Demo",
component: Demo,
meta: {
requiresAuth: false,
showBreadcrumb: false,
},
},
{
path: "/course/:id/home",
name: "CourseHome",

@ -94,7 +94,7 @@
:label="t('Edit introduction')"
icon="edit"
type="black"
@click="createInSession ? addIntro(course, intro) : updateIntro(intro)"
@click="createInSession ? addIntro(course, intro) : updateIntro(course, intro)"
/>
</div>
@ -372,7 +372,7 @@ function addIntro(course, intro) {
})
}
function updateIntro(intro) {
function updateIntro(course, intro) {
return router.push({
name: "ToolIntroUpdate",
params: { id: "/api/c_tool_intros/" + intro.iid },
@ -381,6 +381,7 @@ function updateIntro(intro) {
sid: sessionId,
ctoolintroIid: intro.iid,
ctoolId: intro.c_tool.iid,
parentResourceNodeId: course.resourceNode.id,
id: "/api/c_tool_intros/" + intro.iid,
},
})

@ -49,19 +49,17 @@ export default {
let ctoolintroId = route.query.ctoolintroIid
// Get the current intro text.
axios
.get(ENTRYPOINT + "c_tool_intros/" + ctoolintroId)
axios.get(ENTRYPOINT + "c_tool_intros/" + ctoolintroId)
.then((response) => {
let data = response.data
item.value["introText"] = data.introText
let data = response.data;
item.value["introText"] = data.introText;
item.value["parentResourceNodeId"] = Number(route.query.parentResourceNodeId);
})
.catch(function (error) {
console.log(error)
})
console.error(error);
});
item.value["parentResourceNodeId"] = Number(route.query.parentResourceNodeId)
item.value["courseTool"] = "/api/c_tools/" + toolId
item.value["resourceLinkList"] = [
{
sid,

@ -60,6 +60,13 @@ class CreateDefaultPages
;
$this->pageCategoryRepository->update($indexCategory);
$indexCategory = (new PageCategory())
->setTitle('demo')
->setType('grid')
->setCreator($user)
;
$this->pageCategoryRepository->update($indexCategory);
$page = (new Page())
->setTitle('Welcome')
->setContent('Welcome to Chamilo')

@ -643,7 +643,7 @@ class CourseController extends ToolBaseController
/** @var CToolIntro $ctoolintro */
$ctoolintro = $ctoolintroRepo->findOneBy(['courseTool' => $ctool]);
if ($ctoolintro) {
$introText = preg_replace('/<[^>]*>(\s|&nbsp;)*<\/[^>]*>/', '', $ctoolintro->getIntroText());
$introText = $ctoolintro->getIntroText();
$responseData = [
'iid' => $ctoolintro->getIid(),
'introText' => $introText,

@ -20,6 +20,7 @@ class IndexController extends BaseController
* @Route("/login", name="login", methods={"GET", "POST"}, options={"expose"=true})
* @Route("/faq", name="faq", methods={"GET", "POST"}, options={"expose"=true})
* @Route("/contact", name="contact", methods={"GET", "POST"}, options={"expose"=true})
* @Route("/demo", name="demo", methods={"GET", "POST"}, options={"expose"=true})
*
* @Route("/course/{cid}/home", name="chamilo_core_course_home")
* @Route("/courses", name="courses", methods={"GET", "POST"}, options={"expose"=true})

Loading…
Cancel
Save