2016-06-17 04:33:12 -04:00
|
|
|
<div id="event-form-wrapper">
|
|
|
|
<h3 class="heading">{{$title}}</h3>
|
|
|
|
|
|
|
|
{{* The event edit navigation menu (text input, permissions, preview, filebrowser) *}}
|
|
|
|
<ul id="event-nav" class="nav nav-tabs event-nav" role="menubar" data-tabs="tabs">
|
|
|
|
{{* Mark the first list entry as active because it is the first which is active after opening
|
2022-11-05 21:35:09 -04:00
|
|
|
the modal. Changing of the activity status is done by js in calendar_head.tpl *}}
|
2017-03-14 23:47:02 -04:00
|
|
|
<li class="active" role="menuitem">
|
2017-03-15 22:00:37 -04:00
|
|
|
<a id="event-edit-lnk" onclick="eventEditActive(); return false;">{{$basic}}</a>
|
2017-03-14 23:47:02 -04:00
|
|
|
</li>
|
|
|
|
<li role="menuitem">
|
2017-03-15 22:00:37 -04:00
|
|
|
<a id="event-desc-lnk" onclick="eventDescActive(); return false;">{{$advanced}}</a>
|
2017-03-14 23:47:02 -04:00
|
|
|
</li>
|
|
|
|
{{if $acl}}
|
|
|
|
<li role="menuitem" {{if !$sh_checked}} style="display: none"{{/if}}>
|
2017-03-15 22:00:37 -04:00
|
|
|
<a id="event-perms-lnk" onclick="eventAclActive(); return false;">{{$permissions}}</a>
|
2017-03-14 23:47:02 -04:00
|
|
|
</li>
|
|
|
|
{{/if}}
|
|
|
|
{{if $preview}}
|
|
|
|
<li role="menuitem">
|
2017-03-15 22:00:37 -04:00
|
|
|
<a id="event-preview-lnk" onclick="eventPreviewActive(); return false;">{{$preview}}</a>
|
2017-03-14 23:47:02 -04:00
|
|
|
</li>
|
|
|
|
{{/if}}
|
2016-06-17 04:33:12 -04:00
|
|
|
{{* commented out because it isn't implemented yet
|
2017-03-15 22:00:37 -04:00
|
|
|
<li role="menuitem"><a id="event-preview-link" onclick="fbrowserActive(); return false;"> Browser </a></li>
|
2016-06-17 04:33:12 -04:00
|
|
|
*}}
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<div id="event-edit-form-wrapper">
|
2019-11-28 12:42:12 -05:00
|
|
|
<form id="event-edit-form" action="{{$post}}" method="post">
|
2016-06-17 04:33:12 -04:00
|
|
|
|
|
|
|
<input type="hidden" name="event_id" value="{{$eid}}" />
|
|
|
|
<input type="hidden" name="cid" value="{{$cid}}" />
|
|
|
|
<input type="hidden" name="uri" value="{{$uri}}" />
|
|
|
|
<input type="hidden" name="preview" id="event-edit-preview" value="0" />
|
|
|
|
|
2023-03-21 23:17:13 -04:00
|
|
|
{{* The tab content with the necessary basic settings *}}
|
2016-06-17 04:33:12 -04:00
|
|
|
<div id="event-edit-wrapper">
|
|
|
|
|
2016-06-17 08:27:33 -04:00
|
|
|
{{* The event title *}}
|
2016-06-17 08:09:18 -04:00
|
|
|
{{include file="field_input.tpl" field=$summary}}
|
2016-06-17 04:33:12 -04:00
|
|
|
|
2016-06-17 08:09:18 -04:00
|
|
|
<div id="event-edit-time">
|
2016-06-17 08:27:33 -04:00
|
|
|
{{* The field for event starting time *}}
|
2018-12-14 20:42:24 -05:00
|
|
|
{{$s_dsel nofilter}}
|
2016-06-17 04:33:12 -04:00
|
|
|
|
2016-06-17 08:27:33 -04:00
|
|
|
{{* The field for event finish time *}}
|
2018-12-14 20:42:24 -05:00
|
|
|
{{$f_dsel nofilter}}
|
2016-06-17 04:33:12 -04:00
|
|
|
|
2016-06-17 08:27:33 -04:00
|
|
|
{{* checkbox if the the event doesn't have a finish time *}}
|
2016-06-17 08:09:18 -04:00
|
|
|
{{include file="field_checkbox.tpl" field=$nofinish}}
|
|
|
|
</div>
|
2016-06-17 04:33:12 -04:00
|
|
|
|
2016-06-17 08:27:33 -04:00
|
|
|
{{* checkbox to enable event sharing and the permissions tab *}}
|
2016-06-17 08:09:18 -04:00
|
|
|
{{if ! $eid}}
|
|
|
|
{{include file="field_checkbox.tpl" field=$share}}
|
|
|
|
{{/if}}
|
|
|
|
|
2016-06-17 08:27:33 -04:00
|
|
|
{{* The submit button - saves the event *}}
|
2021-05-19 17:47:15 -04:00
|
|
|
<div class="pull-right">
|
2018-12-13 22:28:12 -05:00
|
|
|
<button id="event-submit" type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
|
2016-06-17 08:09:18 -04:00
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</div>
|
|
|
|
|
2016-06-17 08:27:33 -04:00
|
|
|
{{* The advanced tab *}}
|
2016-06-17 08:09:18 -04:00
|
|
|
<div id="event-desc-wrapper" style="display: none">
|
2016-06-17 04:33:12 -04:00
|
|
|
|
2016-06-17 08:27:33 -04:00
|
|
|
{{* The textarea for the event description *}}
|
2016-06-17 04:33:12 -04:00
|
|
|
<div class="form-group">
|
|
|
|
<div id="event-desc-text"><b>{{$d_text}}</b></div>
|
2021-05-20 08:37:45 -04:00
|
|
|
<textarea id="comment-edit-text-desc" class="form-control text-autosize" name="desc" dir="auto">{{$d_orig}}</textarea>
|
2016-06-17 04:33:12 -04:00
|
|
|
<ul id="event-desc-text-edit-bb" class="comment-edit-bb comment-icon-list nav nav-pills hidden-xs pull-left">
|
|
|
|
{{* commented out because it isn't implemented yet
|
|
|
|
<li>
|
2018-12-13 22:28:12 -05:00
|
|
|
<button type="button" class="btn-link icon bb-img" style="cursor: pointer;" title="{{$edimg}}" data-role="insert-formatting" data-comment=" " data-bbcode="img" data-id="desc">
|
2016-06-17 04:33:12 -04:00
|
|
|
<i class="fa fa-picture-o"></i>
|
2017-03-14 23:47:02 -04:00
|
|
|
</button>
|
2016-06-17 04:33:12 -04:00
|
|
|
</li>
|
|
|
|
*}}
|
|
|
|
<li>
|
2018-12-13 22:28:12 -05:00
|
|
|
<button type="button" class="btn-link icon bb-url" style="cursor: pointer;" title="{{$edurl}}" data-role="insert-formatting" data-comment=" " data-bbcode="url" data-id="desc">
|
2016-06-17 04:33:12 -04:00
|
|
|
<i class="fa fa-link"></i>
|
2017-03-14 23:47:02 -04:00
|
|
|
</button>
|
2016-06-17 04:33:12 -04:00
|
|
|
</li>
|
|
|
|
<li>
|
2018-12-13 22:28:12 -05:00
|
|
|
<button type="button" class="btn-link icon bb-video" style="cursor: pointer;" title="{{$edvideo}}" data-role="insert-formatting" data-comment=" " data-bbcode="video" data-id="desc">
|
2016-06-17 04:33:12 -04:00
|
|
|
<i class="fa fa-video-camera"></i>
|
2017-03-14 23:47:02 -04:00
|
|
|
</button>
|
2016-06-17 04:33:12 -04:00
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
2018-12-13 22:28:12 -05:00
|
|
|
<button type="button" class="btn-link icon underline" style="cursor: pointer;" title="{{$eduline}}" data-role="insert-formatting" data-comment=" " data-bbcode="u" data-id="desc">
|
2016-06-17 04:33:12 -04:00
|
|
|
<i class="fa fa-underline"></i>
|
2017-03-14 23:47:02 -04:00
|
|
|
</button>
|
2016-06-17 04:33:12 -04:00
|
|
|
</li>
|
|
|
|
<li>
|
2018-12-13 22:28:12 -05:00
|
|
|
<button type="button" class="btn-link icon italic" style="cursor: pointer;" title="{{$editalic}}" data-role="insert-formatting" data-comment=" " data-bbcode="i" data-id="desc">
|
2016-06-17 04:33:12 -04:00
|
|
|
<i class="fa fa-italic"></i>
|
2017-03-14 23:47:02 -04:00
|
|
|
</button>
|
2016-06-17 04:33:12 -04:00
|
|
|
</li>
|
|
|
|
<li>
|
2018-12-13 22:28:12 -05:00
|
|
|
<button type="button" class="btn-link icon bold" style="cursor: pointer;" title="{{$edbold}}" data-role="insert-formatting" data-comment=" " data-bbcode="b" data-id="desc">
|
2016-06-17 04:33:12 -04:00
|
|
|
<i class="fa fa-bold"></i>
|
2017-03-14 23:47:02 -04:00
|
|
|
</button>
|
2016-06-17 04:33:12 -04:00
|
|
|
</li>
|
|
|
|
<li>
|
2018-12-13 22:28:12 -05:00
|
|
|
<button type="button" class="btn-link icon quote" style="cursor: pointer;" title="{{$edquote}}" data-role="insert-formatting" data-comment=" " data-bbcode="quote" data-id="desc">
|
2016-06-17 04:33:12 -04:00
|
|
|
<i class="fa fa-quote-left"></i>
|
2017-03-14 23:47:02 -04:00
|
|
|
</button>
|
2016-06-17 04:33:12 -04:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</div>
|
|
|
|
|
2016-06-17 08:27:33 -04:00
|
|
|
{{* The textarea for the event location *}}
|
2016-06-17 04:33:12 -04:00
|
|
|
<div class="form-group">
|
|
|
|
<div id="event-location-text"><b>{{$l_text}}</b></div>
|
2021-05-20 08:37:45 -04:00
|
|
|
<textarea id="comment-edit-text-loc" class="form-control text-autosize" name="location" dir="auto">{{$l_orig}}</textarea>
|
2016-06-17 04:33:12 -04:00
|
|
|
<ul id="comment-tools-loc" class="comment-edit-bb comment-icon-list nav nav-pills hidden-xs pull-left">
|
|
|
|
{{* commented out because it isn't implemented yet
|
|
|
|
<li>
|
2018-12-13 22:28:12 -05:00
|
|
|
<button type="button" class="btn-link icon bb-img" style="cursor: pointer;" title="{{$edimg}}" data-role="insert-formatting" data-comment=" " data-bbcode="img" data-id="loc">
|
2016-06-17 04:33:12 -04:00
|
|
|
<i class="fa fa-picture-o"></i>
|
2017-03-14 23:47:02 -04:00
|
|
|
</button>
|
2016-06-17 04:33:12 -04:00
|
|
|
</li>
|
|
|
|
*}}
|
|
|
|
<li>
|
2018-12-13 22:28:12 -05:00
|
|
|
<button type="button" class="btn-link icon bb-url" style="cursor: pointer;" title="{{$edurl}}" data-role="insert-formatting" data-comment=" " data-bbcode="url" data-id="loc">
|
2016-06-17 04:33:12 -04:00
|
|
|
<i class="fa fa-link"></i>
|
2017-03-14 23:47:02 -04:00
|
|
|
</button>
|
2016-06-17 04:33:12 -04:00
|
|
|
</li>
|
|
|
|
<li>
|
2018-12-13 22:28:12 -05:00
|
|
|
<button type="button" class="btn-link icon bb-video" style="cursor: pointer;" title="{{$edvideo}}" data-role="insert-formatting" data-comment=" " data-bbcode="video" data-id="loc">
|
2016-06-17 04:33:12 -04:00
|
|
|
<i class="fa fa-video-camera"></i>
|
2017-03-14 23:47:02 -04:00
|
|
|
</button>
|
2016-06-17 04:33:12 -04:00
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
2018-12-13 22:28:12 -05:00
|
|
|
<button type="button" class="btn-link icon underline" style="cursor: pointer;" title="{{$eduline}}" data-role="insert-formatting" data-comment=" " data-bbcode="u" data-id="loc">
|
2016-06-17 04:33:12 -04:00
|
|
|
<i class="fa fa-underline"></i>
|
2017-03-14 23:47:02 -04:00
|
|
|
</button>
|
2016-06-17 04:33:12 -04:00
|
|
|
</li>
|
|
|
|
<li>
|
2018-12-13 22:28:12 -05:00
|
|
|
<button type="button" class="btn-link icon italic" style="cursor: pointer;" title="{{$editalic}}" data-role="insert-formatting" data-comment=" " data-bbcode="i" data-id="loc">
|
2016-06-17 04:33:12 -04:00
|
|
|
<i class="fa fa-italic"></i>
|
2017-03-14 23:47:02 -04:00
|
|
|
</button>
|
2016-06-17 04:33:12 -04:00
|
|
|
</li>
|
|
|
|
<li>
|
2018-12-13 22:28:12 -05:00
|
|
|
<button type="button" class="btn-link icon bold" style="cursor: pointer;" title="{{$edbold}}" data-role="insert-formatting" data-comment=" " data-bbcode="b" data-id="loc">
|
2016-06-17 04:33:12 -04:00
|
|
|
<i class="fa fa-bold"></i>
|
2017-03-14 23:47:02 -04:00
|
|
|
</button>
|
2016-06-17 04:33:12 -04:00
|
|
|
</li>
|
|
|
|
<li>
|
2018-12-13 22:28:12 -05:00
|
|
|
<button type="button" class="btn-link icon quote" style="cursor: pointer;" title="{{$edquote}}" data-role="insert-formatting" data-comment=" " data-bbcode="quote" data-id="loc">
|
2016-06-17 04:33:12 -04:00
|
|
|
<i class="fa fa-quote-left"></i>
|
2017-03-14 23:47:02 -04:00
|
|
|
</button>
|
2016-06-17 04:33:12 -04:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</div>
|
2016-06-16 14:16:16 -04:00
|
|
|
</div>
|
|
|
|
|
2016-06-17 08:27:33 -04:00
|
|
|
{{* The tab for the permissions (if event sharing is enabled) *}}
|
2016-06-17 04:33:12 -04:00
|
|
|
<div id="event-acl-wrapper" style="display: none">
|
2018-12-14 20:42:24 -05:00
|
|
|
{{$acl nofilter}}
|
2016-06-16 14:16:16 -04:00
|
|
|
</div>
|
|
|
|
|
2016-06-17 08:27:33 -04:00
|
|
|
{{* The tab for the event preview (content is inserted by js) *}}
|
2016-06-17 04:33:12 -04:00
|
|
|
<div id="event-preview" style="display: none"></div>
|
2016-06-16 14:16:16 -04:00
|
|
|
|
2016-06-17 04:33:12 -04:00
|
|
|
<div class="clear"></div>
|
2016-06-16 14:16:16 -04:00
|
|
|
|
2016-06-17 04:33:12 -04:00
|
|
|
</form>
|
2016-06-16 14:16:16 -04:00
|
|
|
</div>
|
2016-06-17 04:33:12 -04:00
|
|
|
</div>
|
|
|
|
|
2017-10-20 09:21:42 -04:00
|
|
|
<script type="text/javascript">
|
2016-06-17 04:33:12 -04:00
|
|
|
$(document).ready( function() {
|
|
|
|
// disable finish date input if it isn't available
|
|
|
|
enableDisableFinishDate();
|
|
|
|
// load bbcode autocomplete for the description textarea
|
|
|
|
$('#comment-edit-text-desc, #comment-edit-text-loc').bbco_autocomplete('bbcode');
|
2016-08-23 10:48:13 -04:00
|
|
|
|
|
|
|
// initiale autosize for the textareas
|
|
|
|
autosize($("textarea.text-autosize"));
|
2016-06-17 04:33:12 -04:00
|
|
|
});
|
2017-10-20 09:21:42 -04:00
|
|
|
</script>
|