Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spring 2024 Templates #1

Open
wants to merge 41 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
3a2f56e
Delete .github/workflows/blank.yml
sanjacornelius Mar 1, 2024
e97b7b7
Merge branch 'main' into spring-2024
sanjacornelius Mar 1, 2024
10f977e
Add index.json
sanjacornelius Mar 1, 2024
1cc15e6
Update index.json and README.md
actions-user Mar 1, 2024
c5abb82
Include 'unique_template_id' in the file structure
sanjacornelius Mar 1, 2024
c4bae57
Update index.json and README.md
actions-user Mar 1, 2024
32b0474
Update template directory name
sanjacornelius Mar 1, 2024
93dad72
Update index.json and README.md
actions-user Mar 1, 2024
362c06d
Test new file structure
sanjacornelius Apr 4, 2024
e0f44f6
Update index.json and README.md
actions-user Apr 4, 2024
d6e06bf
Remove screen_type from template details
sanjacornelius Apr 4, 2024
5547732
Merge branch 'spring-2024' of https://github.com/ProcessMaker/screen-…
sanjacornelius Apr 4, 2024
1091e26
Update index.json and README.md
actions-user Apr 4, 2024
459c214
Remove screen_export file and references
sanjacornelius Apr 5, 2024
8454e79
Update index.json and README.md
actions-user Apr 5, 2024
4ffbf53
Added paper screen template
giovani-lv Apr 30, 2024
5312411
Update index.json and README.md
actions-user Apr 30, 2024
c4d5a45
Merge pull request #2 from ProcessMaker/update-screens043024
giovani-lv Apr 30, 2024
f5180be
Added the approval screen template
giovani-lv Apr 30, 2024
4f45f95
Merge branch 'update-screens043024' of https://github.com/ProcessMake…
giovani-lv Apr 30, 2024
7f83dad
Update index.json and README.md
actions-user Apr 30, 2024
342c702
Merge pull request #3 from ProcessMaker/update-screens043024
giovani-lv Apr 30, 2024
2e8b9dc
Update screen_template_details.xml
giovani-lv May 3, 2024
390145c
Update index.json and README.md
actions-user May 3, 2024
da4c96e
Update screen_template_details.xml
giovani-lv May 3, 2024
af6c9d9
Update index.json and README.md
actions-user May 3, 2024
4c66672
Update screen_template_details.xml
giovani-lv May 3, 2024
08ab09e
Update index.json and README.md
actions-user May 3, 2024
bcbb058
Update screen_template_details.xml
giovani-lv May 3, 2024
1940215
Update index.json and README.md
actions-user May 3, 2024
eaa137f
Updated screen templates
giovani-lv May 3, 2024
68f637e
Merge pull request #4 from ProcessMaker/update-template050324
giovani-lv May 3, 2024
c636dcc
Update naming convention for the category directory
sanjacornelius May 3, 2024
ac5faec
Update index.json and README.md
actions-user May 3, 2024
db18b8d
New templates
giovani-lv May 7, 2024
2978fee
Update index.json and README.md
actions-user May 7, 2024
c698997
Merge pull request #5 from ProcessMaker/update-template050724
giovani-lv May 7, 2024
a9fcb61
Update index.json and README.md
actions-user Jul 10, 2024
c7099d7
New Screen Templates Uploaded
giovani-lv Nov 20, 2024
b9c0a54
Update index.json and README.md
actions-user Nov 20, 2024
7662029
Merge pull request #6 from ProcessMaker/new_templates_112024
giovani-lv Nov 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .github/workflows/scripts/generate_index.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,13 @@ function main()
function initializeTemplateStructure()
{
return [
"screen" => "",
"screen_template" => "",
"template_details" => [
"name" => "",
"description" => "",
"screen_type" => "",
'version' => "",
'unique_template_id'=> "",
],
"assets" => [
"thumbnail" => "",
Expand Down Expand Up @@ -163,10 +164,10 @@ function mapContentToTemplateStructure($contentInfo, &$categories, $currentCateg
$fileName = substr($fileName, 0, strrpos($fileName, "."));

switch ($fileName) {
case "screen_export":
$categories[$currentCategory][$templateName]['screen'] = $contentInfo->getPathname();
case "screen_template_export":
$categories[$currentCategory][$templateName]['screen_template'] = $contentInfo->getPathname();
break;
case "screen-template-details":
case "screen_template_details":
loadXmlAttributes($contentInfo, $categories, $currentCategory, $templateName);
break;
}
Expand All @@ -180,12 +181,14 @@ function loadXmlAttributes($contentInfo, &$categories, $currentCategory, $templa
$description = (string) $xml->attributes()['description'];
$screenType = (string) $xml->attributes()['screen_type'];
$version = (string) $xml->attributes()['version'];
$uniqueTemplateId = (string) $xml->attributes()['unique_template_id'];


$categories[$currentCategory][$templateName]['template_details']['name'] = $name;
$categories[$currentCategory][$templateName]['template_details']['description'] = $description;
$categories[$currentCategory][$templateName]['template_details']['screen_type'] = $screenType;
$categories[$currentCategory][$templateName]['template_details']['version'] = $version;
$categories[$currentCategory][$templateName]['template_details']['unique_template_id'] = $uniqueTemplateId;
}

// You also need to define the compute_hash and update_readme functions if they are not already defined.
Expand Down
Binary file not shown.
Binary file not shown.
Binary file removed Accounting/Business Expense/assets/thumbnail.jpeg
Binary file not shown.
7 changes: 0 additions & 7 deletions Accounting/Business Expense/screen-template-details.xml

This file was deleted.

1 change: 0 additions & 1 deletion Accounting/Business Expense/screen_export.json

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<screen-template
name="Approval Template"
description="Default approval screen template"
screen_type="FORM"
version="1.0.0"
unique_template_id="approval_template"
></screen-template>

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<screen-template
name="Dashboard Screen"
description="Default dashboard screen template"
screen_type="FORM"
version="1.0.0"
unique_template_id="dashboard_screen_template"
></screen-template>

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<screen-template
name="Email Screen"
description="Default email screen template"
screen_type="FORM"
version="1.0.0"
unique_template_id="email_screen_template"
></screen-template>
Loading
Loading