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) { exports.update = function(req, res) {
var form = req.form; var form = req.form;
if (req.body.changes) { if (req.body.changes) {
console.log(req.body.changes);
var formChanges = req.body.changes; var formChanges = req.body.changes;
formChanges.forEach(function (change) { formChanges.forEach(function (change) {

View file

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

View file

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

View file

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

View file

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