Skip to content

Commit d58a873

Browse files
feat: add Summary field for segments
1 parent 52de1e2 commit d58a873

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

html-templates/events/eventSegmentEdit.tpl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,15 @@
8484
<input type="text" name="LocationAddress" id="field-location-address" class="form-control" placeholder="908 N 3rd St, Philadelphia PA" value="{refill field=LocationAddress default=$Segment->LocationAddress}"/>
8585
</div>
8686

87+
<div class="form-group">
88+
<label for="field-summary">{_ 'Summary(.md)'}</label>
89+
<div class="controls">
90+
<textarea name="Summary" class="form-control" rows="10">{refill field=Summary default=$Event->Summary}</textarea>
91+
<small class="form-text text-muted">
92+
If provided, a summary will be shown directly under this event segment in the full schedule. Keep it short and sweet!
93+
</small>
94+
</div>
95+
</div>
8796
<div class="form-group">
8897
<label for="field-description">{_ 'Description(.md)'}</label>
8998
<div class="controls">

php-classes/Emergence/Events/EventSegment.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ class EventSegment extends \VersionedRecord
3333
'type' => 'string',
3434
'default' => null
3535
],
36+
'Summary' => [
37+
'type' => 'clob',
38+
'default' => null
39+
],
3640
'Description' => [
3741
'type' => 'clob',
3842
'default' => null

0 commit comments

Comments
 (0)