@saltcorn/badges
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -17,3 +17,3 @@ const { span, button, i, a, script, div } = require("@saltcorn/markup/tags"); | ||
{ | ||
name: "views", | ||
name: "Badge relation", | ||
form: async (context) => { | ||
@@ -59,2 +59,3 @@ const table = await Table.findOne({ id: context.table_id }); | ||
return new Form({ | ||
blurb: "Choose the relation that defines the content of the badges", | ||
fields: [ | ||
@@ -65,2 +66,5 @@ { | ||
type: "String", | ||
sublabel: | ||
"Only many-to-many relations (JoinTable.foreignKey→keyToTableWithLabels→badgeLabel) are supported ", | ||
required: true, | ||
@@ -67,0 +71,0 @@ attributes: { |
{ | ||
"name": "@saltcorn/badges", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "Display badges from relationships", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,2 +0,2 @@ | ||
const { span } = require("@saltcorn/markup/tags"); | ||
const { span, p, code } = require("@saltcorn/markup/tags"); | ||
const View = require("@saltcorn/data/models/view"); | ||
@@ -17,3 +17,3 @@ const Workflow = require("@saltcorn/data/models/workflow"); | ||
{ | ||
name: "views", | ||
name: "Badge relation", | ||
form: async (context) => { | ||
@@ -59,2 +59,3 @@ const table = await Table.findOne({ id: context.table_id }); | ||
return new Form({ | ||
blurb: "Choose the relation that defines the content of the badges", | ||
fields: [ | ||
@@ -64,2 +65,4 @@ { | ||
label: "Relation", | ||
sublabel: | ||
"Choose a <ul><li>one-to-many relation (Table.foreignKey→badgeLabel) or a </li><li>many-to-many relation (JoinTable.foreignKey→keyToTableWithLabels→badgeLabel) </li> </ul>", | ||
type: "String", | ||
@@ -66,0 +69,0 @@ required: true, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15058
398