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 5656 </ol >
5757 { if $.User}
5858 <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 >
6061 </div >
6162 { /if }
6263
Original file line number Diff line number Diff line change @@ -76,8 +76,8 @@ public static function handleSegmentsRequest(Event $Event)
7676 'total ' => count ($ Event ->Segments )
7777 ]);
7878 }
79-
80- if ($ segmentHandle == '* create ' ) {
79+
80+ if ($ segmentHandle == '! create ' ) {
8181 return EventSegmentsRequestHandler::handleCreateRequest (EventSegment::create (['Event ' => $ Event ]));
8282 }
8383
You can’t perform that action at this time.
0 commit comments