Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
justinfreeman (Agileware)
Core
Commits
e5235d2e
Commit
e5235d2e
authored
11 years ago
by
Kurund Jalmi
Browse files
Options
Downloads
Plain Diff
Merge pull request #895 from kurund/CRM-12709
CRM-12709 fixed display of formatting field in profile
parents
6fcc66ec
749d2d1a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
templates/CRM/Profile/Form/Dynamic.tpl
+11
-10
11 additions, 10 deletions
templates/CRM/Profile/Form/Dynamic.tpl
templates/CRM/UF/Form/Preview.tpl
+4
-6
4 additions, 6 deletions
templates/CRM/UF/Form/Preview.tpl
with
15 additions
and
16 deletions
templates/CRM/Profile/Form/Dynamic.tpl
+
11
−
10
View file @
e5235d2e
...
...
@@ -118,6 +118,17 @@ function proccessMultiRecordForm(formData, jqForm, options) {
{/
if
}
{
assign
var
=
"profileID"
value
=
$field.group_id
}
{
assign
var
=
n
value
=
$field.name
}
{
if
$field.groupTitle
!=
$fieldset
}
{
if
$mode
neq
8
&&
$mode
neq
4
}
<div
{
if
$context
neq
'dialog'
}
id=
"profilewrap
{
$field.group_id
}
"
{/
if
}
>
<fieldset><legend>
{
$field.groupTitle
}
</legend>
{/
if
}
{
assign
var
=
fieldset
value
=
`
$field.groupTitle
`
}
{
assign
var
=
groupHelpPost
value
=
`
$field.groupHelpPost
`
}
{
if
$field.groupHelpPre
}
<div
class=
"messages help"
>
{
$field.groupHelpPre
}
</div>
{/
if
}
{/
if
}
{
if
$field.field_type
eq
"Formatting"
}
{
$field.help_pre
}
{
elseif
$n
}
...
...
@@ -132,16 +143,6 @@ function proccessMultiRecordForm(formData, jqForm, options) {
</div>
{/
if
}
{/
if
}
{
if
$mode
neq
8
&&
$mode
neq
4
}
<div
{
if
$context
neq
'dialog'
}
id=
"profilewrap
{
$field.group_id
}
"
{/
if
}
>
<fieldset><legend>
{
$field.groupTitle
}
</legend>
{/
if
}
{
assign
var
=
fieldset
value
=
`
$field.groupTitle
`
}
{
assign
var
=
groupHelpPost
value
=
`
$field.groupHelpPost
`
}
{
if
$field.groupHelpPre
}
<div
class=
"messages help"
>
{
$field.groupHelpPre
}
</div>
{/
if
}
<div
class=
"form-layout-compressed"
>
{/
if
}
{
if
$field.help_pre
&&
$action
neq
4
&&
$form
.
$n.html
}
...
...
This diff is collapsed.
Click to expand it.
templates/CRM/UF/Form/Preview.tpl
+
4
−
6
View file @
e5235d2e
...
...
@@ -46,10 +46,6 @@
{
if
$field.skipDisplay
}
{
continue
}
{/
if
}
{
if
$field.field_type
eq
"Formatting"
}
{
$field.help_pre
}
{
continue
}
{/
if
}
{
if
$field.groupTitle
!=
$fieldset
}
{
if
$fieldset
!=
$zeroField
}
</table>
...
...
@@ -71,11 +67,13 @@
<table
class=
"form-layout-compressed"
id=
"table-1"
>
{/
if
}
{* Show explanatory text for field if not in 'view' mode *}
{
if
$field.help_pre
&&
$action
neq
4
}
{
if
$field.help_pre
&&
$action
neq
4
&&
$field.field_type
neq
"Formatting"
}
<tr><td>
</td><td
class=
"description"
>
{
$field.help_pre
}
</td></tr>
{/
if
}
{
assign
var
=
n
value
=
$field.name
}
{
if
$field.options_per_line
}
{
if
$field.field_type
eq
"Formatting"
}
<tr><td
colspan=
"2"
>
{
$field.help_pre
}
</td></tr>
{
elseif
$field.options_per_line
}
<tr>
<td
class=
"option-label"
>
{
$form
.
$n.label
}
</td>
<td>
...
...
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