Skip to content

Commit

Permalink
SP Formatting
Browse files Browse the repository at this point in the history
SP formatting
  • Loading branch information
rdorrani committed Jan 17, 2021
0 parents commit 0a343ff
Show file tree
Hide file tree
Showing 3 changed files with 133 additions and 0 deletions.
41 changes: 41 additions & 0 deletions BodyFormatIssueTracker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"sections": [
{
"displayname": "Information",
"fields": [
"Issue",
"Date reported",
"Issue description"
]
},
{
"displayname": "Details",
"fields": [
"Assigned to",
"Priority",
"Expected Completion Date"
]
},
{
"displayname": "Action",
"fields": [
"Status",
"Comments"
]
},
{
"displayname": "Additional Info",
"fields": [
"Issue source",
"Issue logged by",
"Images"
]
},
{
"displayname": "Attachments",
"fields": [
"Days old"
]
}
]
}
31 changes: 31 additions & 0 deletions FooterFormatIssueTracker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"debugMode": true,
"elmType": "div",
"style": {
"width": "100%",
"text-align": "left",
"overflow": "hidden",
"border-top-width": "1px"
},
"children": [
{
"elmType": "div",
"style": {
"width": "100%",
"padding-top": "10px",
"height": "24px"
},
"children": [
{
"elmType": "a",
"txtContent": "Contact Administrator",
"attributes": {
"target": "_blank",
"href": "",
"class": "ms-fontColor-themePrimary ms-borderColor-themePrimary ms-fontWeight-semibold ms-fontSize-m ms-fontColor-neutralSecondary–hover ms-bgColor-themeLight–hover"
}
}
]
}
]
}
61 changes: 61 additions & 0 deletions HeaderFormatIssueTracker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"debugmode": "true",
"elmType": "div",
"attributes": {
"class": "=if([$Status] == 'Completed', 'ms-bgColor-greenDark', if([$Status] == 'Duplicate', 'ms-bgColor-yellowDark', if([$Status] == 'Blocked', 'ms-bgColor-redDark', if([$Status] == 'New', 'ms-bgColor-blueMid','ms-bgColor-orangeLighter'))))"
},
"style": {
"width": "99%",
"border-top-width": "0px",
"border-bottom-width": "1px",
"border-left-width": "0px",
"border-right-width": "0px",
"border-style": "solid",
"margin-bottom": "16px"
},
"children": [
{
"elmType": "div",
"style": {
"display": "flex",
"box-sizing": "border-box",
"align-items": "center"
},
"children": [
{
"elmType": "div",
"attributes": {
"iconName": "Bug",
"class": "ms-fontSize-42 ms-fontWeight-regular ms-fontColor-white",
"title": "Issue"
},
"style": {
"flex": "none",
"padding": "0px",
"padding-left": "0px",
"height": "36px"
}
}
]
},
{
"elmType": "div",
"attributes": {
"class": "ms-fontColor-white ms-fontWeight-bold ms-fontSize-24"
},
"style": {
"box-sizing": "border-box",
"width": "100%",
"text-align": "left",
"padding": "21px 12px",
"overflow": "hidden"
},
"children": [
{
"elmType": "div",
"txtContent": "=if ([$Title] == '', 'New Issue', 'Issue: ' + [$Title])"
}
]
}
]
}

0 comments on commit 0a343ff

Please sign in to comment.