File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
php-classes/Emergence/Events Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 56
56
</ol >
57
57
{ if $.User}
58
58
<div class =" btn-toolbar pull-right mt-1" >
59
- <a class =" btn btn-secondary" href =" { $Event -> getUrl (edit)} " >{ icon " pencil" }   ; { _ " Edit Event" } </a >
59
+ <a class =" btn btn-secondary mr-2" href =" { $Event -> getUrl (edit)} " >{ icon " pencil" }   ; { _ " Edit Event" } </a >
60
+ <a class =" btn btn-secondary" href =" { $Event -> getUrl (segments/! create)} " >{ icon " plus-square-o" }   ; { _ " Add Segment" } </a >
60
61
</div >
61
62
{ /if }
62
63
Original file line number Diff line number Diff line change @@ -76,8 +76,8 @@ public static function handleSegmentsRequest(Event $Event)
76
76
'total ' => count ($ Event ->Segments )
77
77
]);
78
78
}
79
-
80
- if ($ segmentHandle == '* create ' ) {
79
+
80
+ if ($ segmentHandle == '! create ' ) {
81
81
return EventSegmentsRequestHandler::handleCreateRequest (EventSegment::create (['Event ' => $ Event ]));
82
82
}
83
83
You can’t perform that action at this time.
0 commit comments