Skip to content

Instantly share code, notes, and snippets.

@miragedeb
Last active August 29, 2015 14:17
Show Gist options
  • Save miragedeb/651dadd518cd19aef72c to your computer and use it in GitHub Desktop.
Save miragedeb/651dadd518cd19aef72c to your computer and use it in GitHub Desktop.
QADuplicateAlertPage
<apex:page standardcontroller="QA_Release__c" extensions="DuplicateQARelController" showHeader="false" sidebar="false">
<apex:image value="{!$Resource.img2}" styleClass="logo" width="25%"/>
<apex:form >
<apex:pageBlock title="Multiple QA tasks alert!">
<apex:outputPanel styleClass="rules">
Hello {!$User.FirstName}!<br />
Multiple tasks now exist for this client.<br />
Please retain the newly created task only if it cannot be merged with one of the following:<br />
</apex:outputPanel>
<apex:pageBlockTable value="{! releases }" var="qa">
<apex:column >
<apex:outputLink value="{! URLFOR($Action.QA_Release__c.Edit, QA_Release__c.Id) }">
Edit
</apex:outputLink>
&nbsp;
<apex:outputLink value="{! URLFOR($Action.QA_Release__c.Delete, QA_Release__c.Id) }">
Del
</apex:outputLink>
</apex:column>
<apex:column headerValue="QA Release Id">
<a href="/{!qa.Id}">
<apex:outputField value="{!qa.Name}"/>
</a>
</apex:column>
<apex:column headervalue="Reporter">
<apex:outputField value="{! qa.Owner.Name }"/>
</apex:column>
<apex:column value="{! qa.Objective__c }"/>
<apex:column value="{! qa.Due_Date__c }"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>
<style>
.logo {
float: left;
width: 100px;
margin: -1px 20px 0 0;
}
.rules {
color: red;
font-size: 14px;
font-weight: bold;
font-family: Courier;
margin: 0px 0 10px 20px;
float: left;
width: 100%;
}
</style>
</apex:page>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment