Merge branch 'master' of code.areya.de:Areya/areya-energy
						commit
						ac88bf72e1
					
				
							
								
								
									
										18
									
								
								config.json
								
								
								
								
							
							
						
						
									
										18
									
								
								config.json
								
								
								
								
							| 
						 | 
					@ -7,21 +7,5 @@
 | 
				
			||||||
        "name": "Areya Webservices",
 | 
					        "name": "Areya Webservices",
 | 
				
			||||||
        "link": "https://www.areya.de/"
 | 
					        "link": "https://www.areya.de/"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "lumino-version": {"min": "3.0", "max": "3.1"},
 | 
					    "lumino-version": {"min": "3.0", "max": "3.1"}
 | 
				
			||||||
    "content-types": [
 | 
					 | 
				
			||||||
        {
 | 
					 | 
				
			||||||
            "name":"Produkt",
 | 
					 | 
				
			||||||
            "description":"Produkt",
 | 
					 | 
				
			||||||
            "icon":"shopping-bag",
 | 
					 | 
				
			||||||
            "status":1,
 | 
					 | 
				
			||||||
            "blade":"produkt",
 | 
					 | 
				
			||||||
            "fields":[{
 | 
					 | 
				
			||||||
                "name":"Preis",
 | 
					 | 
				
			||||||
                "type":"number",
 | 
					 | 
				
			||||||
                "description":"",
 | 
					 | 
				
			||||||
                "position":1,
 | 
					 | 
				
			||||||
                "required":1,
 | 
					 | 
				
			||||||
                "default_value":""
 | 
					 | 
				
			||||||
            },{"name":"Lieferumfang","type":"textfield","description":"","position":2,"required":1,"default_value":""}]}
 | 
					 | 
				
			||||||
    ]
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,27 @@
 | 
				
			||||||
 | 
					[
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        "name":"Produkt",
 | 
				
			||||||
 | 
					        "description":"Produkt",
 | 
				
			||||||
 | 
					        "icon":"shopping-bag",
 | 
				
			||||||
 | 
					        "status":1,
 | 
				
			||||||
 | 
					        "blade":"produkt",
 | 
				
			||||||
 | 
					        "fields":[
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                "name":"Preis",
 | 
				
			||||||
 | 
					                "type":"number",
 | 
				
			||||||
 | 
					                "description":"",
 | 
				
			||||||
 | 
					                "position":1,
 | 
				
			||||||
 | 
					                "required":1,
 | 
				
			||||||
 | 
					                "default_value":""
 | 
				
			||||||
 | 
					            },
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                "name":"Lieferumfang",
 | 
				
			||||||
 | 
					                "type":"textfield",
 | 
				
			||||||
 | 
					                "description":"",
 | 
				
			||||||
 | 
					                "position":2,
 | 
				
			||||||
 | 
					                "required":1,
 | 
				
			||||||
 | 
					                "default_value":""
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        ]
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					]
 | 
				
			||||||
| 
						 | 
					@ -124,7 +124,7 @@
 | 
				
			||||||
                        </h5>
 | 
					                        </h5>
 | 
				
			||||||
                      </div>
 | 
					                      </div>
 | 
				
			||||||
                      <div class="card-body">
 | 
					                      <div class="card-body">
 | 
				
			||||||
                        <x-form id-name="anfrage" channels="bestaetigung,airtable">
 | 
					                        <x-form id-name="anfrage" channels="bestaetigung,fastbill">
 | 
				
			||||||
                          <div class="mb-3">
 | 
					                          <div class="mb-3">
 | 
				
			||||||
                            <label for="" class="form-label">Anrede</label>
 | 
					                            <label for="" class="form-label">Anrede</label>
 | 
				
			||||||
                            <select class="form-select" name="anrede" aria-label="Default select example">
 | 
					                            <select class="form-select" name="anrede" aria-label="Default select example">
 | 
				
			||||||
| 
						 | 
					@ -190,4 +190,21 @@
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
  </section>
 | 
					  </section>
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
 | 
					@stop
 | 
				
			||||||
 | 
					@section('scripts')
 | 
				
			||||||
 | 
					<script>
 | 
				
			||||||
 | 
					  /* let objProducts = [];
 | 
				
			||||||
 | 
					  function updateProductsInLocalStorage(){
 | 
				
			||||||
 | 
					    localStorage.setItem("products", JSON.stringify(objProducts));
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					  $(window).load(function(){
 | 
				
			||||||
 | 
					    let product = {};
 | 
				
			||||||
 | 
					    product["id"] = database.attr("data-id");
 | 
				
			||||||
 | 
					    product["name"] = database.attr("data-name");
 | 
				
			||||||
 | 
					    objProducts.push(product);
 | 
				
			||||||
 | 
					    objProducts.splice(index, 1);
 | 
				
			||||||
 | 
					    updateProductsInLocalStorage();
 | 
				
			||||||
 | 
					    if(localStorage.getItem("products") != null) objProducts = JSON.parse(localStorage.getItem("products"));
 | 
				
			||||||
 | 
					  }); */
 | 
				
			||||||
 | 
					</script>
 | 
				
			||||||
@stop
 | 
					@stop
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,32 @@
 | 
				
			||||||
 | 
					[
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        "name":"Anfrage",
 | 
				
			||||||
 | 
					        "status":1,
 | 
				
			||||||
 | 
					        "channels":[
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                "name":"Bestaetigung",
 | 
				
			||||||
 | 
					                "type":"email",
 | 
				
			||||||
 | 
					                "status":1,
 | 
				
			||||||
 | 
					                "active":"1",
 | 
				
			||||||
 | 
					                "email-address":"info@areya.de",
 | 
				
			||||||
 | 
					                "email-subject":"Bestaetigung",
 | 
				
			||||||
 | 
					                "email-body-type":"text",
 | 
				
			||||||
 | 
					                "email-body":"Olá"
 | 
				
			||||||
 | 
					            },
 | 
				
			||||||
 | 
					            {  
 | 
				
			||||||
 | 
					                "name":"Fastbill",
 | 
				
			||||||
 | 
					                "type":"api",
 | 
				
			||||||
 | 
					                "status":1,
 | 
				
			||||||
 | 
					                "active":"1",
 | 
				
			||||||
 | 
					                "api-url":"https://my.fastbill.com/api/1.0/api.php",
 | 
				
			||||||
 | 
					                "api-method":"post",
 | 
				
			||||||
 | 
					                "api-auth-type":"basic",
 | 
				
			||||||
 | 
					                "api-auth-username":"info@areya.de",
 | 
				
			||||||
 | 
					                "api-auth-password":"e0364f3a42ca616af0fe78de3337008d5P7ZRTq9OsOVlWNlf7h3i5C9ZUagDgyV",
 | 
				
			||||||
 | 
					                "api-body-type":"json",
 | 
				
			||||||
 | 
					                "api-body-json":{"SERVICE":"customer.create","DATA":{"CUSTOMER_TYPE":"business","ORGANIZATION":"GustavoLuigi","LAST_NAME":"Souza"}},
 | 
				
			||||||
 | 
					                "api-header-data":[{"key":"Content-Type","value":"application/json"}]
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        ]
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					]
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,14 @@
 | 
				
			||||||
 | 
					[
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        "name": "Produkte",
 | 
				
			||||||
 | 
					        "slug": "produkte",
 | 
				
			||||||
 | 
					        "description": "",
 | 
				
			||||||
 | 
					        "search_terms": "",
 | 
				
			||||||
 | 
					        "image": "",
 | 
				
			||||||
 | 
					        "seo_title": "",
 | 
				
			||||||
 | 
					        "seo_description": "",
 | 
				
			||||||
 | 
					        "blade": "produkte",
 | 
				
			||||||
 | 
					        "content-types": ["Produkt"],
 | 
				
			||||||
 | 
					        "sorting": "Created At (DESC)"
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					]
 | 
				
			||||||
		Loading…
	
		Reference in New Issue