• Gheorghe Sima 7
  • NEWBIE
  • 10 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 0
    Replies
<apex:page standardController="Relation__c" extensions="AddRelationFromAccountController" recordSetVar="var">    
    <link href="{!URLFOR($Resource.bootStrap, 'bootstrap/css/bootstrap.min.css')}" rel="stylesheet" media="screen" />
    <apex:includeScript value="{!URLFOR($Resource.bootStrap, 'js/bootstrap.min.js')}"/>
    
<apex:sectionHeader title="Add New Relation"/>
<apex:pageMessages />
    <apex:form >
<apex:pageBlock title="Relaiton Edit">
            <apex:pageBlockButtons >
                <apex:commandButton action="{!save}" value="Save" styleClass="btn btn-success"/>
                <apex:commandButton action="{!cancel}" value="Cancel" styleClass="btn btn-success"/>
            </apex:pageBlockButtons>
         <apex:pageBlockSection title="Contact Information" columns="2">
             <apex:pageBlockSectionItem >
                  <apex:outputLabel value="Client" for="name" />
                  <apex:outputField id="name" value="{!myRelation.Client__c}"/>
             </apex:pageBlockSectionItem>
             <apex:pageBlockSectionItem >
                  <apex:outputLabel value="Relation type" for="relationType" />
                  <apex:inputField id="relationType"  value="{!myRelation.Relation_Type__c}"/>
             </apex:pageBlockSectionItem>
             <apex:pageBlockSectionItem >
                  <apex:outputLabel value="Related Client" for="relatedClient" />
                  <apex:inputField id="relatedClient"  value="{!myRelation.Related_Client__c}"/>
             </apex:pageBlockSectionItem>
             <apex:pageBlockSectionItem >
                  <apex:outputLabel value="Owner" for="owner" />
                  <apex:outputField id="owner" value="{!myRelation.OwnerId}" />
             </apex:pageBlockSectionItem>      
 </apex:pageBlockSection> 
 </apex:pageBlock>

</apex:form>
</apex:page>
I have this visualforce page, and it doesn't look good in salesforce1.
User-added image
Can anyone show me how can I make this page to look good in salesforce1? 
Hi,
I have a custom object and i want to create a 'New  record' button to appear in the window from the photo below. It is possible to do that?
User-added image
Hi,
I want to make a list button, but when i select the content source Visualforce Page i don't see my page in the content section. I want to make an button to Contact and i set the standardcontroller="Contact".
Can anyone help me?
User-added image