Skip to content

Commit

Permalink
scripts updated
Browse files Browse the repository at this point in the history
  • Loading branch information
hdijkema committed Sep 3, 2024
1 parent 58ce16d commit d0db28e
Show file tree
Hide file tree
Showing 20 changed files with 58 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"controle": "Controles",
"rapport": "Rapport",
"email": "Email",
"email_aan_leden": "Email aan leden"
"email_aan_leden": "Email aan leden",
"import": "Importeren van bestanden"
},
"voorEntiteit": {
"Leden": "Leden",
Expand All @@ -30,4 +31,4 @@
"links": {
"leden": "Leden"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"name": "voorEntiteit"
},
{
"name": "leden"
"name": "contacts"
}
],
[
Expand All @@ -48,7 +48,7 @@
"style": "success",
"dynamicLogicVisible": null,
"hidden": false,
"customLabel": "Uitvoerbare taak"
"customLabel": "Executable Task"
},
{
"rows": [
Expand All @@ -61,6 +61,6 @@
"style": "info",
"dynamicLogicVisible": null,
"hidden": false,
"customLabel": "Verwerking"
"customLabel": "Executionlog"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@
"name": "voorEntiteit"
},
{
"name": "leden"
"name": "contacts"
}
],
[
{
"name": "emailTemplate"
}
],
[
Expand All @@ -40,8 +45,10 @@
}
]
],
"style": "default",
"label": ""
"style": "success",
"dynamicLogicVisible": null,
"hidden": false,
"customLabel": "Executable task"
},
{
"rows": [
Expand All @@ -54,6 +61,6 @@
"style": "info",
"dynamicLogicVisible": null,
"hidden": true,
"customLabel": "Verslag"
"customLabel": "Executionlog"
}
]
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"cssList": [
"__APPEND__",
"client/modules/scripts/css/scripts.css",
"client/modules/scripts/css/datatables.min.css"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
"path": "client/modules/scripts/lib/datatables.min.js",
"exportsTo": "$",
"exportsAs": "Datatables"
},
},
"Xlsx": {
"path": "client/modules/scripts/lib/exceljs.min.js",
"exportsTo": "$",
"exportsAs": "Xlsx"
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,21 @@
{ "name": "Standaard", "label": "Standaard taken" },
{ "name": "Rapporten", "label": "Rapportages en controles" },
{ "name": "Emails", "label": "Emails" },
{ "name": "Exports", "label": "Exportlijsten" }
{ "name": "Exports", "label": "Exportlijsten" },
{ "name": "Imports", "label": "Importeren van bestanden" }
],
"selectDefaultFilters": {"filter": "Standaard"},
"color": "#e7e731",
"iconClass": "fas fa-calculator",
"dynamicLogic": {
"fields": {
"leden": {
"contacts": {
"visible": {
"conditionGroup": [
{
"type": "equals",
"attribute": "voorEntiteit",
"value": "Leden"
"value": "Contacts"
}
]
}
Expand All @@ -27,9 +28,19 @@
"visible": {
"conditionGroup": [
{
"type": "equals",
"attribute": "type",
"value": "email"
"type": "or",
"value": [
{
"type": "equals",
"attribute": "type",
"value": "email"
},
{
"type": "equals",
"attribute": "type",
"value": "job"
}
]
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,20 +71,22 @@
"controle",
"rapport",
"email",
"job"
"job",
"import"
],
"style": {
"export": null,
"import-na": null,
"controle": null,
"rapport": null,
"email": null,
"job": null
"job": null,
"import": null
},
"default": "rapport",
"isCustom": true
},
"leden": {
"contacts": {
"type": "linkMultiple",
"layoutDetailDisabled": false,
"layoutMassUpdateDisabled": false,
Expand All @@ -96,11 +98,11 @@
"type": "enum",
"required": true,
"options": [
"Leden",
"Contacts",
"-"
],
"style": {
"Leden": null,
"Contacts": null,
"-": null
},
"default": "-",
Expand Down Expand Up @@ -135,7 +137,7 @@
"relationName": "EntityTeam",
"layoutRelationshipsDisabled": true
},
"leden": {
"contacts": {
"type": "hasMany",
"relationName": "scriptContact",
"foreign": "scripts",
Expand Down
5 changes: 5 additions & 0 deletions application/Espo/Modules/Scripts/SelectManagers/Script.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ protected function filterExports(&$result)
$result['whereClause'][] = [ 'type' => 'export' ];
}

protected function filterImports(&$result)
{
$result['whereClause'][] = [ 'type' => 'import' ];
}

protected function filterStandaard(&$result)
{
$result['whereClause'][] = [ 'type!=' => 'import-na' ];
Expand Down
2 changes: 1 addition & 1 deletion build-ext.dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ done

if [ "$CMD" == "install" ]; then
mkdir -p $INSTALL_FILES
tar cf - $TARDIRS | (cd $INSTALL_PREFIX; tar xvf - ) >$INSTALL_FILES/$MODULE
tar cf - $TARDIRS | (cd $INSTALL_PREFIX; tar hxvf - ) >$INSTALL_FILES/$MODULE
FILES=`cat $INSTALL_FILES/$MODULE`
for F in $FILES
do
Expand Down
18 changes: 9 additions & 9 deletions build-scripts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,20 @@ echo " - FixedHeader"
echo " - SearchPanes"
echo ""
(cd libs; unzip DataTables.zip datatables.min.css datatables.min.js DataTables-1.10.21/images/*)
(cd libs; tar cf - DataTables-1.10.21) | (cd client/modules/scripts/css;tar xf - )
(cd libs; tar cf - DataTables-1.10.21) | (cd client/custom/modules/scripts/css;tar xf - )
cd libs
cp datatables.min.css ../client/modules/scripts/css/
cp datatables.min.js ../client/modules/scripts/lib/datatables.min.js
cp exceljs.min.js ../client/modules/scripts/lib/exceljs.min.js
cp datatables.min.css ../client/custom/modules/scripts/css/
cp datatables.min.js ../client/custom/modules/scripts/lib/datatables.min.js
cp exceljs.min.js ../client/custom/modules/scripts/lib/exceljs.min.js
cd ..

$BE "$CMD" "$VERSION" "$EXT" "$NAME" "$DESCRIPTION" "$MODULE"

rm -f client/modules/scripts/css/datatables.min.css
rm -rf client/modules/scripts/css/DataTables-1.10.21
mkdir -p client/modules/scripts/lib
rm -f client/modules/scripts/lib/datatables.min.js
rm -f client/modules/scripts/lib/exceljs.min.js
rm -f client/custom/modules/scripts/css/datatables.min.css
rm -rf client/custom/modules/scripts/css/DataTables-1.10.21
mkdir -p client/custom/modules/scripts/lib
rm -f client/custom/modules/scripts/lib/datatables.min.js
rm -f client/custom/modules/scripts/lib/exceljs.min.js

cd libs
rm -f datatables.min.js datatables.min.css
Expand Down
File renamed without changes.

0 comments on commit d0db28e

Please sign in to comment.