1 <div id="event-form-wrapper">
2 <h3 class="heading">{{$title}}</h3>
4 {{* The event edit navigation menu (text input, permissions, preview, filebrowser) *}}
5 <ul id="event-nav" class="nav nav-tabs event-nav" role="menubar" data-tabs="tabs">
6 {{* Mark the first list entry as active because it is the first which is active after opening
7 the modal. Changing of the activity status is done by js in calendar_head.tpl *}}
8 <li class="active" role="menuitem">
9 <a id="event-edit-lnk" onclick="eventEditActive(); return false;">{{$basic}}</a>
12 <a id="event-desc-lnk" onclick="eventDescActive(); return false;">{{$advanced}}</a>
15 <li role="menuitem" {{if !$sh_checked}} style="display: none"{{/if}}>
16 <a id="event-perms-lnk" onclick="eventAclActive(); return false;">{{$permissions}}</a>
21 <a id="event-preview-lnk" onclick="eventPreviewActive(); return false;">{{$preview}}</a>
24 {{* commented out because it isn't implemented yet
25 <li role="menuitem"><a id="event-preview-link" onclick="fbrowserActive(); return false;"> Browser </a></li>
29 <div id="event-edit-form-wrapper">
30 <form id="event-edit-form" action="{{$post}}" method="post">
32 <input type="hidden" name="event_id" value="{{$eid}}" />
33 <input type="hidden" name="cid" value="{{$cid}}" />
34 <input type="hidden" name="uri" value="{{$uri}}" />
35 <input type="hidden" name="preview" id="event-edit-preview" value="0" />
37 {{* The tab content with the necessary basic settings *}}
38 <div id="event-edit-wrapper">
40 {{* The event title *}}
41 {{include file="field_input.tpl" field=$summary}}
43 <div id="event-edit-time">
44 {{* The field for event starting time *}}
47 {{* The field for event finish time *}}
50 {{* checkbox if the event doesn't have a finish time *}}
51 {{include file="field_checkbox.tpl" field=$nofinish}}
54 {{* checkbox to enable event sharing and the permissions tab *}}
56 {{include file="field_checkbox.tpl" field=$share}}
59 {{* The submit button - saves the event *}}
60 <div class="pull-right">
61 <button id="event-submit" type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
63 <div class="clear"></div>
66 {{* The advanced tab *}}
67 <div id="event-desc-wrapper" style="display: none">
69 {{* The textarea for the event description *}}
70 <div class="form-group">
71 <div id="event-desc-text"><b>{{$d_text}}</b></div>
72 <textarea id="comment-edit-text-desc" class="form-control text-autosize" name="desc" dir="auto">{{$d_orig}}</textarea>
73 <ul id="event-desc-text-edit-bb" class="comment-edit-bb comment-icon-list nav nav-pills hidden-xs pull-left">
74 {{* commented out because it isn't implemented yet
76 <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">
77 <i class="fa fa-picture-o"></i>
82 <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">
83 <i class="fa fa-link"></i>
87 <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">
88 <i class="fa fa-video-camera"></i>
93 <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">
94 <i class="fa fa-underline"></i>
98 <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">
99 <i class="fa fa-italic"></i>
103 <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">
104 <i class="fa fa-bold"></i>
108 <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">
109 <i class="fa fa-quote-left"></i>
113 <div class="clear"></div>
116 {{* The textarea for the event location *}}
117 <div class="form-group">
118 <div id="event-location-text"><b>{{$l_text}}</b></div>
119 <textarea id="comment-edit-text-loc" class="form-control text-autosize" name="location" dir="auto">{{$l_orig}}</textarea>
120 <ul id="comment-tools-loc" class="comment-edit-bb comment-icon-list nav nav-pills hidden-xs pull-left">
121 {{* commented out because it isn't implemented yet
123 <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">
124 <i class="fa fa-picture-o"></i>
129 <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">
130 <i class="fa fa-link"></i>
134 <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">
135 <i class="fa fa-video-camera"></i>
140 <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">
141 <i class="fa fa-underline"></i>
145 <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">
146 <i class="fa fa-italic"></i>
150 <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">
151 <i class="fa fa-bold"></i>
155 <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">
156 <i class="fa fa-quote-left"></i>
160 <div class="clear"></div>
164 {{* The tab for the permissions (if event sharing is enabled) *}}
165 <div id="event-acl-wrapper" style="display: none">
169 {{* The tab for the event preview (content is inserted by js) *}}
170 <div id="event-preview" style="display: none"></div>
172 <div class="clear"></div>
178 <script type="text/javascript">
179 $(document).ready( function() {
180 // disable finish date input if it isn't available
181 enableDisableFinishDate();
182 // load bbcode autocomplete for the description textarea
183 $('#comment-edit-text-desc, #comment-edit-text-loc').bbco_autocomplete('bbcode');
185 // initiale autosize for the textareas
186 autosize($("textarea.text-autosize"));