-
+<script language="javascript" type="text/javascript"
+ src="{{$baseurl}}/view/theme/frio/js/event.js"></script>
<div id="event-form-wrapper">
<h3 class="heading">{{$title}}</h3>
<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
the modal. Changing of the activity status is done by js in event_head.tpl *}}
- <li class="active" role="menuitem"><a id="event-edit-lnk" onclick="eventEditActive(); return false;">Text</a></li>
+ <li class="active" role="menuitem"><a id="event-edit-lnk" onclick="eventEditActive(); return false;">{{$basic}}</a></li>
+ <li role="menuitem"><a id="event-desc-lnk" onclick="eventDescActive(); return false;">{{$advanced}}</a></li>
{{if $acl}}<li role="menuitem" {{if !$sh_checked}} style="display: none"{{/if}}><a id="event-perms-lnk" onclick="eventAclActive();return false;">Permissions</a></li>{{/if}}
{{if $preview}}<li role="menuitem"><a id="event-preview-lnk" onclick="eventPreviewActive();return false;">{{$preview}}</a></li>{{/if}}
{{* commented out because it isn't implemented yet
<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">
- <p>
- {{$desc}}
- </p>
- {{$s_dsel}}
+ {{* The event title *}}
+ {{include file="field_input.tpl" field=$summary}}
- {{$f_dsel}}
+ <div id="event-edit-time">
+ {{* The field for event starting time *}}
+ {{$s_dsel}}
- {{include file="field_checkbox.tpl" field=$nofinish}}
+ {{* The field for event finish time *}}
+ {{$f_dsel}}
- {{include file="field_checkbox.tpl" field=$adjust}}
+ {{* checkbox if the the event doesn't have a finish time *}}
+ {{include file="field_checkbox.tpl" field=$nofinish}}
- {{include file="field_input.tpl" field=$summary}}
+ {{* 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" name="desc" >{{$d_orig}}</textarea>
<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" name="location">{{$l_orig}}</textarea>
</ul>
<div class="clear"></div>
</div>
-
- {{if ! $eid}}
- {{include file="field_checkbox.tpl" field=$share}}
- {{/if}}
-
- <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 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>