CRM-13783 - ProfileBuilder - Improve title, themeing of popup
authorColeman Watts <coleman@civicrm.org>
Tue, 19 Nov 2013 00:35:24 +0000 (16:35 -0800)
committerColeman Watts <coleman@civicrm.org>
Tue, 19 Nov 2013 00:35:24 +0000 (16:35 -0800)
CRM/Custom/Form/Field.php
css/crm.designer.css
js/Common.js

index 2e34075d6088bd13207a743035a1408b40a83289..7966ebdd5d98463be476b9a3984921f89c97a0f8 100644 (file)
@@ -272,7 +272,7 @@ class CRM_Custom_Form_Field extends CRM_Core_Form {
   public function buildQuickForm() {
     if ($this->_gid) {
       $this->_title = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_CustomGroup', $this->_gid, 'title');
-      CRM_Utils_System::setTitle($this->_title . ' - ' . ts('Custom Fields'));
+      CRM_Utils_System::setTitle($this->_title . ' - ' . ($this->_id ? ts('Edit Field') : ts('Add Field')));
     }
 
     // lets trim all the whitespace
@@ -983,6 +983,7 @@ SELECT id
     }
 
     $customField = CRM_Core_BAO_CustomField::create($params);
+    $this->_id = $customField->id;
 
     // reset the cache
     CRM_Core_BAO_Cache::deleteGroup('contact fields');
index 894f0135bd1c54715daf4114b5126af12d5b0d83..7d4db89f0f688d3b7a77353e2eb023a0695906ab 100644 (file)
   margin: 0.5em 0;
 }
 
+.crm-designer-palette-search input {
+  max-width: 75%;
+}
+
 .crm-designer-toolbar .ui-resizable-w {
   border-left: 4px dotted #BFBFBF;
   cursor: ew-resize;
index de2861b853c5859ba88fdc0560700c69c7d2f8d8..60738a3489cb16677e10b8126a89fe22bbd74636 100644 (file)
@@ -827,7 +827,8 @@ CRM.validate = CRM.validate || {
       target: '#crm-ajax-dialog',
       dialog: {
         modal: true,
-        minWidth: 600,
+        width: '65%',
+        height: parseInt($(window).height() * .75),
         close: function() {
           $(this).dialog('destroy');
           $(this).remove();