diff --git a/Modern Development/Service Portal Widgets/Sticky Notes/CSS-SCSS.css b/Modern Development/Service Portal Widgets/Sticky Notes/CSS-SCSS.css new file mode 100644 index 0000000000..28d91d204b --- /dev/null +++ b/Modern Development/Service Portal Widgets/Sticky Notes/CSS-SCSS.css @@ -0,0 +1,42 @@ +.sticky-notes-widget { + padding: 10px; +} + +.sticky-note { + display: inline-block; + width: 220px; + min-height: 100px; + margin: 8px; + padding: 10px; + border-radius: 6px; + box-shadow: 0 2px 5px rgba(0,0,0,0.2); + vertical-align: top; + font-size: 13px; + white-space: pre-wrap; +} + +.note-toolbar { + text-align: right; + margin-bottom: 3px; +} + +.note-content { + font-weight: 500; + color: #333; +} + +.note-meta { + margin-top: 6px; + font-size: 11px; + color: #666; +} + +.add-note-box { + margin-top: 20px; +} + +.note-controls { + display: flex; + gap: 5px; + margin-top: 5px; +} diff --git a/Modern Development/Service Portal Widgets/Sticky Notes/Client Script.js b/Modern Development/Service Portal Widgets/Sticky Notes/Client Script.js new file mode 100644 index 0000000000..51dc3802a0 --- /dev/null +++ b/Modern Development/Service Portal Widgets/Sticky Notes/Client Script.js @@ -0,0 +1,19 @@ +api.controller=function($scope) { +/* widget controller */ +var c = this; + c.add =function(){ + c.data.action = "add"; + c.server.update().then(function(){ + c.data.action = undefined; + c.data.newColor =""; + c.data.text = ""; + }) + } + c.remove =function(i){ + c.data.i =i; + c.data.action = "remove"; + c.server.update().then(function(){ + c.data.action = undefined; + }) + } +} diff --git a/Modern Development/Service Portal Widgets/Sticky Notes/HTML.html b/Modern Development/Service Portal Widgets/Sticky Notes/HTML.html new file mode 100644 index 0000000000..3ef63816ea --- /dev/null +++ b/Modern Development/Service Portal Widgets/Sticky Notes/HTML.html @@ -0,0 +1,24 @@ +
+

My Sticky Notes

+
+
+ +
+
{{n.text}}
+
{{n.created_on | date:'short'}}
+
+
+