From e9bce40831507a851a6d1f32e399053321fd3f86 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 20 Aug 2014 22:39:16 +0100 Subject: [PATCH] Update cid read-only field --- css/civicrm.css | 8 ++++++++ templates/CRM/Contact/Form/Contact.tpl | 5 ++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/css/civicrm.css b/css/civicrm.css index dae7ae265c..8e7d0ddaae 100644 --- a/css/civicrm.css +++ b/css/civicrm.css @@ -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; } diff --git a/templates/CRM/Contact/Form/Contact.tpl b/templates/CRM/Contact/Form/Contact.tpl index 22b7acbde2..a0d94cbc32 100644 --- a/templates/CRM/Contact/Form/Contact.tpl +++ b/templates/CRM/Contact/Form/Contact.tpl @@ -62,7 +62,10 @@ {$form.external_identifier.html} {if $contactId} -
+ +
+ + {/if} -- 2.25.1