@dhyasama/totem-models 6.3.5 → 6.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Organization.js +9 -5
- package/package.json +1 -1
package/lib/Organization.js
CHANGED
|
@@ -297,7 +297,7 @@ module.exports = function(mongoose, config) {
|
|
|
297
297
|
// colspan is for the number of columns the field should take up on the list page
|
|
298
298
|
colspan: { type: Number, default: 1 },
|
|
299
299
|
|
|
300
|
-
//
|
|
300
|
+
// showOnFilter controls whether values are extracted and used in filtering options on list page
|
|
301
301
|
showOnFilter: { type: Boolean, default: true },
|
|
302
302
|
|
|
303
303
|
// showOnList controls if the field will be on deal list page
|
|
@@ -534,7 +534,8 @@ module.exports = function(mongoose, config) {
|
|
|
534
534
|
if (standardFields.fundraise.active && standardFields.fundraise.showOnList) {
|
|
535
535
|
result.push({
|
|
536
536
|
name: 'Fundraise Amount',
|
|
537
|
-
order: standardFields.fundraise.order * 10
|
|
537
|
+
order: standardFields.fundraise.order * 10,
|
|
538
|
+
colspan: standardFields.fundraise.colspan
|
|
538
539
|
}, {
|
|
539
540
|
name: 'Fundraise Valuation',
|
|
540
541
|
order: standardFields.fundraise.order * 10 + 1
|
|
@@ -544,14 +545,16 @@ module.exports = function(mongoose, config) {
|
|
|
544
545
|
if (standardFields.sources.active && standardFields.sources.showOnList) {
|
|
545
546
|
result.push({
|
|
546
547
|
name: 'Source',
|
|
547
|
-
order: standardFields.sources.order * 10
|
|
548
|
+
order: standardFields.sources.order * 10,
|
|
549
|
+
colspan: standardFields.fundraise.colspan
|
|
548
550
|
});
|
|
549
551
|
}
|
|
550
552
|
|
|
551
553
|
if (standardFields.referrers.active && standardFields.referrers.showOnList) {
|
|
552
554
|
result.push({
|
|
553
555
|
name: 'Referrers',
|
|
554
|
-
order: standardFields.referrers.order * 10
|
|
556
|
+
order: standardFields.referrers.order * 10,
|
|
557
|
+
colspan: standardFields.fundraise.colspan
|
|
555
558
|
});
|
|
556
559
|
}
|
|
557
560
|
|
|
@@ -560,7 +563,8 @@ module.exports = function(mongoose, config) {
|
|
|
560
563
|
if (field.display.showOnList) {
|
|
561
564
|
result.push({
|
|
562
565
|
name: field.label,
|
|
563
|
-
order: field.display.order * 10
|
|
566
|
+
order: field.display.order * 10,
|
|
567
|
+
colspan: field.display.colspan
|
|
564
568
|
});
|
|
565
569
|
}
|
|
566
570
|
});
|