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 event_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 conten 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 the event doesn't have a finish time *}}
51 {{include file="field_checkbox.tpl" field=$nofinish}}
53 {{* checkbox for adjusting the event time to the timezone of the user *}}
54 {{include file="field_checkbox.tpl" field=$adjust}}
57 {{* checkbox to enable event sharing and the permissions tab *}}
59 {{include file="field_checkbox.tpl" field=$share}}
62 {{* The submit button - saves the event *}}
63 <div class="pull-right">
64 <button id="event-submit" type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
66 <div class="clear"></div>
69 {{* The advanced tab *}}
70 <div id="event-desc-wrapper" style="display: none">
72 {{* The textarea for the event description *}}
73 <div class="form-group">
74 <div id="event-desc-text"><b>{{$d_text}}</b></div>
75 <textarea id="comment-edit-text-desc" class="form-control text-autosize" name="desc" dir="auto">{{$d_orig}}</textarea>
76 <ul id="event-desc-text-edit-bb" class="comment-edit-bb comment-icon-list nav nav-pills hidden-xs pull-left">
77 {{* commented out because it isn't implemented yet
79 <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">
80 <i class="fa fa-picture-o"></i>
85 <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">
86 <i class="fa fa-link"></i>
90 <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">
91 <i class="fa fa-video-camera"></i>
96 <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">
97 <i class="fa fa-underline"></i>
101 <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">
102 <i class="fa fa-italic"></i>
106 <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">
107 <i class="fa fa-bold"></i>
111 <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">
112 <i class="fa fa-quote-left"></i>
116 <div class="clear"></div>
119 {{* The textarea for the event location *}}
120 <div class="form-group">
121 <div id="event-location-text"><b>{{$l_text}}</b></div>
122 <textarea id="comment-edit-text-loc" class="form-control text-autosize" name="location" dir="auto">{{$l_orig}}</textarea>
123 <ul id="comment-tools-loc" class="comment-edit-bb comment-icon-list nav nav-pills hidden-xs pull-left">
124 {{* commented out because it isn't implemented yet
126 <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">
127 <i class="fa fa-picture-o"></i>
132 <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">
133 <i class="fa fa-link"></i>
137 <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">
138 <i class="fa fa-video-camera"></i>
143 <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">
144 <i class="fa fa-underline"></i>
148 <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">
149 <i class="fa fa-italic"></i>
153 <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">
154 <i class="fa fa-bold"></i>
158 <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">
159 <i class="fa fa-quote-left"></i>
163 <div class="clear"></div>
167 {{* The tab for the permissions (if event sharing is enabled) *}}
168 <div id="event-acl-wrapper" style="display: none">
172 {{* The tab for the event preview (content is inserted by js) *}}
173 <div id="event-preview" style="display: none"></div>
175 <div class="clear"></div>
181 <script type="text/javascript">
182 $(document).ready( function() {
183 // disable finish date input if it isn't available
184 enableDisableFinishDate();
185 // load bbcode autocomplete for the description textarea
186 $('#comment-edit-text-desc, #comment-edit-text-loc').bbco_autocomplete('bbcode');
188 // initiale autosize for the textareas
189 autosize($("textarea.text-autosize"));