Update cid read-only field
authorColeman Watts <coleman@civicrm.org>
Wed, 20 Aug 2014 21:39:16 +0000 (22:39 +0100)
committerColeman Watts <coleman@civicrm.org>
Wed, 20 Aug 2014 21:43:35 +0000 (22:43 +0100)
css/civicrm.css
templates/CRM/Contact/Form/Contact.tpl

index dae7ae265cd94a0f3933d42d3d087ff628e4f331..8e7d0ddaae61511174e7081a05ea7857195db0f5 100644 (file)
@@ -331,6 +331,14 @@ input.crm-form-entityref {
   background-image: linear-gradient(top, #eee 1%, #fff 15%);
 }
 
+.crm-container input.crm-form-text[disabled],
+.crm-container input.crm-form-text[readonly] {
+  background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(1%, #ddd), color-stop(15%, #f2f2f2));
+  background-image: -webkit-linear-gradient(top, #ddd 1%, #f2f2f2 15%);
+  background-image: -moz-linear-gradient(top, #ddd 1%, #f2f2f2 15%);
+  background-image: linear-gradient(top, #ddd 1%, #f2f2f2 15%);
+}
+
 .crm-container .crm-form-submit {
   margin: .25em 0.5em 0.25em 0;
 }
index 22b7acbde258de1f481105b4b472cbbe4e42d123..a0d94cbc32ca3615ad830fe967619633c9b61f09 100644 (file)
                 {$form.external_identifier.html}
               </td>
               {if $contactId}
-                <td><label for="internal_identifier_display">{ts}CiviCRM ID{/ts}{help id="id-internal-id"}</label><br /><input id="internal_identifier_display" type="text" class="form-text eight" size="8" disabled="disabled" value="{$contactId}"></td>
+                <td>
+                  <label for="internal_identifier_display">{ts}CiviCRM ID{/ts} {help id="id-internal-id"}</label><br />
+                  <input id="internal_identifier_display" type="text" class="crm-form-text six" size="6" readonly="readonly" value="{$contactId}">
+                </td>
               {/if}
             </tr>
           </table>