Skip to content

Commit 5c5813a

Browse files
committed
Added class for submit button
1 parent 28384b5 commit 5c5813a

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

forms/fielditem.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888
showon="type!:hidden"
8989
name="width"
9090
type="list"
91+
default="12"
9192
label="MOD_JDSCF_WIDTH_LBL"
9293
description="MOD_JDSCF_WIDTH_DESC"
9394
>

layouts/fields/submit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
$buttonClass = $params->get('submitclass', 'btn-primary');
1313
$buttonWidth = $params->get('submit_btn_width', '12');
1414
?>
15-
<div class="jdscf-col-md-<?php echo $buttonWidth ?>">
15+
<div class="jdscf-submit-btn jdscf-col-md-<?php echo $buttonWidth ?>">
1616
<button type="submit" class="btn<?php echo!empty($buttonClass) ? ' ' . $buttonClass : ''; ?> btn-block"><?php echo JText::_($buttonText); ?></button>
1717
</div>

mod_jdsimplecontactform.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@
9595
<field
9696
name="submit_btn_width"
9797
type="list"
98+
default="12"
9899
label="MOD_JDSCF_SUBMIT_WIDTH_LBL"
99100
description="MOD_JDSCF_SUBMIT_WIDTH_DESC"
100101
>

0 commit comments

Comments
 (0)