$this->addElement(
'submit', $this->getButtonName('next', 'cleanup'), 'Cleanup Caches',
- array('class' => 'form-submit', 'id' => 'cleanup-cache')
+ array('class' => 'crm-form-submit', 'id' => 'cleanup-cache')
);
$this->add('text', 'newBaseURL', ts('New Base URL'), NULL, TRUE);
$this->getButtonName('next', 'merge_case'),
ts('Merge'),
array(
- 'class' => 'form-submit-inline hiddenElement',
+ 'class' => 'crm-form-submit-inline hiddenElement',
)
);
}
$this->assign_by_ref('group', $groupValues);
$this->add('submit', $this->_actionButtonName, ts('Add Contacts to %1', array(1 => $this->_group[$this->_amtgID])),
array(
- 'class' => 'form-submit',
+ 'class' => 'crm-form-submit',
)
);
$this->add('hidden', 'task', CRM_Contact_Task::GROUP_CONTACTS);
$this->assign('searchCount', $searchCount);
$this->assign('searchDone', $this->get('searchDone'));
$this->assign('contact_type_display', ts('Household'));
- $this->addElement('submit', $this->getButtonName('refresh'), ts('Search'), array('class' => 'form-submit'));
- $this->addElement('submit', $this->getButtonName('cancel'), ts('Cancel'), array('class' => 'form-submit'));
+ $this->addElement('submit', $this->getButtonName('refresh'), ts('Search'), array('class' => 'crm-form-submit'));
+ $this->addElement('submit', $this->getButtonName('cancel'), ts('Cancel'), array('class' => 'crm-form-submit'));
$this->addButtons(array(
array(
$this->assign('searchCount', $searchCount);
$this->assign('searchDone', $this->get('searchDone'));
$this->assign('contact_type_display', ts('Organization'));
- $this->addElement('submit', $this->getButtonName('refresh'), ts('Search'), array('class' => 'form-submit'));
- $this->addElement('submit', $this->getButtonName('cancel'), ts('Cancel'), array('class' => 'form-submit'));
+ $this->addElement('submit', $this->getButtonName('refresh'), ts('Search'), array('class' => 'crm-form-submit'));
+ $this->addElement('submit', $this->getButtonName('cancel'), ts('Cancel'), array('class' => 'crm-form-submit'));
$this->addButtons(array(
$this->add('image',
$this->_checkoutButtonName,
$this->_paymentProcessor['url_button'],
- array('class' => 'form-submit')
+ array('class' => 'crm-form-submit')
);
$this->addButtons(array(
$js = CRM_Utils_Array::value('js', $button);
$isDefault = CRM_Utils_Array::value('isDefault', $button, FALSE);
if ($isDefault) {
- $attrs = array('class' => 'form-submit default');
+ $attrs = array('class' => 'crm-form-submit default');
}
else {
- $attrs = array('class' => 'form-submit');
+ $attrs = array('class' => 'crm-form-submit');
}
if ($js) {
$form->add('image',
$form->_expressButtonName,
$form->_paymentProcessor['url_button'],
- array('class' => 'form-submit')
+ array('class' => 'crm-form-submit')
);
}
}
$form->add('image',
$form->_expressButtonName,
$form->_paymentProcessor['url_button'],
- array('class' => 'form-submit')
+ array('class' => 'crm-form-submit')
);
}
}
$this->addElement('button',
'done',
ts('Done'),
- array('onclick' => "location.href='$url'", 'class' => 'form-submit')
+ array('onclick' => "location.href='$url'", 'class' => 'crm-form-submit')
);
}
}
}
$_showHide->addToTemplate();
$this->addElement('submit', $this->getButtonName('submit'), ts('Add Discount Set to Fee Table'),
- array('class' => 'form-submit cancel')
+ array('class' => 'crm-form-submit cancel')
);
$this->buildAmountLabel();
$this->add('image',
$this->_checkoutButtonName,
$this->_paymentProcessor['url_button'],
- array('class' => 'form-submit')
+ array('class' => 'crm-form-submit')
);
$this->addButtons(array(
$this->add('submit','rSubmit', ts('Go'),
array(
- 'class' => 'form-submit',
+ 'class' => 'crm-form-submit',
'id' => 'GoRemove',
));
$this->add('submit','submit', ts('Go'),
array(
- 'class' => 'form-submit',
+ 'class' => 'crm-form-submit',
'id' => 'Go',
));
$this->applyFilter('__ALL__', 'trim');
$this->add('submit','submit', ts('Go'),
array(
- 'class' => 'form-submit',
+ 'class' => 'crm-form-submit',
'id' => 'Go',
));
font-weight: bold;
color: #9cf;
}
-#search .form-text, #search .form-submit {
+#search .form-text, #search .crm-form-submit {
border: 1px solid #369;
font-size: 1.1em;
}
padding: 0 0.5em 0 0.5em;
margin: 0 0 0.5em 0;
}
-#search .form-submit {
+#search .crm-form-submit {
height: 1.5em;
}
#mission {
background-image: linear-gradient(top, #eee 1%, #fff 15%);
}
-.crm-container .form-submit {
+.crm-container .crm-form-submit {
margin: .25em 0.5em 0.25em 0;
}
-.crm-container .form-submit-inline {
+.crm-container .crm-form-submit-inline {
margin: 0em 0.5em 0.25em 0em;
}
.crm-container a.button,
.crm-container a.button:link,
.crm-container a.button:visited,
-.crm-container input.form-submit,
+.crm-container input.crm-form-submit,
.crm-container .crm-button,
#crm-container input[type=button],
-#crm-container input.form-submit-inline,
+#crm-container input.crm-form-submit-inline,
#crm-container .crm-button {
text-shadow: 0 1px 0 black;
background: #70716B url(../i/crm-button-bg.gif) repeat-x top left;
border: 1px solid #3e3e3e;
}
-.crm-container input.form-submit[disabled],
+.crm-container input.crm-form-submit[disabled],
.crm-container .crm-button[disabled],
#crm-container input[type=button][disabled],
-#crm-container input.form-submit-inline[disabled],
+#crm-container input.crm-form-submit-inline[disabled],
#crm-container .crm-button[disabled] {
color: #999;
}
padding: 1px;
}
-.crm-container input.form-submit,
+.crm-container input.crm-form-submit,
#crm-container input[type=button],
-#crm-container input.form-submit-inline {
+#crm-container input.crm-form-submit-inline {
padding: 2px 6px;
}
.crm-container .crm-button input[type=button],
-.crm-container .crm-button input.form-submit,
-.crm-container .crm-button input.form-submit-inline,
+.crm-container .crm-button input.crm-form-submit,
+.crm-container .crm-button input.crm-form-submit-inline,
#crm-container .crm-button input[type=button],
-#crm-container .crm-button input.form-submit,
-#crm-container .crm-button input.form-submit-inline {
+#crm-container .crm-button input.crm-form-submit,
+#crm-container .crm-button input.crm-form-submit-inline {
padding: 2px 4px;
margin: 0px;
background: none;
.crm-container .crm-button,
.crm-container a.button,
.crm-container a.button:link,
-.crm-container input.form-submit,
+.crm-container input.crm-form-submit,
.crm-container input[type=button],
-.crm-container input.form-submit-inline {
+.crm-container input.crm-form-submit-inline {
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
-khtml-border-radius: 3px;
}
/* Match font size on 'Continue' button on event participant form (no specific class) */
-#crm-container .crm-event-additionalparticipant-form-block span.crm-button input.form-submit.default {
+#crm-container .crm-event-additionalparticipant-form-block span.crm-button input.crm-form-submit.default {
font-size: 1.2em;
}
.container-inline div {
display: inline;
}
-.container-inline .form-submit {
+.container-inline .crm-form-submit {
margin: 0;
}
.error {
.form-item label.option {
font-weight: normal;
}
-.form-submit {
+.crm-form-submit {
margin: 0.5em 0;
}
.marker, .form-required {
.container-inline div {
display: inline;
}
-.container-inline .form-submit {
+.container-inline .crm-form-submit {
margin: 0;
}
.item-list .icon {
.form-item label.option {
font-weight: normal;
}
-.form-submit {
+.crm-form-submit {
margin: 0.5em 0;
}
.marker, .form-required {
font-weight: bold;
color: #9cf;
}
-#search .form-text, #search .form-submit {
+#search .form-text, #search .crm-form-submit {
border: 1px solid #369;
font-size: 1.1em;
}
padding: 0 0.5em 0 0.5em;
margin: 0 0 0.5em 0;
}
-#search .form-submit {
+#search .crm-form-submit {
height: 1.5em;
}
#main {
/* CiviCRM Print Media Stylesheet */
/* Hide any buttons or other form items when printing*/
-#crm-container .buttons, #crm-container .crm-submit-buttons, #crm-container .crm-actions-ribbon, #crm-container .form-submit {
+#crm-container .buttons, #crm-container .crm-submit-buttons, #crm-container .crm-actions-ribbon, #crm-container .crm-form-submit {
display: none;
}
<tr><td>Javascript</td><td><pre class="prettyprint linenums" id="api-json" title='javascript syntax'></pre></td></tr>
</table>
</div>
- <input type="submit" value="{ts}Execute{/ts}" class="form-submit"/>
+ <input type="submit" value="{ts}Execute{/ts}" class="crm-form-submit"/>
<pre id="api-result" class="linenums">
{ts}The result of api calls are displayed in this area.{/ts}
</pre>
<input type="hidden" name="qfKey" value="{crmKey name='CRM_Contact_Form_Contact' addSequence=1}" />
</div>
-<div class="form-item"><input type="submit" name="_qf_Contact_next" value="{ts}Save{/ts}" class="form-submit" /></div>
+<div class="form-item"><input type="submit" name="_qf_Contact_next" value="{ts}Save{/ts}" class="crm-form-submit" /></div>
</form>
</div>
<div class="block-crm crm-container">
<form method="post" id="id_fulltext_search">
<div style="margin-bottom: 8px;">
- <input type="text" name="text" id='text' value="" style="width: 10em;" /> <input type="submit" name="submit" id="fulltext_submit" value="{ts}Go{/ts}" class="form-submit"/ onclick='submitForm();'>
+ <input type="text" name="text" id='text' value="" style="width: 10em;" /> <input type="submit" name="submit" id="fulltext_submit" value="{ts}Go{/ts}" class="crm-form-submit"/ onclick='submitForm();'>
<input type="hidden" name="qfKey" value="{crmKey name='CRM_Contact_Controller_Search' addSequence=1}" />
</div>
<select class="form-select" id="fulltext_table" name="fulltext_table">
</td>
<td style="vertical-align: bottom;">
{assign var=caseid value=$caseID}
- <span class="crm-button"><input class="form-submit default" name="_qf_Basic_refresh" value="Search" type="button" onclick="buildCaseActivities( true,{$caseid} )"; /></span>
+ <span class="crm-button"><input class="crm-form-submit default" name="_qf_Basic_refresh" value="Search" type="button" onclick="buildCaseActivities( true,{$caseid} )"; /></span>
</td>
</tr>
<tr>
cj('input[name="modified_date"]').val(
cj('#update_modified_date').attr('data:latest_modified_date')
);
- cj('.crm-form-block .form-submit.default').first().click();
+ cj('.crm-form-block .crm-form-submit.default').first().click();
return false;
})
.appendTo(cj('#update_modified_date'))
//do not copy & paste this - find a way to generalise it
'use strict';
// NOTE: Might be safer to say $('[name=_qf_Email_upload]')
- $('.form-submit').not('.cancel').on("click", function() {
- $('.form-submit').not('.cancel').attr({value: ts('Processing')});
+ $('.crm-form-submit').not('.cancel').on("click", function() {
+ $('.crm-form-submit').not('.cancel').attr({value: ts('Processing')});
// CRM-13449 : setting a 0 ms timeout is needed
// for some browsers like chrome. Used for purpose of
// submit the form and stop accidental multiple clicks
setTimeout(function(){
- $('.form-submit').not('.cancel').prop({disabled: true});
+ $('.crm-form-submit').not('.cancel').prop({disabled: true});
}, 0);
});
});
<dt>{ts}To{/ts}</dt><dd>{$toName|escape}</dd>
<dt>{ts}Subject{/ts}</dt><dd>{$subject}</dd>
<dt>{ts}Message{/ts}</dt><dd>{$message}</dd>
-<dt> </dt><dd><a class="button cancel form-submit" href="{crmURL p='civicrm/contact/view' q="history=1&show=1&selectedChild=activity"}">{ts}Done{/ts}</a></dd>
+<dt> </dt><dd><a class="button cancel crm-form-submit" href="{crmURL p='civicrm/contact/view' q="history=1&show=1&selectedChild=activity"}">{ts}Done{/ts}</a></dd>
</dl>
</fieldset>
</div>
{include file="CRM/Form/attachment.tpl"}
{/if}
</table>
- <div class="crm-submit-buttons"><input type="submit" class='cancel form-submit' value="{ts}Done{/ts}"/></div>
+ <div class="crm-submit-buttons"><input type="submit" class='cancel crm-form-submit' value="{ts}Done{/ts}"/></div>
{if $comments}
<fieldset>
{/literal}
<form action="{crmURL p='civicrm/contact/view' q="&cid=`$contactId`&reset=1"}" method="post" id="Print1" >
<div class="form-item">
- <span class="element-right"><input onclick="window.print(); return false" class="form-submit default" name="_qf_Print_next" value="{ts}Print{/ts}" type="submit" /> <input class="form-submit" name="_qf_Print_back" value="{ts}Done{/ts}" type="submit" /></span>
+ <span class="element-right"><input onclick="window.print(); return false" class="crm-form-submit default" name="_qf_Print_next" value="{ts}Print{/ts}" type="submit" /> <input class="crm-form-submit" name="_qf_Print_back" value="{ts}Done{/ts}" type="submit" /></span>
</div>
</form>
<br />
{include file="CRM/Contact/Page/View/Summary.tpl"}
<form action="{crmURL p='civicrm/contact/view' q="&cid=`$contactId`&reset=1"}" method="post" id="Print2" >
<div class="form-item">
- <span class="element-right"><input onclick="window.print(); return false" class="form-submit default" name="_qf_Print_next" value="{ts}Print{/ts}" type="submit" /> <input class="form-submit" name="_qf_Print_back" value="{ts}Done{/ts}" type="submit" /></span>
+ <span class="element-right"><input onclick="window.print(); return false" class="crm-form-submit default" name="_qf_Print_next" value="{ts}Print{/ts}" type="submit" /> <input class="crm-form-submit" name="_qf_Print_back" value="{ts}Done{/ts}" type="submit" /></span>
</div>
</form>
</div>
.click(function() {
$(form).find('input[name=oplock_ts]').val(errorTag.attr('data:update_oplock_ts'));
errorTag.parent().hide();
- $(this).closest('form').find('.form-submit.default').first().click();
+ $(this).closest('form').find('.crm-form-submit.default').first().click();
return false;
})
.appendTo(buttonContainer)
<tr><td class="label">{ts}Auto Renew?{/ts}</td><td>{if $recur.auto_renew}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}</td></tr>
{if $recur.payment_processor}<tr><td class="label">{ts}Payment Processor{/ts}</td><td>{$recur.payment_processor}</td></tr>{/if}
</table>
- <div class="crm-submit-buttons"><a class="button cancel form-submit" href="{crmURL p='civicrm/contact/view' q='action=browse&selectedChild=contribute'}">{ts}Done{/ts}</a></div>
+ <div class="crm-submit-buttons"><a class="button cancel crm-form-submit" href="{crmURL p='civicrm/contact/view' q='action=browse&selectedChild=contribute'}">{ts}Done{/ts}</a></div>
</div>
{/if}
{/if}
<script type="text/javascript">
var totalPages = {/literal}{$pager->_totalPages}{literal};
CRM.$(function($) {
- cj("#crm-container .crm-pager input.form-submit").click(function () {
+ cj("#crm-container .crm-pager input.crm-form-submit").click(function () {
submitPagerData(this);
});
});
{ts 1=$display_name 2=$email}Are you sure you want to resubscribe: %1 (%2){/ts}
<br/>
<center>
-<input type="submit" name="_qf_resubscribe_next" value="{ts}Resubscribe{/ts}" class="form-submit" />
+<input type="submit" name="_qf_resubscribe_next" value="{ts}Resubscribe{/ts}" class="crm-form-submit" />
-<input type="submit" name="_qf_resubscribe_cancel" value="{ts}Cancel{/ts}" class="form-submit" />
+<input type="submit" name="_qf_resubscribe_cancel" value="{ts}Cancel{/ts}" class="crm-form-submit" />
</center>
</form>
</div>
params.autoClose = params.openInline = params.cancelButton = params.refreshAction = false;
ui.panel.on('crmFormLoad', function() {
// Hack: "Save and done" and "Cancel" buttons submit without ajax
- $('.cancel.form-submit, input[name$=upload_done]', this).on('click', function(e) {
+ $('.cancel.crm-form-submit, input[name$=upload_done]', this).on('click', function(e) {
$(this).closest('form').ajaxFormUnbind();
})
});
<input type="text" id="sort_contact_id" style="display: none" />
<input type="hidden" name="hidden_location" value="1" />
<input type="hidden" name="qfKey" value="{crmKey name='CRM_Contact_Controller_Search' addSequence=1}" />
- <div style="height:1px; overflow:hidden;"><input type="submit" value="{ts}Go{/ts}" name="_qf_Advanced_refresh" class="form-submit default" /></div>
+ <div style="height:1px; overflow:hidden;"><input type="submit" value="{ts}Go{/ts}" name="_qf_Advanced_refresh" class="crm-form-submit default" /></div>
</div>
</form>
<ul>
<p>{ts}Click 'Upgrade Now' if you are ready to proceed. Otherwise click 'Cancel' to return to the CiviCRM home page.{/ts}</p>
<input type="hidden" name="action" value="begin" />
<input type="submit" value="{ts}Upgrade Now{/ts}" name="upgrade" onclick="return confirm('{ts escape="js"}Are you sure you are ready to upgrade now?{/ts}');" />
- <a class="button cancel form-submit" value="{ts}Cancel{/ts}" href="{$cancelURL}">{ts}Cancel{/ts}</a>
+ <a class="button cancel crm-form-submit" value="{ts}Cancel{/ts}" href="{$cancelURL}">{ts}Cancel{/ts}</a>
</form>
</div>
$this->openCiviPage('case', 'reset=1', 'css=a.button');
// Click on find my cases and check if right radio is checked
- $this->clickLink("name=find_my_cases", "css=input.form-submit");
+ $this->clickLink("name=find_my_cases", "css=input.crm-form-submit");
$this->assertTrue($this->isChecked("name=case_owner value=2"), 'Find my cases button not properly setting search form value to my cases.');
// Go back to dashboard
$this->openCivipage('case', 'reset=1', 'css=a.button');
// Click on a drilldown cell and check if right radio is checked
- $this->clickLink("css=a.crm-case-summary-drilldown", "css=input.form-submit");
+ $this->clickLink("css=a.crm-case-summary-drilldown", "css=input.crm-form-submit");
$this->assertTrue($this->isChecked("name=case_owner value=1"), 'Drilldown on dashboard summary cells not properly setting search form value to all cases.');
// Go back to dashboard and reset to my cases
$this->clickLink("name=allupcoming value=0", "css=a.button");
// Click on a drilldown cell and check if right radio is checked
- $this->clickLink("css=a.crm-case-summary-drilldown", "css=input.form-submit");
+ $this->clickLink("css=a.crm-case-summary-drilldown", "css=input.crm-form-submit");
$this->assertTrue($this->isChecked("name=case_owner value=2"), 'Drilldown on dashboard summary cells not properly setting search form value to my cases.');
}
}
break;
}
}
- $this->click("css=#$block input.form-submit");
+ $this->click("css=#$block input.crm-form-submit");
if ($valid !== 'error') {
// Verify the form saved
$this->waitForElementPresent("css=#$block > .crm-inline-block-content");
// Justification for this instance: FIXME
sleep(3);
$this->click("//div[@id='custom--table-wrapper']/div/div/table/tbody/tr/td[3]/span/a[text()='Edit']");
- $this->waitForElementPresent("xpath=//div[@class='ui-dialog-content ui-widget-content modal-dialog crm-ajax-container']/form/div[2]//div[@id='crm-profile-block']//div[@class='crm-submit-buttons']/span/input[@class='validate form-submit default crm-form-submit']");
+ $this->waitForElementPresent("xpath=//div[@class='ui-dialog-content ui-widget-content modal-dialog crm-ajax-container']/form/div[2]//div[@id='crm-profile-block']//div[@class='crm-submit-buttons']/span/input[@class='validate crm-form-submit default crm-form-submit']");
$this->verifyText("//div[@id='custom--table-wrapper']/div/div/table/thead/tr/th[1]", preg_quote($params['textFieldLabel']));
$this->type("//div[@id='crm-profile-block']/div/div[2]/input[@class='crm-form-text required']", $recordNew['text'].'edit');
- $this->click("xpath=//div[@class='ui-dialog-content ui-widget-content modal-dialog crm-ajax-container']/form/div[2]//div[@id='crm-profile-block']//div[@class='crm-submit-buttons']/span/input[@class='validate form-submit default crm-form-submit']");
+ $this->click("xpath=//div[@class='ui-dialog-content ui-widget-content modal-dialog crm-ajax-container']/form/div[2]//div[@id='crm-profile-block']//div[@class='crm-submit-buttons']/span/input[@class='validate crm-form-submit default crm-form-submit']");
$this->waitForText("//div[@id='custom--table-wrapper']/div/div/table/tbody/tr[1]/td[1]", $recordNew['text'].'edit');
$editalertText = $this->getAlert();
$this->assertEquals("Thank you. Your information has been saved.", $editalertText);
$this->type('email-Primary', $params['email']);
$this->waitForElementPresent("//div[@id='crm-profile-block']//div/div[2]/select");
$this->select("//div[@id='crm-profile-block']//div/div[2]/select",'value=1');
- $this->click("xpath=//div[@id='crm-profile-block']//div[@class='crm-submit-buttons']/span/input[@class='validate form-submit default crm-form-submit']");
+ $this->click("xpath=//div[@id='crm-profile-block']//div[@class='crm-submit-buttons']/span/input[@class='validate crm-form-submit default crm-form-submit']");
}
else {
$this->waitForElementPresent("//div[@id='crm-profile-block']//div/div[2]/select");
$this->select("//div[@id='crm-profile-block']//div/div[2]/select",'value=1');
- $this->click("xpath=//div[@class='ui-dialog-content ui-widget-content modal-dialog crm-ajax-container']/form/div[2]//div[@id='crm-profile-block']//div[@class='crm-submit-buttons']/span/input[@class='validate form-submit default crm-form-submit']");
+ $this->click("xpath=//div[@class='ui-dialog-content ui-widget-content modal-dialog crm-ajax-container']/form/div[2]//div[@id='crm-profile-block']//div[@class='crm-submit-buttons']/span/input[@class='validate crm-form-submit default crm-form-submit']");
}
return $params;
}