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
82a54c66
Commit
82a54c66
authored
11 years ago
by
Andie Hunt
Browse files
Options
Downloads
Patches
Plain Diff
allow toggle back to current/future events
parent
18eaa61b
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/Event/Form/Participant.tpl
+21
-10
21 additions, 10 deletions
templates/CRM/Event/Form/Participant.tpl
with
21 additions
and
10 deletions
templates/CRM/Event/Form/Participant.tpl
+
21
−
10
View file @
82a54c66
...
...
@@ -216,10 +216,8 @@
{/
if
}
<tr
class=
"crm-participant-form-block-event_id"
>
<td
class=
"label"
>
{
$form.event_id.label
}
</td><td
class=
"view-value bold"
>
{
$form.event_id.html
}
{
if
$action
eq
1
&&
$past
neq
1
}
<span
id=
'past-event-section'
>
<br
/>
»
{
ts
}
Include past event(s) in this select list:
{/
ts
}
{
if
!
$past
}
<a
href=
"#"
onclick=
"buildSelect('event_id', 2); return false;"
class=
'3-mo-past-event'
>
{
ts
}
past three months
{/
ts
}
</a>
<span
class=
'3-mo-past-event'
>
|
</span>
{/
if
}
<a
href=
"#"
onclick=
"buildSelect('event_id', 1); return false;"
>
{
ts
}
all
{/
ts
}
</a></span>
{
if
$action
eq
1
}
<span
id=
'past-event-section'
>
<br
/>
»
<span
id=
"showing-event-info"
></span>
{/
if
}
{
if
$is_test
}
{
ts
}
(test)
{/
ts
}
...
...
@@ -295,16 +293,29 @@
for
(
i
=
0
;
i
<
response
.
length
;
i
++
)
{
cj
(
elementID
).
get
(
0
).
add
(
new
Option
(
response
[
i
].
name
,
response
[
i
].
value
),
document
.
all
?
i
:
null
);
}
if
(
listallVal
==
1
)
{
cj
(
'
#past-event-section
'
).
hide
(
);
}
else
{
cj
(
'
.3-mo-past-event
'
).
hide
(
);
}
getShowEventInfo
(
listallVal
);
cj
(
'
input[name="past_event"]
'
).
val
(
listallVal
);
cj
(
"
#feeBlock
"
).
html
(
''
);
});
}
{/
literal
}
{
if
$action
eq
1
}
getShowEventInfo
(
{
$past
}
);
{/
if
}
{
literal
}
function
getShowEventInfo
(
listallVal
)
{
switch
(
listallVal
)
{
case
1
:
cj
(
'
#showing-event-info
'
).
html
(
{/
literal
}
'
{
ts
}
Showing all events: show
{/
ts
}
'
{
literal
}
+
'
<a href="#" onclick="buildSelect(
\'
event_id
\'
, 0); return false;">
'
+
{/
literal
}
'
{
ts
}
current and future
{/
ts
}
'
{
literal
}
+
'
</a> | <a href="#" onclick="buildSelect(
\'
event_id
\'
, 2); return false;">
'
+
{/
literal
}
'
{
ts
}
past three months
{/
ts
}
'
{
literal
}
+
'
</a>
'
);
break
;
case
2
:
cj
(
'
#showing-event-info
'
).
html
(
{/
literal
}
'
{
ts
}
Showing events since three months ago: show
{/
ts
}
'
{
literal
}
+
'
<a href="#" onclick="buildSelect(
\'
event_id
\'
, 0); return false;">
'
+
{/
literal
}
'
{
ts
}
current and future
{/
ts
}
'
{
literal
}
+
'
</a> | <a href="#" onclick="buildSelect(
\'
event_id
\'
, 1); return false;">
'
+
{/
literal
}
'
{
ts
}
all
{/
ts
}
'
{
literal
}
+
'
</a>
'
);
break
;
default
:
cj
(
'
#showing-event-info
'
).
html
(
{/
literal
}
'
{
ts
}
Showing current and future events: show
{/
ts
}
'
{
literal
}
+
'
<a href="#" onclick="buildSelect(
\'
event_id
\'
, 2); return false;">
'
+
{/
literal
}
'
{
ts
}
past three months
{/
ts
}
'
{
literal
}
+
'
</a> | <a href="#" onclick="buildSelect(
\'
event_id
\'
, 1); return false;">
'
+
{/
literal
}
'
{
ts
}
all
{/
ts
}
'
{
literal
}
+
'
</a>
'
);
break
;
}
}
{/
literal
}
{
if
$preloadJSSnippet
}
...
...
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