-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcaseAttachment.html
71 lines (57 loc) · 3.59 KB
/
caseAttachment.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<apex:page lightningStylesheets="true" standardController="case" extensions="caseattachment,FileUploadController">
<apex:form enctype="multipart/form-data">
<apex:pageMessages />
<apex:pageBlock title="New Ticket: Service Request">
<apex:pageBlockSection title="Details" collapsible="false" dir="LTR">
<apex:pageBlockSectionItem>
<apex:outputLabel style="color:blueviolet;font-weight:bold;" value="Subject" />
<apex:inputField value="{!objcase.Subject}" />
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem>
<apex:outputLabel style="color:blueviolet;font-weight:bold;" value="Description" />
<apex:inputField value="{!objcase.Description}" />
</apex:pageBlockSectionItem>
</apex:pageBlockSection>
<apex:pageBlockSection title="Case Information" collapsible="false">
<apex:pageBlockSectionItem>
<apex:outputLabel style="color:blueviolet;font-weight:bold;" value="Case Owner" />
<apex:outputlabel value="{!$User.FirstName} {!$User.LastName}" />
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem>
<apex:outputLabel style="color:blueviolet;font-weight:bold;" value="Plan" />
<apex:inputField value="{!objcase.Plan__c}" />
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem>
<apex:outputLabel style="color:blueviolet;font-weight:bold;" value="Priority" />
<apex:inputField value="{!objcase.Priority}" />
</apex:pageBlockSectionItem>
<apex:inputField value="{!objcase.Category__c}" />
<apex:inputField value="{!objcase.Due_Date__c}" />
<apex:inputField value="{!objcase.Origin}" />
<apex:inputField value="{!objcase.Sub_Category__c}" />
</apex:pageBlockSection>
<apex:pageBlockSection title="Attachments" collapsible="false" columns="2" id="block1">
<apex:pageBlockSectionItem>
<apex:outputLabel style="color:blueviolet;font-weight:bold;" value="File Name" for="fileName" />
<apex:inputText value="{!document.name}" id="fileName" />
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem>
<apex:outputLabel style="color:blueviolet;font-weight:bold;" value="File" for="file" />
<apex:inputFile value="{!document.body}" filename="{!document.name}" id="file" />
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem>
<apex:outputLabel style="color:blueviolet;font-weight:bold;" value="Description" for="description" />
<apex:inputTextarea value="{!document.description}" id="description" />
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem>
<apex:outputLabel style="color:blueviolet;font-weight:bold;" value="Keywords" for="keywords" />
<apex:inputText value="{!document.keywords}" id="keywords" />
</apex:pageBlockSectionItem>
</apex:pageBlockSection>
<apex:pageBlockButtons>
<apex:commandButton style="background-color:blueviolet;color:white;font-weight:bold;" action="{!upload}"
value="Save" />
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form>
</apex:page>