Skip to content

Commit 8bbb179

Browse files
authored
Create template.html
1 parent 2109e6c commit 8bbb179

File tree

1 file changed

+31
-0
lines changed
  • Modern Development/Service Portal Widgets/Custom attachment variable

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<div ng-if="true" class="wrapper-md row no-margin" role="region" data-label="Attachments"
2+
aria-label="${Attachments}">
3+
<div
4+
ng-class="{'flex-center attachment-height': c.isNative == 'true', 'flex-start': c.isNative != 'true'}">
5+
<div ng-if="!submitting && !submitted" style="font-weight:normal;cursor:default;margin-bottom:2rem;">
6+
<sp-attachment-button ng-if="::!showDragAndDrop()" modal="true"
7+
required="{{data.mandatory_attachment}}"></sp-attachment-button>
8+
<sp-attachment-button ng-if="::showDragAndDrop()" modal="true"
9+
required="{{data.mandatory_attachment}}"
10+
ng-class="{'hidden-xs': false, 'hidden-sm': true, 'hidden-md': true, 'hidden-lg': true}"></sp-attachment-button>
11+
<span class="fa fa-asterisk mandatory" ng-if="data.mandatory_attachment"
12+
ng-class="{'mandatory-filled': data.mandatory_attachment && (data.attachment_submitted || attachments.length > 0)}"
13+
style="vertical-align:super" aria-hidden="true"></span>
14+
<span ng-class="{'attachment-text' : options.native_mobile == 'true'}" aria-hidden="true">${Add
15+
attachments}</span>
16+
</div>
17+
</div>
18+
<div ng-if="::showDragAndDrop()" class="panel panel-{{options.color}} b drag-and-drop-area"
19+
ng-class="{'hidden-xs': true}" aria-hidden="true">
20+
<sp-attachment-picker on-file-pick="dropFiles($files)"></sp-attachment-picker>
21+
</div>
22+
<span ng-if="attachmentUploadInProgress">
23+
${Uploading attachments}
24+
<div class="sp-loading-indicator la-sm" style="color:black;display:inline">
25+
<div></div>
26+
<div></div>
27+
<div></div>
28+
</div>
29+
</span>
30+
<now-attachments-list template="sp_attachment_single_line"></now-attachments-list>
31+
</div>

0 commit comments

Comments
 (0)