Skip to content

Commit e75792e

Browse files
committed
Fixed Minor Issues and formatting
1 parent 8d7b1dd commit e75792e

File tree

5 files changed

+30
-29
lines changed

5 files changed

+30
-29
lines changed

language/en-GB/en-GB.mod_jdsimplecontactform.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ MOD_JDSCF_SHOW_LABEL_DESC="Select to display the label before the field."
4848
MOD_JDSCF_OPTIONS_LAYOUT_LBL="Options Layout"
4949
MOD_JDSCF_OPTIONS_LAYOUT_DESC="Select to display checkboxes and radios in vertically or stacked layout."
5050

51-
MOD_JDSCF_FORM_SUBMIT_LBL="Submit button text"
51+
MOD_JDSCF_FORM_SUBMIT_LBL="Submit Button Text"
5252
MOD_JDSCF_FORM_SUBMIT_DESC="Enter to change text for the submit button. Default is <b>Submit</b>."
5353
MOD_JDSCF_FORM_SUBMIT_DEFAULT="Submit"
5454

@@ -158,7 +158,7 @@ MOD_JDSCF_THANKYOU_MESSAGE_DESC="Enter a Thank you message to be displayed after
158158
MOD_JDSCF_REDIRECT_LBL="Redirect URL"
159159
MOD_JDSCF_REDIRECT_DESC="Enter a URL to redirect users after submission. Leave blank to if not required. (<b>You can use {field:label} & {field:value} to render dynamic values in this field</b>)"
160160

161-
MOD_JDSCF_SUBMITBTN_CLASS_LBL="Submit button class"
161+
MOD_JDSCF_SUBMITBTN_CLASS_LBL="Submit Button Class"
162162
MOD_JDSCF_SUBMITBTN_CLASS_DESC=""
163163

164164
MOD_JDSCF_UNSUPPORTED_FILE_ERROR="Unsupported Filetype"

layouts/fields/singlecc.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,7 @@
1111
$singleCCName = $params->get('singleSendCopyEmail_field', '');
1212
$singleCCTitle = $params->get('singleSendCopyEmailField_title', 'MOD_JDSCF_SINGLE_SEND_COPY_LBL_TITLE');
1313
?>
14-
<label><input type="checkbox" name="jdscf[<?php echo $singleCCName; ?>][single_cc]" value="1" /> <?php echo JText::_($singleCCTitle); ?></label>
14+
<div class="form-group form-check">
15+
<label class="form-check-label"><input type="checkbox" name="jdscf[<?php echo $singleCCName; ?>][single_cc]" value="1" />
16+
</div>
17+
<?php echo JText::_($singleCCTitle); ?></label>

layouts/fields/submit.php

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

mod_jdsimplecontactform.xml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -79,22 +79,6 @@
7979
description="MOD_JDSCF_SUBMITBTN_CLASS_DESC"
8080
default="btn-primary"
8181
/>
82-
<field
83-
name="thankyou_message"
84-
type="editor"
85-
label="MOD_JDSCF_THANKYOU_MESSAGE_LBL"
86-
description="MOD_JDSCF_THANKYOU_MESSAGE_DESC"
87-
filter="safehtml"
88-
/>
89-
<field
90-
name="redirect_url"
91-
type="url"
92-
label="MOD_JDSCF_REDIRECT_LBL"
93-
description="MOD_JDSCF_REDIRECT_DESC"
94-
/>
95-
</fieldset>
96-
<fieldset name="fields" label="MOD_JDSCF_FORM_FIELDS_OPTIONS_LBL">
97-
<field name="fields" type="subform" formsource="modules/mod_jdsimplecontactform/forms/fielditem.xml" multiple="true" label="MOD_JDSCF_FIELDS_LBL" />
9882
<field
9983
name="submit_btn_width"
10084
type="list"
@@ -112,6 +96,22 @@
11296
<option value="3">3</option>
11397
<option value="2">2</option>
11498
</field>
99+
<field
100+
name="thankyou_message"
101+
type="editor"
102+
label="MOD_JDSCF_THANKYOU_MESSAGE_LBL"
103+
description="MOD_JDSCF_THANKYOU_MESSAGE_DESC"
104+
filter="safehtml"
105+
/>
106+
<field
107+
name="redirect_url"
108+
type="url"
109+
label="MOD_JDSCF_REDIRECT_LBL"
110+
description="MOD_JDSCF_REDIRECT_DESC"
111+
/>
112+
</fieldset>
113+
<fieldset name="fields" label="MOD_JDSCF_FORM_FIELDS_OPTIONS_LBL">
114+
<field name="fields" type="subform" formsource="modules/mod_jdsimplecontactform/forms/fielditem.xml" multiple="true" label="MOD_JDSCF_FIELDS_LBL" />
115115
</fieldset>
116116
<fieldset name="email" label="MOD_JDSCF_EMAIL_OPTIONS_LBL">
117117
<field

tmpl/default.php

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,13 @@
6565
}
6666
}
6767
?>
68-
69-
<div class="form-group">
70-
<?php
71-
if($single_cc_enable) {
72-
$singleCC = new JLayoutFile('fields.singlecc', JPATH_SITE . '/modules/mod_jdsimplecontactform/layouts');
73-
echo $singleCC->render(['params' => $params]);
74-
}
75-
?>
76-
</div>
68+
69+
<?php
70+
if($single_cc_enable) {
71+
$singleCC = new JLayoutFile('fields.singlecc', JPATH_SITE . '/modules/mod_jdsimplecontactform/layouts');
72+
echo $singleCC->render(['params' => $params]);
73+
}
74+
?>
7775

7876
<?php
7977
$submit = new JLayoutFile('fields.submit', JPATH_SITE . '/modules/mod_jdsimplecontactform/layouts');

0 commit comments

Comments
 (0)