Advertisement
Guest User

Untitled

a guest
Aug 29th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. <apex:page standardController="Account" extensions="DeleteContactsController">
  2. <apex:form>
  3. <apex:pageBlock title="Account {!account.Name} Related Contacts">
  4. <p>Please select the contacts you wish to delete for&nbsp;<apex:outputLink value="/{!account.Id}">{!account.Name}</apex:outputLink>.</p>
  5. <apex:pageMessages />
  6.  
  7. <apex:pageBlockButtons>
  8. <apex:commandButton value="Cancel" action="{!cancel}" />
  9. <apex:commandButton value="Delete" action="{!deleteContacts}" onclick="if(!confirm('Contacts will be gone forever, are you sure?')){return false};" />
  10. </apex:pageBlockButtons>
  11.  
  12. <apex:pageBlockTable value="{!contacts}" var="contact">
  13. <apex:column headerValue="Select" width="10%">
  14. <apex:inputCheckbox value="{!contact.checked}"/>
  15. </apex:column>
  16. <apex:column headerValue="{!$ObjectType.Contact.fields.Name.Label}">
  17. <apex:outputLink value="/{!contact.contact.Id}">{!contact.contact.Name}</apex:outputLink>
  18. </apex:column>
  19. </apex:pageBlockTable>
  20. </apex:pageBlock>
  21. </apex:form>
  22. </apex:page>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement