Skip to content
Snippets Groups Projects
Commit 5a4c7beb authored by jaapjansma's avatar jaapjansma
Browse files

minor changes

parent 9f343d86
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,7 @@
ng-model="model.input.name"
class="big crm-form-text"
required
autofocus
/>
<div ng-show="invalidName">
<em>{{ts('WARNING: The name of the formprocessor is invalid (Only lowercase characters and _ are allowed).')}}</em>
......
......@@ -14,6 +14,7 @@
ng-model="model.input.name"
class="big crm-form-text"
required
autofocus
/>
<div ng-show="invalidName">
<em>{{ts('WARNING: The name of the formprocessor is invalid (Only lowercase characters and _ are allowed).')}}</em>
......
......@@ -13,19 +13,22 @@
}
}
});
/*$routeProvider.when('/formProcessor/new', {
$routeProvider.when('/formProcessor/new', {
templateUrl: '~/form_processor/edit.html',
controller: 'FormProcessorCtrl',
resolve: {
formProcessor: function($route, crmApi) {
return {
apiCalls: function($route, crmApi) {
reqs = {};
reqs.formProcessor = {
name: '',
title: '',
is_active: '1',
};
inputs: []
};
return reqs;
}
}
});*/
});
$routeProvider.when('/formProcessor/:id', {
templateUrl: '~/form_processor/edit.html',
controller: 'FormProcessorCtrl',
......@@ -106,7 +109,10 @@
};
// Open a dialog for adding an input
$scope.addInput = function addInput(inputType) {
$scope.addInput = function addInput(inputType) {
if (!inputType) {
return;
}
var options = CRM.utils.adjustDialogDefaults({
autoOpen: false,
width: '40%',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment