From 431b0ca87dce47c5603f0d82509bd56947553e3d Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 3 Oct 2014 15:23:18 +0100 Subject: [PATCH] changed inline css to civicrm core classes and added custom classes for repeat dialog --- CRM/Core/Form/RecurringEntity.php | 2 +- css/civicrm.css | 24 ++++++++ templates/CRM/Core/Form/RecurringEntity.tpl | 17 ++---- .../Form/ManageEvent/ConfirmRepeatMode.tpl | 58 +++++++------------ .../CRM/Event/Form/ManageEvent/Repeat.tpl | 4 +- 5 files changed, 52 insertions(+), 53 deletions(-) diff --git a/CRM/Core/Form/RecurringEntity.php b/CRM/Core/Form/RecurringEntity.php index 888c49b9f1..38937fcf43 100644 --- a/CRM/Core/Form/RecurringEntity.php +++ b/CRM/Core/Form/RecurringEntity.php @@ -90,7 +90,7 @@ class CRM_Core_Form_RecurringEntity { '2' => ts('On'), ); $form->addRadio('ends', ts("Ends:"), $eoptionTypes, array(), NULL, TRUE); - $form->add('text', 'start_action_offset', ts(''), array('maxlength' => 2)); + $form->add('text', 'start_action_offset', ts(''), array('size' => 3, 'maxlength' => 2)); $form->addFormRule(array('CRM_Core_Form_RecurringEntity', 'formRule')); $form->addDate('repeat_absolute_date', ts('On'), FALSE, array('formatType' => 'mailing')); $form->addDate('exclude_date', ts('Exclude Date(s)'), FALSE); diff --git a/css/civicrm.css b/css/civicrm.css index 5f98ad78fb..f5e660ccba 100644 --- a/css/civicrm.css +++ b/css/civicrm.css @@ -4539,3 +4539,27 @@ span.crm-status-icon { .crm-container .blockUI.blockOverlay { background: url("../i/loading-overlay.gif") center center no-repeat white !important; } + +/* Recurring Dialog */ +.crm-container .recurring-dialog-inner-wrapper { + display: inline-block; + width: 100%; +} +.crm-container .recurring-dialog-inner-left{ + width: 30%; + float: left; +} +.crm-container .recurring-dialog-inner-right{ + width: 70%; + float: left; +} +.crm-container .recurring-dialog-button{ + background: #f5f5f5; + background-image: -webkit-linear-gradient(top,#f5f5f5,#f1f1f1); + border: 1px solid rgba(0,0,0,0.1); + padding: 5px 8px; + text-align: center; + border-radius: 2px; + cursor: pointer; + font-size: 11px !important; +} \ No newline at end of file diff --git a/templates/CRM/Core/Form/RecurringEntity.tpl b/templates/CRM/Core/Form/RecurringEntity.tpl index 5bccb258f8..06de2b0766 100644 --- a/templates/CRM/Core/Form/RecurringEntity.tpl +++ b/templates/CRM/Core/Form/RecurringEntity.tpl @@ -88,20 +88,11 @@ -