fixed hide logicJump in admin panel
This commit is contained in:
parent
7ad79c4882
commit
3b0af059d2
|
@ -32,7 +32,7 @@ var LogicJumpSchema = new Schema({
|
||||||
'field begins static',
|
'field begins static',
|
||||||
'field !begins static',
|
'field !begins static',
|
||||||
'field ends static',
|
'field ends static',
|
||||||
'field !ends static',
|
'field !ends static'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
fieldA: {
|
fieldA: {
|
||||||
|
|
21
public/dist/application.js
vendored
21
public/dist/application.js
vendored
|
@ -334,7 +334,7 @@ angular.module('forms').config(['$translateProvider', function ($translateProvid
|
||||||
SUBMIT: 'Submit',
|
SUBMIT: 'Submit',
|
||||||
UPLOAD_FILE: 'Upload your File'
|
UPLOAD_FILE: 'Upload your File'
|
||||||
});
|
});
|
||||||
|
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
@ -1276,7 +1276,7 @@ angular.module('users').controller('AuthenticationController', ['$scope', '$loca
|
||||||
|
|
||||||
angular.module('users').controller('PasswordController', ['$scope', '$stateParams', '$state', 'User',
|
angular.module('users').controller('PasswordController', ['$scope', '$stateParams', '$state', 'User',
|
||||||
function($scope, $stateParams, $state, User) {
|
function($scope, $stateParams, $state, User) {
|
||||||
|
|
||||||
$scope.error = '';
|
$scope.error = '';
|
||||||
|
|
||||||
// Submit forgotten password account id
|
// Submit forgotten password account id
|
||||||
|
@ -1764,7 +1764,7 @@ angular.module('forms').controller('AdminFormController', ['$rootScope', '$scope
|
||||||
$scope.setForm = function(form){
|
$scope.setForm = function(form){
|
||||||
$scope.myform = form;
|
$scope.myform = form;
|
||||||
};
|
};
|
||||||
|
|
||||||
$rootScope.resetForm = function(){
|
$rootScope.resetForm = function(){
|
||||||
$scope.myform = Forms.get({
|
$scope.myform = Forms.get({
|
||||||
formId: $stateParams.formId
|
formId: $stateParams.formId
|
||||||
|
@ -2249,8 +2249,7 @@ angular.module('forms').directive('editFormDirective', ['$rootScope', 'FormField
|
||||||
|
|
||||||
// LOGIC JUMP METHODS
|
// LOGIC JUMP METHODS
|
||||||
$scope.removeLogicJump = function (field_index) {
|
$scope.removeLogicJump = function (field_index) {
|
||||||
var currField = $scope.myform.form_fields[field_index];
|
$scope.myform.form_fields[field_index] = {};
|
||||||
currField.logicJump = {};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.addNewLogicJump = function (field_index) {
|
$scope.addNewLogicJump = function (field_index) {
|
||||||
|
@ -2480,7 +2479,7 @@ angular.module('forms').directive('editSubmissionsFormDirective', ['$rootScope',
|
||||||
/*
|
/*
|
||||||
** Analytics Functions
|
** Analytics Functions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$scope.AverageTimeElapsed = (function(){
|
$scope.AverageTimeElapsed = (function(){
|
||||||
var totalTime = 0;
|
var totalTime = 0;
|
||||||
var numSubmissions = $scope.table.rows.length;
|
var numSubmissions = $scope.table.rows.length;
|
||||||
|
@ -2681,15 +2680,15 @@ angular.module('forms').service('FormFields', [
|
||||||
// },
|
// },
|
||||||
// {
|
// {
|
||||||
// name : 'stripe',
|
// name : 'stripe',
|
||||||
// value : 'Payment'
|
// value : 'Payment'
|
||||||
// },
|
// },
|
||||||
{
|
{
|
||||||
name : 'statement',
|
name : 'statement',
|
||||||
value : 'Statement'
|
value : 'Statement'
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
@ -2702,7 +2701,7 @@ angular.module('forms').factory('Submissions', ['$resource',
|
||||||
formId: '@_id'
|
formId: '@_id'
|
||||||
}, {
|
}, {
|
||||||
'query' : {
|
'query' : {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
isArray: true,
|
isArray: true,
|
||||||
},
|
},
|
||||||
'update': {
|
'update': {
|
||||||
|
@ -2987,7 +2986,7 @@ angular.module('forms').directive('onFinishRender', ["$rootScope", "$timeout", f
|
||||||
return {
|
return {
|
||||||
restrict: 'A',
|
restrict: 'A',
|
||||||
link: function (scope, element, attrs) {
|
link: function (scope, element, attrs) {
|
||||||
|
|
||||||
//Don't do anything if we don't have a ng-repeat on the current element
|
//Don't do anything if we don't have a ng-repeat on the current element
|
||||||
if(!element.attr('ng-repeat') && !element.attr('data-ng-repeat')){
|
if(!element.attr('ng-repeat') && !element.attr('data-ng-repeat')){
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -315,13 +315,13 @@
|
||||||
<div class="col-md-4 col-xs-12 field-input">{{ 'ADD_LOGIC_JUMP' | translate }}</div>
|
<div class="col-md-4 col-xs-12 field-input">{{ 'ADD_LOGIC_JUMP' | translate }}</div>
|
||||||
<div class="col-md-8 col-xs-12 field-input">
|
<div class="col-md-8 col-xs-12 field-input">
|
||||||
<label class="btn col-xs-5">
|
<label class="btn col-xs-5">
|
||||||
<input type="radio" ng-checked="!!myform.form_fields[$index].logicJump.fieldA"
|
<input type="radio" ng-checked="!!myform.form_fields[$index].logicJump.valueB"
|
||||||
name="logicJumpYes{{field._id}}" ng-click="addNewLogicJump($index)"/>
|
name="logicJumpYes{{field._id}}" ng-click="addNewLogicJump($index)"/>
|
||||||
<span> {{ 'YES' | translate }}</span>
|
<span> {{ 'YES' | translate }}</span>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<label class="btn col-xs-5 col-xs-offset-1">
|
<label class="btn col-xs-5 col-xs-offset-1">
|
||||||
<input type="radio" ng-checked="!myform.form_fields[$index].logicJump.fieldA"
|
<input type="radio" ng-checked="!myform.form_fields[$index].logicJump.valueB"
|
||||||
name="logicJumpNo{{field._id}}" ng-click="removeLogicJump($index)"/>
|
name="logicJumpNo{{field._id}}" ng-click="removeLogicJump($index)"/>
|
||||||
<span> {{ 'NO' | translate }}</span>
|
<span> {{ 'NO' | translate }}</span>
|
||||||
</label>
|
</label>
|
||||||
|
|
Loading…
Reference in a new issue