UNPKG

formiojs

Version:

Common js library for client side interaction with <form.io>

8 lines (7 loc) 825 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = { form: "\n<table class=\"table table-striped table-bordered\">\n <thead>\n <tr>\n <th></th>\n {% component.values.forEach(function(value) { %}\n <th style=\"text-align: center;\">{{t(value.label)}}</th>\n {% }) %}\n </tr>\n </thead>\n <tbody>\n {% component.questions.forEach(function(question) { %}\n <tr>\n <td>{{t(question.label)}}</td>\n {% component.values.forEach(function(value) { %}\n <td style=\"text-align: center;\">\n <input type=\"radio\" name=\"data[{{key}}][{{question.value}}]\" value=\"{{value.value}}\" id=\"{{key}}-{{question.value}}-{{value.value}}\" ref=\"input\">\n </td>\n {% }) %}\n </tr>\n {% }) %}\n </tbody>\n</table>\n" };