- Enable Edit Event into dialog form ... (and save to the db)

- Event: enabled drag and drop (date)
- Q-Select components in every table field external: Where, Operators, etc...
- CMyEditor: Add HTML Editor to the details field !
- Added button Color for change font color to the text.
- Complete insert Events Site
This commit is contained in:
Paolo Arena
2019-10-23 23:47:21 +02:00
parent 570bbf3744
commit 51ca2da45f
8 changed files with 386 additions and 49 deletions

View File

@@ -42,7 +42,6 @@ const bookingSchema = new Schema({
booked: {
type: Boolean,
},
});
bookingSchema.statics.findAllByUserIdAndIdApp = function (userId, idapp, sall) {

View File

@@ -0,0 +1,43 @@
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const tools = require('../tools/general');
mongoose.Promise = global.Promise;
mongoose.level = "F";
// Resolving error Unknown modifier: $pushAll
mongoose.plugin(schema => {
schema.options.usePushEach = true
});
const ContribtypeSchema = new Schema({
idapp: {
type: String,
},
label: {
type: String,
},
showprice: {
type: Boolean,
}
});
ContribtypeSchema.statics.executeQueryTable = function (idapp, params) {
return tools.executeQueryTable(this, idapp, params);
};
ContribtypeSchema.statics.findAllIdApp = function (idapp) {
const Contribtype = this;
const myfind = { idapp };
return Contribtype.find(myfind, (err, arrrec) => {
return arrrec
});
};
const Contribtype = mongoose.model('Contribtype', ContribtypeSchema);
module.exports = { Contribtype };

View File

@@ -50,8 +50,8 @@ const MyEventSchema = new Schema({
wherecode: {
type: String,
},
contribtype: { // TABLE
type: Number,
contribtype: {
type: String,
},
price: {
type: Number,
@@ -59,7 +59,7 @@ const MyEventSchema = new Schema({
infoafterprice: {
type: String,
},
teacher: { // TABLE ?!
teacher: {
type: String,
},
teacher2: {