+ <div id="event-edit-form-wrapper">
+ <form id="event-edit-form" action="{{$post}}" method="post" data-allow_cid="{{$allow_cid}}" data-allow_gid="{{$allow_gid}}" data-deny_cid="{{$deny_cid}}" data-deny_gid="{{$deny_gid}}">
+
+ <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" />
+
+ {{* The tab conten with the necessary basic settings *}}
+ <div id="event-edit-wrapper">
+
+ {{* The event title *}}
+ {{include file="field_input.tpl" field=$summary}}
+
+ <div id="event-edit-time">
+ {{* The field for event starting time *}}
+ {{$s_dsel}}
+
+ {{* The field for event finish time *}}
+ {{$f_dsel}}
+
+ {{* checkbox if the the event doesn't have a finish time *}}
+ {{include file="field_checkbox.tpl" field=$nofinish}}
+
+ {{* checkbox for adjusting the event time to the timezone of the user *}}
+ {{include file="field_checkbox.tpl" field=$adjust}}
+ </div>
+
+ {{* checkbox to enable event sharing and the permissions tab *}}
+ {{if ! $eid}}
+ {{include file="field_checkbox.tpl" field=$share}}
+ {{/if}}
+
+ {{* The submit button - saves the event *}}
+ <div class="pull-right" >
+ <button id="event-submit" type="submit" name="submit" class="btn btn-primary" value="{{$submit|escape:'html'}}">{{$submit}}</button>
+ </div>
+ <div class="clear"></div>
+ </div>
+
+ {{* The advanced tab *}}
+ <div id="event-desc-wrapper" style="display: none">
+
+ {{* The textarea for the event description *}}
+ <div class="form-group">
+ <div id="event-desc-text"><b>{{$d_text}}</b></div>
+ <textarea id="comment-edit-text-desc" class="form-control text-autosize" name="desc" >{{$d_orig}}</textarea>
+ <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>
+ <button type="button" class="btn-link icon" style="cursor: pointer;" title="{{$edimg|escape:'html'}}" data-role="insert-formatting" data-comment=" " data-bbcode="img" data-id="desc">
+ <i class="fa fa-picture-o"></i>
+ </button>
+ </li>
+ *}}
+ <li>
+ <button type="button" class="btn-link icon bb-url" style="cursor: pointer;" title="{{$edurl|escape:'html'}}" data-role="insert-formatting" data-comment=" " data-bbcode="url" data-id="desc">
+ <i class="fa fa-link"></i>
+ </button>
+ </li>
+ <li>
+ <button type="button" class="btn-link icon bb-video" style="cursor: pointer;" title="{{$edvideo|escape:'html'}}" data-role="insert-formatting" data-comment=" " data-bbcode="video" data-id="desc">
+ <i class="fa fa-video-camera"></i>
+ </button>
+ </li>
+
+ <li>
+ <button type="button" class="btn-link icon underline" style="cursor: pointer;" title="{{$eduline|escape:'html'}}" data-role="insert-formatting" data-comment=" " data-bbcode="u" data-id="desc">
+ <i class="fa fa-underline"></i>
+ </button>
+ </li>
+ <li>
+ <button type="button" class="btn-link icon italic" style="cursor: pointer;" title="{{$editalic|escape:'html'}}" data-role="insert-formatting" data-comment=" " data-bbcode="i" data-id="desc">
+ <i class="fa fa-italic"></i>
+ </button>
+ </li>
+ <li>
+ <button type="button" class="btn-link icon bold" style="cursor: pointer;" title="{{$edbold|escape:'html'}}" data-role="insert-formatting" data-comment=" " data-bbcode="b" data-id="desc">
+ <i class="fa fa-bold"></i>
+ </button>
+ </li>
+ <li>
+ <button type="button" class="btn-link icon quote" style="cursor: pointer;" title="{{$edquote|escape:'html'}}" data-role="insert-formatting" data-comment=" " data-bbcode="quote" data-id="desc">
+ <i class="fa fa-quote-left"></i>
+ </button>
+ </li>
+ </ul>
+ <div class="clear"></div>
+ </div>
+
+ {{* The textarea for the event location *}}
+ <div class="form-group">
+ <div id="event-location-text"><b>{{$l_text}}</b></div>
+ <textarea id="comment-edit-text-loc" class="form-control text-autosize" name="location">{{$l_orig}}</textarea>
+ <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>
+ <button type="button" class="btn-link icon" style="cursor: pointer;" title="{{$edimg|escape:'html'}}" data-role="insert-formatting" data-comment=" " data-bbcode="img" data-id="loc">
+ <i class="fa fa-picture-o"></i>
+ </button>
+ </li>
+ *}}
+ <li>
+ <button type="button" class="btn-link icon bb-url" style="cursor: pointer;" title="{{$edurl|escape:'html'}}" data-role="insert-formatting" data-comment=" " data-bbcode="url" data-id="loc">
+ <i class="fa fa-link"></i>
+ </button>
+ </li>
+ <li>
+ <button type="button" class="btn-link icon bb-video" style="cursor: pointer;" title="{{$edvideo|escape:'html'}}" data-role="insert-formatting" data-comment=" " data-bbcode="video" data-id="loc">
+ <i class="fa fa-video-camera"></i>
+ </button>
+ </li>
+
+ <li>
+ <button type="button" class="btn-link icon underline" style="cursor: pointer;" title="{{$eduline|escape:'html'}}" data-role="insert-formatting" data-comment=" " data-bbcode="u" data-id="loc">
+ <i class="fa fa-underline"></i>
+ </button>
+ </li>
+ <li>
+ <button type="button" class="btn-link icon italic" style="cursor: pointer;" title="{{$editalic|escape:'html'}}" data-role="insert-formatting" data-comment=" " data-bbcode="i" data-id="loc">
+ <i class="fa fa-italic"></i>
+ </button>
+ </li>
+ <li>
+ <button type="button" class="btn-link icon bold" style="cursor: pointer;" title="{{$edbold|escape:'html'}}" data-role="insert-formatting" data-comment=" " data-bbcode="b" data-id="loc">
+ <i class="fa fa-bold"></i>
+ </button>
+ </li>
+ <li>
+ <button type="button" class="btn-link icon quote" style="cursor: pointer;" title="{{$edquote|escape:'html'}}" data-role="insert-formatting" data-comment=" " data-bbcode="quote" data-id="loc">
+ <i class="fa fa-quote-left"></i>
+ </button>
+ </li>
+ </ul>
+ <div class="clear"></div>
+ </div>
+ </div>
+
+ {{* The tab for the permissions (if event sharing is enabled) *}}
+ <div id="event-acl-wrapper" style="display: none">
+ {{$acl}}
+ </div>
+
+ {{* The tab for the event preview (content is inserted by js) *}}
+ <div id="event-preview" style="display: none"></div>
+
+ <div class="clear"></div>
+
+ </form>
+ </div>
+</div>