Skip to content
Snippets Groups Projects
Commit 87282bce authored by TonyFord's avatar TonyFord
Browse files

update yml form

parent 4e9cee20
No related branches found
No related tags found
No related merge requests found
Pipeline #34891 passed
......@@ -88,19 +88,18 @@ fields:
import-regex: float
price-reference:
type: selection-price
type: selection
translation:
de: 'Preisreferenz'
en: 'pricereference'
help:
de: 'Bitte eine Datenquelle auswählen oder einen Preis selbst definieren!'
en: 'please select a data source or define a fixed price!'
default: FAIR,FAIRO,fairo
default: FAIRO
import-regex: values
values:
- FAIR,EUR,faircoinxyz
- FAIR,EUR,freevision
- FAIR,FAIRO,fairo
- FAIR
- FAIRO
headline:
type: input-text
......@@ -126,7 +125,7 @@ fields:
import-regex: '/^.*$/g'
image:
type: input-text
type: selection
maxlength: 256
translation:
de: 'Bild in Originalgröße'
......@@ -134,8 +133,11 @@ fields:
help:
de: 'empfohlene Größe 1024 x 768 px | maximale Größe 1.5Mpx'
en: 'recommend size 1024 x 768 px | maximum size 1.5Mpx'
default: ''
import-regex: '/^.*$/g'
default: 0
import-regex: values
values:
- 0
- 1
description:
type: textarea
......
......@@ -141,7 +141,7 @@ function createYml2(){
var yml='';
$.each( $('.order-form'),
function(i,v){
if( v.id == 'price-reference' || v.id == 'tags' ){
if( v.id == 'pricee-reference' || v.id == 'tags' ){
yml+=v.id + ': [ ' + $(v).val().replace(/(?:\r\n|\r|\n)/g, '<br>') + ' ]\n';
} else {
yml+=v.id + ': ' + $(v).val().replace(/(?:\r\n|\r|\n)/g, '<br>') + '\n';
......
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