CRM-15603 - Standardize 'View contact record' messages
authorColeman Watts <coleman@civicrm.org>
Sun, 16 Nov 2014 01:37:56 +0000 (20:37 -0500)
committerColeman Watts <coleman@civicrm.org>
Sun, 16 Nov 2014 13:41:36 +0000 (08:41 -0500)
templates/CRM/Case/Form/CaseView.tpl
templates/CRM/Event/Form/ParticipantView.tpl
tests/phpunit/WebTest/Contact/CreateCmsUserFromContactTest.php

index 783d68342cac2d967410e2bd3513e67e26974dd2..25fc27b38519d41a2cc509edb508c77f837eb3f4 100644 (file)
@@ -41,7 +41,7 @@
       <td colspan="5" class="label">
         {ts}Clients:{/ts}
         {foreach from=$caseRoles.client item=client name=clients}
-          <a href="{crmURL p='civicrm/contact/view' q="action=view&reset=1&cid=`$client.contact_id`"}" title="{ts}view contact record{/ts}">{$client.display_name}</a>{if not $smarty.foreach.clients.last}, &nbsp; {/if}
+          <a href="{crmURL p='civicrm/contact/view' q="action=view&reset=1&cid=`$client.contact_id`"}" title="{ts}View contact record{/ts}">{$client.display_name}</a>{if not $smarty.foreach.clients.last}, &nbsp; {/if}
         {/foreach}
         <a href="#addClientDialog" class="crm-hover-button case-miniform" title="{ts}Add Client{/ts}" data-key="{crmKey name='civicrm/case/ajax/addclient'}">
           <span class="icon add-icon"></span>
index a83a3d2874385f8c624f94eb588f6629534423e3..5047ea8df629c5c5c67237ea3ba49fba946d7bfc 100644 (file)
@@ -48,7 +48,7 @@
     <tr class="crm-event-participantview-form-block-displayName">
       <td class="label">{ts}Participant Name{/ts}</td>
       <td class="bold">
-        <a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=$contact_id"}" title="view contact record">{$displayName}</a>
+        <a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=$contact_id"}" title="{ts}View contact record{/ts}">{$displayName}</a>
         <div class="crm-submit-buttons">
             <a class="button" href="{crmURL p='civicrm/event/badge' q="reset=1&context=view&id=$id&cid=$contact_id"}" title="{ts}Print Event Name Badge{/ts}"><span><div class="icon print-icon"></div> {ts}Print Name Badge{/ts}</span></a>
         </div>
index f43375d5653e54d2d03ec31244451eddd38192df..8fbdc2360bf83cba9d3db6564b4804edf95f6690 100644 (file)
@@ -66,9 +66,9 @@ class WebTest_Contact_CreateCmsUserFromContactTest extends CiviSeleniumTestCase
     // go to My Account page
     $this->open($this->sboxPath . "user");
 
-    // click "View Contact Record" link
-    $this->waitForElementPresent("xpath=//div[@class='profile']/span/a[text()='View Contact Record']");
-    $this->click("xpath=//div[@class='profile']/span/a[text()='View Contact Record']");
+    // click "View contact record" link
+    $this->waitForElementPresent("xpath=//div[@class='profile']/span/a[text()='View contact record']");
+    $this->click("xpath=//div[@class='profile']/span/a[text()='View contact record']");
     $this->waitForPageToLoad($this->getTimeoutMsec());
 
     //Assert that the user actually does have a CMS Id displayed