diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 0f372f7..74122a4 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,7 +1,12 @@ - + + + + + + diff --git a/content-types.json b/content-types.json index 68baccf..c451c13 100644 --- a/content-types.json +++ b/content-types.json @@ -1,54 +1,9 @@ [ { - "name":"Balkonkraftwerk", - "description":"Produkt", - "icon":"shopping-bag", - "status":1, - "blade":"balkonkraftwerk", - "fields":[ - { - "name":"Preis", - "type":"number", - "description":"", - "attr":{"step":"0.01"}, - "position":1, - "required":1, - "default_value":"" - }, - { - "name":"Lieferumfang", - "type":"textfield", - "description":"", - "position":2, - "required":1, - "default_value":"" - } - ] - }, - { + "slug":"solarmodule", "name":"Solarmodule", - "description":"Produkt", - "icon":"shopping-bag", + "description":"Solarmodule", + "icon":"solar-panel", "status":1, "blade":"solarmodule", - "fields":[ - { - "name":"Preis", - "type":"number", - "description":"", - "attr":{"step":"0.01"}, - "position":1, - "required":1, - "default_value":"" - }, - { - "name":"Lieferumfang", - "type":"textfield", - "description":"", - "position":2, - "required":1, - "default_value":"" - } - ] - } -] + "fields":[{"name":"Beschreibung","type":"textfield","description":"","position":1,"required":0,"default_value":""},{"name":"Hersteller","type":"select","description":"","position":2,"required":1,"default_value":"","options":["JA Solar","Longi"]},{"name":"Preis","type":"number","description":"","attr":{"min":"0","step":"0.01"},"position":5,"required":1,"default_value":""},{"name":"Lieferumfang","type":"textfield","description":"","position":3,"required":1,"default_value":""},{"name":"preis_5","type":"number","description":"Preis pro Modul bei Abnahme ab 5 St\u00fcck","attr":{"max":"500","min":"0","step":"0.01"},"position":4,"required":0,"default_value":""},{"name":"preis_10","type":"number","description":"Preis pro Modul bei Abnahme ab 10 St\u00fcck","attr":{"min":"0","step":"0.01"},"position":6,"required":0,"default_value":""},{"name":"preis_palette","type":"number","description":"Preis pro Modul bei Abnahme von einer geschlossenen Palette","attr":{"min":"0","step":"0.01"},"position":7,"required":0,"default_value":""},{"name":"Module pro Palette","type":"number","description":"","attr":{"max":"50","min":"0","step":"1"},"position":8,"required":1,"default_value":""},{"name":"Leistung","type":"number","description":"Leistung in Wp des Moduls","attr":{"min":"0","step":"1"},"position":9,"required":1,"default_value":""}]},{"slug":"balkonkraftwerk","name":"Balkonkraftwerk","description":"Produkt","icon":"shopping-bag","status":1,"blade":"balkonkraftwerk","fields":[{"name":"Preis","type":"number","description":"","position":1,"required":1,"default_value":""},{"name":"Lieferumfang","type":"textfield","description":"","position":2,"required":1,"default_value":""}]}] diff --git a/content/contents/solarmodule.blade.php b/content/contents/solarmodule.blade.php index e67b343..d0bb788 100644 --- a/content/contents/solarmodule.blade.php +++ b/content/contents/solarmodule.blade.php @@ -4,6 +4,7 @@ + @stop @section('content')
@@ -81,35 +82,35 @@ + const ctx = document.getElementById('myChart').getContext('2d'); + const myChart = new Chart(ctx, { + type: 'line', + data: { + labels: ['Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange'], + datasets: [{ + label: 'Modulpreis in €', + data: [12, 19, 3, 5, 2, 3], + backgroundColor: [ + 'rgba(255, 99, 132, 0.2)', + 'rgba(54, 162, 235, 0.2)', + 'rgba(255, 206, 86, 0.2)', + 'rgba(75, 192, 192, 0.2)', + 'rgba(153, 102, 255, 0.2)', + 'rgba(255, 159, 64, 0.2)' + ], + borderColor: [ + 'rgba(255, 99, 132, 1)', + 'rgba(54, 162, 235, 1)', + 'rgba(255, 206, 86, 1)', + 'rgba(75, 192, 192, 1)', + 'rgba(153, 102, 255, 1)', + 'rgba(255, 159, 64, 1)' + ], + borderWidth: 1 + }] + } + }); +
diff --git a/content/master.blade.php b/content/master.blade.php index 136edc2..224e414 100644 --- a/content/master.blade.php +++ b/content/master.blade.php @@ -254,7 +254,7 @@
- +