Merge branch 'master' of code.areya.de:Areya/areya-energy

master
Benjamin Völkl 2022-08-29 14:53:49 +02:00
commit ac88bf72e1
5 changed files with 92 additions and 18 deletions

View File

@ -7,21 +7,5 @@
"name": "Areya Webservices",
"link": "https://www.areya.de/"
},
"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":""}]}
]
"lumino-version": {"min": "3.0", "max": "3.1"}
}

27
content-types.json Normal file
View File

@ -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":""
}
]
}
]

View File

@ -124,7 +124,7 @@
</h5>
</div>
<div class="card-body">
<x-form id-name="anfrage" channels="bestaetigung,airtable">
<x-form id-name="anfrage" channels="bestaetigung,fastbill">
<div class="mb-3">
<label for="" class="form-label">Anrede</label>
<select class="form-select" name="anrede" aria-label="Default select example">
@ -190,4 +190,21 @@
</div>
</section>
</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

32
forms.json Normal file
View File

@ -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"}]
}
]
}
]

14
lists.json Normal file
View File

@ -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)"
}
]