public function __construct() {
parent::__construct();
+ $this->addClass('crm-report-form');
+
// build tag filter
if ($this->_tagFilter) {
$this->buildTagFilter();
public function addChartOptions() {
if (!empty($this->_charts)) {
- $this->addElement('select', "charts", ts('Chart'), $this->_charts, array('onchange' => 'disablePrintPDFButtons(this.value);'));
+ $this->addElement('select', "charts", ts('Chart'), $this->_charts);
$this->assign('charts', $this->_charts);
$this->addElement('submit', $this->_chartButtonName, ts('View'));
}
height: 12em;
}
-
/* Override line-height from style.css */
#crm-container,
.crm-container {
color: #3E3E3E;
}
-/*
-** class for hiding the text box;
- it is used in the OtherActivity template
-** for showing the descrition of activity type element.
-*/
-.crm-container .texttolabel,
.crm-container .no-border {
border-style: none;
}
border-bottom: 2px solid #777;
}
-.crm-container div.solid-border-top,
-.crm-container .attachment-fieldset {
+.crm-container .solid-border-top {
margin-top: 15px;
border-top: 1px solid #696969;
}
height: 1em;
}
-.crm-container .add-remove-link,
-.crm-container .map-link,
-.crm-container .font-small {
+.crm-container .add-remove-link {
font-size: .9em;
}
margin-bottom: 28px;
}
-.crm-container span.crm-lock-button {
- float: right;
-}
-
.crm-container fieldset {
background: none;
padding: 4px 0px;
vertical-align: top;
}
-.crm-container td.op-checkbox label {
- font-weight: normal;
- font-style: italic;
-}
-
.crm-container .form-layout td.label-left,
.crm-container .form-layout-compressed td.label-left {
text-align: left;
padding-top: 10px;
}
-.crm-container .button-disabled {
- color: #CFCEC3!important;
-}
-
.crm-container .form-layout-compressed td.describe-image {
vertical-align: top;
padding: 0.5em 0em 0em 0em;
padding-left: 1em;
}
-/*
-** CSS for links from Drupal Blocks.
-*/
/* Following styles are used to remove the white bullets from the Garland Theme */
.crm-container ul li {
background-image: none;
}
-/* But allow them for the help at the top of forms
-*/
+/* But allow them for the help at the top of forms */
.crm-container #help ul li {
background-image: url(menu-leaf.png);
}
margin: 4px;
}
-/* Set display: inline to over-ride drupal.css which sets label tags to display: block */
-#crm-container .notorg {
- font-weight: normal;
-}
-
.crm-container .font-light {
font-weight: lighter;
}
border: 2px solid #999999;
}
-#crm-container td.yes-no {
- text-align: center;
-}
-
-#crm-container .horizontal-position {
- margin-right: 30px;
- margin-left: 30px;
-}
-
-#crm-container .horizontal-center {
- text-align: center;
- margin: 0 auto;
- width: 80%;
-}
-
-#crm-container .place-left {
- float: left;
- margin-left: 30px;
- margin-right: 30px;
-}
-
#crm-container .float-left {
float: left;
padding: 4px 0px;
margin: -24px 30px 0px 0px;
}
-/*
-** Boxes of checkbox elements (e.g. Advanced Search page)
-*/
-.crm-container .listing-box {
+/* Boxes of checkbox elements (e.g. Advanced Search page) */
+.crm-container .listing-box,
+.crm-container .listing-box-tall {
width: auto;
max-width: 30em;
height: 7.25em;
color: black;
}
-/*
-** To allow for taller boxes of groups/tags.
-*/
+/* To allow for taller boxes of groups/tags. */
.crm-container .listing-box-tall {
- margin: 0.25em 2.0em 0.5em 0em;
- width: auto;
- max-width: 30em;
+ margin: 0.25em 2.0em 0.5em 0;
height: 15em;
- overflow: auto;
- border: 1px solid #999999;
}
/* Image Styles */
padding: 2px 2px 2px 3px;
margin: 2px 2px 3px 2px;
cursor: pointer;
- cursor: hand;
-}
-
-/*
-** Style for hiding blocks or table rows
-*/
-.crm-container .hide-block,
-.crm-container .hide-row {
- display: none;
-}
-
-/*
-** Styles for showing blocks and table rows
-*/
-#crm-container .show-block {
- display: block;
-}
-
-#crm-container .show-row {
- display: table-row;
}
#crm-container input.submit-link {
border: 1px solid #DDDDDD;
}
-.crm-container #main {
- height: 95%;
- width: 95%;
- left: 1%;
- top: 1%;
- position: relative;
-}
-
-#crm-container .label-pane {
- margin: 0.25em 0em 0em;
- padding: 0.25em;
- background-color: #6AA8EE;
- cursor: pointer;
- color: #213245;
- font-weight: bold;
- cursor: pointer;
-}
-
-#crm-container .content-pane {
- overflow: auto;
-}
-
-/*
-editor specific classes
-*/
+/* editor specific classes */
#crm-container dd.editor {
margin-top: 0.7em;
margin-left: 0em;
max-width: 360px;
}
-#crm-container .ui-draggable {
- background: url("../i/draggable.png") no-repeat left 1px;
- float: left;
- height: 16px;
- text-indent: -10000px;
- width: 16px;
-}
-
#crm-container .pcp-widgets {
border: 1px solid #CCCCCC;
float: right;
background: transparent;
}
-#crm-container span.success-status {
- margin-left: 6px;
- background-color: #ffff99;
- padding: .25em .5em .25em .5em;
- border: 1px solid #696969;
-}
-
/* Styles for Config Task List */
#crm-container td.tasklist a {
font-weight: bold;
border: 1px solid #3e3e3e;
}
-.crm-container input.crm-form-submit[disabled],
-.crm-container input[type=button][disabled],
-.crm-container .crm-button[disabled] {
- color: #999;
-}
-
.crm-container .crm-button {
padding: 1px;
}
background-position: 0 -25px;
}
+.crm-container input.crm-form-submit[disabled],
+.crm-container input[type=button][disabled],
+.crm-container .crm-button[disabled] {
+ opacity: .6;
+ cursor: default;
+ background-position: top left;
+}
+
.crm-container .ui-dialog-buttonpane {
background: linear-gradient(to bottom, #f2f2f2 0%,#ffffff 35%);
}
.crm-container .paging_two_button .ui-button {
float: left;
cursor: pointer;
- * cursor: hand;
}
.crm-container .paging_full_numbers .ui-button {
padding: 2px 6px;
margin: 0;
cursor: pointer;
- * cursor: hand;
}
.crm-container .dataTables_paginate .ui-button {
padding: 3px 10px;
}
-.crm-container table.display td.center {
+.crm-container table td.center {
text-align: center;
}
/* Fix weird color added to some datatables' sort column */
overflow: visible;
}
-/* Help text in Send Mail*/
-#crm-container div.messageHelp {
- z-index: 1;
- position: absolute;
- margin: 6px 0px 0px 115px;
-}
/*chart */
#chartData {
overflow: auto;
/* loader autocomplete */
-#civicrm-menu .ui-autocomplete-loading,
.crm-container .ui-autocomplete-loading {
background: white url('../i/loading.gif') no-repeat right center;
}
<div class="spacer"></div>
<div class="crm-submit-buttons">
{include file="CRM/common/formButtons.tpl"}
- <span class="place-left"> </span>
+ <span class="float-left"> </span>
<span class="crm-button crm-button-type-next crm-button_qf_Smtp_refresh_test">{$form._qf_Smtp_refresh_test.html}</span>
</div>
</div>
<div class="crm-block crm-content-block">
<div id="new-menu-item">
<a href="{crmURL p="civicrm/admin/menu" q="action=add&reset=1"}" class="button" style="margin-left: 6px;"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add Menu Item{/ts}</span></a>
- <span id="reset-menu" class="success-status" style="display:none">
+ <span id="reset-menu" class="status" style="display:none">
{capture assign=rebuildURL}{crmURL p='civicrm/admin/menu' q="reset=1"}{/capture}
{ts 1=$rebuildURL}<a href='%1' title="Reload page"><strong>Click here</strong></a> to reload the page and see your changes in the menu bar above.{/ts}
</span><br/><br/>
<td>{$row.financial_account}</td>
{/if}
{if $showCounted}
- <td class="yes-no crm-admin-options-filter">{if $row.filter eq 1}<img src="{$config->resourceBase}i/check.gif" alt="{ts}Counted{/ts}" />{/if}</td>
+ <td class="center crm-admin-options-filter">{if $row.filter eq 1}<img src="{$config->resourceBase}i/check.gif" alt="{ts}Counted{/ts}" />{/if}</td>
{/if}
{if $showVisibility}<td class="crm-admin-visibility_label">{$row.visibility_label}</td>{/if}
<td class="crm-admin-options-description crm-editable" data-field="description" data-type="textarea">{$row.description}</td>
<td class="crmf-label crm-editable" data-field="label">{$row.label}</td>
<td class="crmf-name">{$row.name} ({$row.id})</td>
<td class="crmf-class crm-editable" data-type="select">{$row.class}</td>
- <td class="yes-no crmf-is_reserved">{if $row.is_reserved}<img src="{$config->resourceBase}i/check.gif" alt="{ts}Reserved{/ts}" />{/if}</td>
+ <td class="center crmf-is_reserved">{if $row.is_reserved}<img src="{$config->resourceBase}i/check.gif" alt="{ts}Reserved{/ts}" />{/if}</td>
<td id="row_{$row.id}_status" class="crmf-is_active">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
- <td class="yes-no crmf-is_counted">{if $row.is_counted} <img src="{$config->resourceBase}i/check.gif" alt="{ts}Counted{/ts}" />{/if}</td>
+ <td class="center crmf-is_counted">{if $row.is_counted} <img src="{$config->resourceBase}i/check.gif" alt="{ts}Counted{/ts}" />{/if}</td>
<td class="crmf-weight">{$row.weight}</td>
<td class="crmf-visibility">{$row.visibility}</td>
<td>{$row.action|replace:'xx':$row.id}</td>
</tr>
{if $action eq 1 or $action eq 2}
- <tr class="crm-case-activity-form-block-target_contact_id hide-block" id="with-contacts-widget">
+ <tr class="crm-case-activity-form-block-target_contact_id hiddenElement" id="with-contacts-widget">
<td class="label font-size10pt">{ts}With Contact{/ts}</td>
<td class="view-value">
{$form.target_contact_id.html}
</table>
<div class="clear"><br /></div>
<div class="action-link">
- <a href="{crmURL p="civicrm/contact/deduperules" q="reset=1"}" class="button"><span>{ts}Done{/ts}</span></a>
+ {crmButton p="civicrm/contact/deduperules" q="reset=1" icon="close"}{ts}Done{/ts}{/crmButton}
</div>
var errorTag = o.find('.update_oplock_ts');
if (errorTag.length > 0) {
$('<span>')
- .addClass('crm-lock-button')
+ .addClass('crm-lock-button css_right')
.appendTo(errorTag);
var buttonContainer = o.find('.crm-lock-button');
<table class="form-layout-compressed">
<tr class="crm-contribution-form-block-min_amount">
<td class="label">{$form.min_amount.label}</td>
- <td class="html-adjust">{$form.min_amount.html|crmAddClass:texttolabel|crmMoney:$currency}</td>
+ <td class="html-adjust">{$form.min_amount.html|crmAddClass:'no-border'|crmMoney:$currency}</td>
</tr>
</table>
<div class="spacer"></div>
{if $thumbnailUrl}<tr class="odd-row"><td class="describe-image" colspan="2"><strong>Current Image Thumbnail</strong><br /><img src="{$thumbnailUrl}" /></td></tr>{/if}
<tr class="crm-contribution-form-block-imageOption"><td>{$form.imageOption.image.html}</td><td>{$form.uploadFile.html}</td></tr>
<tr class="crm-contribution-form-block-imageOption-thumbnail"><td colspan="2">{$form.imageOption.thumbnail.html}</td></tr>
- <tr id="imageURL"{if $action eq 2}class="show-row" {else} class="hide-row" {/if}>
+ <tr id="imageURL"{if $action neq 2} class="hiddenElement"{/if}>
<td class="label">{$form.imageUrl.label}</td><td>{$form.imageUrl.html|crmAddClass:huge}</td>
</tr>
- <tr id="thumbnailURL"{if $action eq 2}class="show-row" {else} class="hide-row" {/if}>
+ <tr id="thumbnailURL"{if $action neq 2} class="hiddenElement"{/if}>
<td class="label">{$form.thumbnailUrl.label}</td><td>{$form.thumbnailUrl.html|crmAddClass:huge}</td>
</tr>
<tr><td colspan="2">{$form.imageOption.default_image.html}</td></tr>
</div>\r
</div>\r
</div>\r
-<div id="preview-dialog" class="hide-block">\r
+<div id="preview-dialog" class="hiddenElement">\r
<div id="generated_dates" class="show-block"></div>\r
</div>\r
{literal}\r
<td class='html-adjust'>{$form.in_selector.html} {help id="id-in_selector"}</td>
</tr>
{/if}
- <tr class="crm-custom-field-form-block-text_length" id="textLength" {if !( $action eq 1 || $action eq 2 ) && ($form.data_type.value.0.0 != 0)}class="hide-block"{/if}>
+ <tr class="crm-custom-field-form-block-text_length" id="textLength" {if !( $action eq 1 || $action eq 2 ) && ($form.data_type.value.0.0 != 0)}class="hiddenElement"{/if}>
<td class="label">{$form.text_length.label}</td>
<td class="html-adjust">{$form.text_length.html}</td>
</tr>
- <tr id='showoption' {if $action eq 1 or $action eq 2 }class="hide-block"{/if}>
+ <tr id='showoption' {if $action eq 1 or $action eq 2 }class="hiddenElement"{/if}>
<td colspan="2">
<table class="form-layout-compressed">
{* Conditionally show table for setting up selection options - for field types = radio, checkbox or select *}
<span class="description">{ts}Filter contact search results for this field using Contact get API parameters. EXAMPLE: To list Students in group 3:{/ts} "action=get&group=3&contact_sub_type=Student" {docURL page="Using the API" resource="wiki"}</span>
</td>
</tr>
- <tr class="crm-custom-field-form-block-options_per_line" id="optionsPerLine" {if $action neq 2 && ($form.data_type.value.0.0 >= 4 && $form.data_type.value.1.0 neq 'CheckBox' || $form.data_type.value.1.0 neq 'Radio' )}class="hide-block"{/if}>
+ <tr class="crm-custom-field-form-block-options_per_line" id="optionsPerLine" {if $action neq 2 && ($form.data_type.value.0.0 >= 4 && $form.data_type.value.1.0 neq 'CheckBox' || $form.data_type.value.1.0 neq 'Radio' )}class="hiddenElement"{/if}>
<td class="label">{$form.options_per_line.label}</td>
<td class="html-adjust">{$form.options_per_line.html|crmAddClass:two}</td>
</tr>
- <tr class="crm-custom-field-form-block-start_date_years" id="startDateRange" {if $action neq 2 && ($form.data_type.value.0.0 != 5)}class="hide-block"{/if}>
+ <tr class="crm-custom-field-form-block-start_date_years" id="startDateRange" {if $action neq 2 && ($form.data_type.value.0.0 != 5)}class="hiddenElement"{/if}>
<td class="label">{$form.start_date_years.label}</td>
<td class="html-adjust">{$form.start_date_years.html} {ts}years prior to current date.{/ts}</td>
</tr>
- <tr class="crm-custom-field-form-block-end_date_years" id="endDateRange" {if $action neq 2 && ($form.data_type.value.0.0 != 5)}class="hide-block"{/if}>
+ <tr class="crm-custom-field-form-block-end_date_years" id="endDateRange" {if $action neq 2 && ($form.data_type.value.0.0 != 5)}class="hiddenElement"{/if}>
<td class="label">{$form.end_date_years.label}</td>
<td class="html-adjust">{$form.end_date_years.html} {ts}years after the current date.{/ts}</td>
</tr>
- <tr class="crm-custom-field-form-block-date_format" id="includedDatePart" {if $action neq 2 && ($form.data_type.value.0.0 != 5)}class="hide-block"{/if}>
+ <tr class="crm-custom-field-form-block-date_format" id="includedDatePart" {if $action neq 2 && ($form.data_type.value.0.0 != 5)}class="hiddenElement"{/if}>
<td class="label">{$form.date_format.label}</td>
<td class="html-adjust">{$form.date_format.html} {$form.time_format.label} {$form.time_format.html}</td>
</tr>
- <tr class="crm-custom-field-form-block-note_rows" id="noteRows" {if $action neq 2 && ($form.data_type.value.0.0 != 4)}class="hide-block"{/if}>
+ <tr class="crm-custom-field-form-block-note_rows" id="noteRows" {if $action neq 2 && ($form.data_type.value.0.0 != 4)}class="hiddenElement"{/if}>
<td class="label">{$form.note_rows.label}</td>
<td class="html-adjust">{$form.note_rows.html}</td>
</tr>
- <tr class="crm-custom-field-form-block-note_columns" id="noteColumns" {if $action neq 2 && ($form.data_type.value.0.0 != 4)}class="hide-block"{/if}>
+ <tr class="crm-custom-field-form-block-note_columns" id="noteColumns" {if $action neq 2 && ($form.data_type.value.0.0 != 4)}class="hiddenElement"{/if}>
<td class="label">{$form.note_columns.label}</td>
<td class="html-adjust">{$form.note_columns.html}</td>
</tr>
- <tr class="crm-custom-field-form-block-note_length" id="noteLength" {if $action neq 2 && ($form.data_type.value.0.0 != 4)}class="hide-block"{/if}>
+ <tr class="crm-custom-field-form-block-note_length" id="noteLength" {if $action neq 2 && ($form.data_type.value.0.0 != 4)}class="hiddenElement"{/if}>
<td class="label">{$form.note_length.label}</td>
<td class="html-adjust">{$form.note_length.html} <span class="description">{ts}Leave blank for unlimited. This limit is not implemented by all browsers and rich text editors.{/ts}</span></td>
</tr>
{/if}
</td>
</tr>
- <tr class="crm-custom-field-form-block-default_value" id="hideDefault" {if $action eq 2 && ($form.data_type.value.0.0 < 4 && $form.data_type.value.1.0 NEQ 'Text')}class="hide-block"{/if}>
+ <tr class="crm-custom-field-form-block-default_value" id="hideDefault" {if $action eq 2 && ($form.data_type.value.0.0 < 4 && $form.data_type.value.1.0 NEQ 'Text')}class="hiddenElement"{/if}>
<td title="hideDefaultValTxt" class="label">{$form.default_value.label}</td>
<td title="hideDefaultValDef" class="html-adjust">{$form.default_value.html}</td>
</tr>
- <tr class="crm-custom-field-form-block-description" id="hideDesc" {if $action neq 4 && $action eq 2 && ($form.data_type.value.0.0 < 4 && $form.data_type.value.1.0 NEQ 'Text')}class="hide-block"{/if}>
+ <tr class="crm-custom-field-form-block-description" id="hideDesc" {if $action neq 4 && $action eq 2 && ($form.data_type.value.0.0 < 4 && $form.data_type.value.1.0 NEQ 'Text')}class="hiddenElement"{/if}>
<td title="hideDescTxt" class="label"> </td>
<td title="hideDescDef" class="html-adjust"><span class="description">{ts}If you want to provide a default value for this field, enter it here. For date fields, format is YYYY-MM-DD.{/ts}</span></td>
</tr>
</tr>
{/if}
{assign var="showEdit" value=0}
- <tr id="statusmessg_{$index}" class="hiddenElement">
- <td><span class="success-status"></span></td>
- </tr>
<tr>
<td id="{$cd_edit.name}_{$index}" class="section-shown form-item">
<div class="crm-accordion-wrapper {if $cd_edit.collapse_display eq 0 or $skipTitle} {else}collapsed{/if}">
+--------------------------------------------------------------------+\r
*}\r
\r
-<div id="recurring-dialog" class="hide-block">\r
+<div id="recurring-dialog" class="hiddenElement">\r
{ts}How would you like this change to affect other entities in the repetition set?{/ts}<br/><br/>\r
<div class="show-block">\r
<div class="recurring-dialog-inner-wrapper">\r
{assign var=attachName value="attachFile_"|cat:$index}
{assign var=attachDesc value="attachDesc_"|cat:$index}
{assign var=tagElement value="tag_"|cat:$index}
- <tr class="attachment-fieldset"><td colspan="2"></td></tr>
+ <tr class="attachment-fieldset solid-border-top"><td colspan="2"></td></tr>
<tr>
<td class="label">{$form.attachFile_1.label}</td>
<td>{$form.$attachName.html} {$form.$attachDesc.html}<a href="#" class="crm-hover-button crm-clear-attachment" style="visibility: hidden;" title="{ts}Clear{/ts}"><span class="icon ui-icon-close"></span></a></td>
{/if}
{if $currentAttachmentInfo}
- <tr class="attachment-fieldset"><td colspan="2"></td></tr>
+ <tr class="attachment-fieldset solid-border-top"><td colspan="2"></td></tr>
<tr>
<td class="label">{ts}Current Attachment(s){/ts}</td>
<td class="view-value">
</table>
<div class="spacer"></div>
- <div id="price-block" {if $action eq 2 && $form.html_type.value.0 eq 'Text'} class="show-block" {else} class="hide-block" {/if}>
+ <div id="price-block" {if $action eq 2 && $form.html_type.value.0 eq 'Text'} class="show-block" {else} class="hiddenElement" {/if}>
<table class="form-layout">
<tr class="crm-price-field-form-block-price">
<td class="label">{$form.price.label} <span class="crm-marker" title="{ts}This field is required.{/ts}">*</span></td>
{if $action eq 1}
{* Conditionally show table for setting up selection options - for field types = radio, checkbox or select *}
- <div id='showoption' class="hide-block">{ include file="CRM/Price/Form/OptionFields.tpl"}</div>
+ <div id='showoption' class="hiddenElement">{ include file="CRM/Price/Form/OptionFields.tpl"}</div>
{/if}
<table class="form-layout">
<tr id="optionsPerLine" class="crm-price-field-form-block-options_per_line">
{literal}
<script type="text/javascript">
- var flashChartType = {/literal}{if $chartType}'{$chartType}'{else}''{/if}{literal};
- function disablePrintPDFButtons( viewtype ) {
- if (viewtype && flashChartType != viewtype) {
- cj('#_qf_Summary_submit_pdf').prop('disabled', true).addClass('button-disabled');
- cj('#_qf_Summary_submit_print').prop('disabled', true).addClass('button-disabled');
- } else {
- cj('#_qf_Summary_submit_pdf').prop('disabled', false).removeClass('button-disabled');
- cj('#_qf_Summary_submit_print').prop('disabled', false).removeClass('button-disabled');
- }
- }
+ CRM.$(function($) {
+ // Disable print/pdf output of charts
+ $('select[name=charts]', 'form.crm-report-form').change(function() {
+ var viewType = $(this).val(),
+ flashChartType = '{/literal}{if $chartType}{$chartType}{else}{/if}{literal}';
+ $('#_qf_Summary_submit_pdf, #_qf_Summary_submit_print').prop('disabled', (viewType && flashChartType != viewType));
+ });
+ });
</script>
{/literal}
{/if} {* NO print section ends *}
{* common dupe contacts processing *}
-<div id='processDupes' class="success-status" style="display:none;"></div>
+<div id='processDupes' style="display:none;"></div>
{literal}
<script type='text/javascript'>