This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.control-label { | |
font-weight: bold; | |
} | |
label { | |
text-align: right; | |
width: 100%; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alert('loaded'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place this inside the page's controller for a form | |
// You'll need to inject $http and $scope into the controller. | |
$scope.$on('formSubmission', function(err, submission) { | |
$http({ | |
method: 'POST', | |
url: 'http://mydomain.com/mypath', | |
eaders: { 'Content-Type': 'application/json' }, | |
data: submission.data, | |
disableJWT: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
'use strict'; | |
angular | |
.module('formioApp') | |
.config([ | |
'formioComponentsProvider', | |
function( | |
formioComponentsProvider | |
) { | |
formioComponentsProvider.register('jobrouting', { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module('spryapp') | |
.directive('spryform', function () { | |
return { | |
restrict: 'E', | |
replace: true, | |
scope: { | |
src: '=', | |
message: '=', | |
form: '=?', | |
submission: '=?' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "Alerts", | |
"display": "form", | |
"type": "form", | |
"name": "alerts", | |
"path": "alerts", | |
"components": [ | |
{ | |
"lockKey": true, | |
"type": "hidden", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var React = require('react'); | |
var ReactDOM = require('react-dom'); | |
var Formio = require('react-formio'); | |
require('react-widgets/dist/css/react-widgets.css'); | |
require('react-formio/formio.css'); | |
var formChange = function(submission, key, value) { | |
console.log('change', submission.data, key, value); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Simple utility function to resize an array after elements have been removed. | |
* | |
* @param arr | |
* The array to resize. | |
* @returns {Array} | |
*/ | |
var resizeArray = function(arr) { | |
if (!(arr instanceof Array)) { | |
return []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = require('request'); | |
request( | |
{ | |
url: 'https://{appname}.form.io/app/api/{resourcename}/submission?limit=20', | |
method: 'GET', | |
headers: { | |
'x-jwt-token': token, | |
'Range-Unit': 'items', | |
'Range': '0-20' |
NewerOlder