Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CiviCRM Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
CiviCRM Core
Commits
029e030d
Commit
029e030d
authored
6 years ago
by
mattwire
Browse files
Options
Downloads
Patches
Plain Diff
Whitespace formatting for formButtons.tpl
parent
c1c1e89c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/CRM/common/formButtons.tpl
+22
-22
22 additions, 22 deletions
templates/CRM/common/formButtons.tpl
with
22 additions
and
22 deletions
templates/CRM/common/formButtons.tpl
+
22
−
22
View file @
029e030d
...
...
@@ -28,27 +28,27 @@
by button and name. crmBtnType grabs type keyword from button name (e.g. 'upload', 'next', 'back', 'cancel') so
types of buttons can be styled differently via css. *}
{
crmRegion
name
=
'form-buttons'
}
{
foreach
from
=
$form.buttons
item
=
button
key
=
key
name
=
btns
}
{
if
$key
|
substring
:
0
:
4
EQ
'_qf_'
}
{
if
$location
}
{
assign
var
=
'html'
value
=
$form.buttons
.
$key.html
|
crmReplace
:
id
:
"$key-$location"
}
{
else
}
{
assign
var
=
'html'
value
=
$form.buttons
.
$key.html
}
{/
if
}
{
crmGetAttribute
html
=
$html
attr
=
'crm-icon'
assign
=
'icon'
}
{
capture
assign
=
iconPrefix
}{
$icon
|
truncate
:
3
:
""
:
true
}{/
capture
}
{
if
$icon
&&
$iconPrefix
eq
'fa-'
}
{
assign
var
=
'buttonClass'
value
=
' crm-i-button'
}
{
capture
assign
=
iconDisp
}
<i
class=
"crm-i
{
$icon
}
"
></i>
{/
capture
}
{
elseif
$icon
}
{
assign
var
=
'buttonClass'
value
=
' crm-icon-button'
}
{
capture
assign
=
iconDisp
}
<span
class=
"crm-button-icon ui-icon-
{
$icon
}
"
>
</span>
{/
capture
}
{/
if
}
{
crmGetAttribute
html
=
$html
attr
=
'disabled'
assign
=
'disabled'
}
<span
class=
"crm-button crm-button-type-
{
$key
|
crmBtnType
}
crm-button
{
$key
}{
$buttonClass
}{
if
$disabled
}
crm-button-disabled
{/
if
}
"
{
if
$buttonStyle
}
style=
"
{
$buttonStyle
}
"
{/
if
}
>
{
$iconDisp
}
{
$html
}
</span>
{
foreach
from
=
$form.buttons
item
=
button
key
=
key
name
=
btns
}
{
if
$key
|
substring
:
0
:
4
EQ
'_qf_'
}
{
if
$location
}
{
assign
var
=
'html'
value
=
$form.buttons
.
$key.html
|
crmReplace
:
id
:
"$key-$location"
}
{
else
}
{
assign
var
=
'html'
value
=
$form.buttons
.
$key.html
}
{/
if
}
{/
foreach
}
{
crmGetAttribute
html
=
$html
attr
=
'crm-icon'
assign
=
'icon'
}
{
capture
assign
=
iconPrefix
}{
$icon
|
truncate
:
3
:
""
:
true
}{/
capture
}
{
if
$icon
&&
$iconPrefix
eq
'fa-'
}
{
assign
var
=
'buttonClass'
value
=
' crm-i-button'
}
{
capture
assign
=
iconDisp
}
<i
class=
"crm-i
{
$icon
}
"
></i>
{/
capture
}
{
elseif
$icon
}
{
assign
var
=
'buttonClass'
value
=
' crm-icon-button'
}
{
capture
assign
=
iconDisp
}
<span
class=
"crm-button-icon ui-icon-
{
$icon
}
"
>
</span>
{/
capture
}
{/
if
}
{
crmGetAttribute
html
=
$html
attr
=
'disabled'
assign
=
'disabled'
}
<span
class=
"crm-button crm-button-type-
{
$key
|
crmBtnType
}
crm-button
{
$key
}{
$buttonClass
}{
if
$disabled
}
crm-button-disabled
{/
if
}
"
{
if
$buttonStyle
}
style=
"
{
$buttonStyle
}
"
{/
if
}
>
{
$iconDisp
}
{
$html
}
</span>
{/
if
}
{/
foreach
}
{/
crmRegion
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment