fixed signup password input css bug
This commit is contained in:
parent
4f4bba16d3
commit
2b7f536831
|
@ -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) {
|
||||
|
|
|
@ -80,11 +80,7 @@ function BaseFieldSchema(){
|
|||
|
||||
logicJump: LogicJumpSchema,
|
||||
|
||||
ratingOptions: {
|
||||
type: RatingFieldSchema,
|
||||
required: false,
|
||||
default: {}
|
||||
},
|
||||
ratingOptions: RatingFieldSchema,
|
||||
fieldOptions: [FieldOptionSchema],
|
||||
required: {
|
||||
type: Boolean,
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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({
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue