fixed signup password input css bug

This commit is contained in:
David Baldwynn 2017-03-06 16:38:37 -08:00
parent 4f4bba16d3
commit 2b7f536831
No known key found for this signature in database
GPG key ID: 15D1C13202224A9B
5 changed files with 17 additions and 9 deletions

View file

@ -189,7 +189,9 @@ exports.readForRender = function(req, res) {
exports.update = function(req, res) {
var form = req.form;
if (req.body.changes) {
console.log(req.body.changes);
var formChanges = req.body.changes;
formChanges.forEach(function (change) {

View file

@ -80,11 +80,7 @@ function BaseFieldSchema(){
logicJump: LogicJumpSchema,
ratingOptions: {
type: RatingFieldSchema,
required: false,
default: {}
},
ratingOptions: RatingFieldSchema,
fieldOptions: [FieldOptionSchema],
required: {
type: Boolean,

View file

@ -229,7 +229,7 @@ form .row.field {
}
form .row.field.dropdown > .field-input input {
height: 34px;
min-height: 34px;
border-width: 0 0 2px 0;
border-radius: 5px;
}

View file

@ -91,10 +91,11 @@ angular.module('forms').directive('editFormDirective', ['$rootScope', 'FormField
*/
// Add a new field
$scope.addNewField = function(modifyForm, fieldType){
console.log('fieldType:'+fieldType);
// increment lastAddedID counter
$scope.addField.lastAddedID++;
var fieldTitle;
var fieldTitle = fieldType;
for(var i = 0; i < $scope.addField.types.length; i++){
if($scope.addField.types[i].name === fieldType){
@ -106,13 +107,22 @@ angular.module('forms').directive('editFormDirective', ['$rootScope', 'FormField
var newField = {
title: fieldTitle + ' ' + $scope.myform.form_fields.length+1,
fieldType: fieldType,
fieldValue: '',
fieldValue: '0',
required: true,
disabled: false,
deletePreserved: false,
logicJump: {}
};
if(fieldType === 'rating'){
newField.ratingOptions = {
steps: 1,
shape: 'Heart'
}
}
console.log(newField.title);
if($scope.showAddOptions(newField)){
newField.fieldOptions = [];
newField.fieldOptions.push({

View file

@ -245,7 +245,7 @@ form .row.field {
}
form .row.field.dropdown > .field-input input {
height: 34px;
min-height: 34px;
border-width: 0 0 2px 0;
border-radius: 5px;
}