2016-04-29 11:30:50 -04:00
|
|
|
|
|
|
|
{{* The button to open the jot - in This theme we move the button with js to the second nav bar *}}
|
2017-03-14 23:47:02 -04:00
|
|
|
<button class="btn btn-sm btn-main pull-right" id="jotOpen" onclick="jotShow();"><i class="fa fa-pencil-square-o fa-2x"></i></button>
|
2016-04-29 11:30:50 -04:00
|
|
|
|
|
|
|
|
2016-03-28 10:29:05 -04:00
|
|
|
<div id="jot-content">
|
2016-08-04 08:33:08 -04:00
|
|
|
<div id="jot-sections">
|
2016-06-27 04:33:20 -04:00
|
|
|
<div class="modal-header">
|
|
|
|
{{* Note: We need 2 modal close buttons here to bypass a bug in bootstrap.
|
|
|
|
The second is for mobile view. The first one doesnt work with dropdowns. To get a working close button
|
|
|
|
in with dropdows the close button needs to be inserted after the dropdown. *}}
|
|
|
|
<button type="button" class="close hidden-xs" data-dismiss="modal" style="float: right;">×</button>
|
|
|
|
|
2017-03-25 18:33:53 -04:00
|
|
|
{{* The Jot navigation menu for desktop user (text input, permissions, preview, filebrowser) *}}
|
2016-06-27 04:33:20 -04:00
|
|
|
<ul class="nav nav-tabs hidden-xs jot-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 jot.tpl-header *}}
|
2017-03-14 23:47:02 -04:00
|
|
|
<li class="active" role="menuitem">
|
2017-04-03 08:00:27 -04:00
|
|
|
<a href="#profile-jot-wrapper" class="jot-text-lnk" id="jot-text-lnk" onclick="jotActive(); return false;">{{$message}}</a>
|
2017-03-14 23:47:02 -04:00
|
|
|
</li>
|
|
|
|
{{if $acl}}
|
|
|
|
<li role="menuitem">
|
2017-04-03 08:00:27 -04:00
|
|
|
<a href="#profile-jot-acl-wrapper" class="jot-perms-lnk" id="jot-perms-lnk" onclick="aclActive(); return false;">{{$shortpermset}}</a>
|
2017-03-14 23:47:02 -04:00
|
|
|
</li>
|
|
|
|
{{/if}}
|
|
|
|
{{if $preview}}
|
|
|
|
<li role="menuitem">
|
2017-04-03 08:00:27 -04:00
|
|
|
<a href="#jot-preview-content" class="jot-preview-lnk" id="jot-preview-lnk" onclick="previewActive(); return false;">{{$preview}}</a>
|
2017-03-14 23:47:02 -04:00
|
|
|
</li>
|
|
|
|
{{/if}}
|
|
|
|
<li role="menuitem">
|
2017-04-03 08:00:27 -04:00
|
|
|
<a href="#jot-fbrowser-wrapper" class="jot-browser-lnk" id="jot-browser-link" onclick="fbrowserActive(); return false;">{{$browser}}</a>
|
2017-03-14 23:47:02 -04:00
|
|
|
</li>
|
2016-06-27 04:33:20 -04:00
|
|
|
</ul>
|
2016-03-28 10:29:05 -04:00
|
|
|
|
2017-03-25 18:33:53 -04:00
|
|
|
{{* The Jot navigation menu for small displays (text input, permissions, preview, filebrowser) *}}
|
2016-06-27 04:33:20 -04:00
|
|
|
<div class="dropdown dropdown-head dropdown-mobile-jot jot-nav hidden-lg hidden-md hidden-sm" role="menubar" data-tabs="tabs" style="float: left;">
|
|
|
|
<button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">{{$message}} <span class="caret"></span></button>
|
|
|
|
<ul class="dropdown-menu nav nav-pills">
|
|
|
|
{{* 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 jot.tpl-header *}}
|
2017-03-14 23:47:02 -04:00
|
|
|
<li role="menuitem" style="display: none;">
|
2017-04-03 08:32:54 -04:00
|
|
|
<button class="jot-text-lnk btn-link" id="jot-text-lnk-mobile" onclick="jotActive(); return false;">{{$message}}</button>
|
2017-03-14 23:47:02 -04:00
|
|
|
</li>
|
|
|
|
{{if $acl}}
|
|
|
|
<li role="menuitem">
|
2017-04-03 08:32:54 -04:00
|
|
|
<button class="jot-perms-lnk btn-link" id="jot-perms-lnk-mobile" onclick="aclActive(); return false;">{{$shortpermset}}</button>
|
2017-03-14 23:47:02 -04:00
|
|
|
</li>
|
|
|
|
{{/if}}
|
|
|
|
{{if $preview}}
|
|
|
|
<li role="menuitem">
|
2017-04-03 08:32:54 -04:00
|
|
|
<button class="jot-preview-lnk btn-link" id="jot-preview-lnk-mobile" onclick="previewActive(); return false;">{{$preview}}</button>
|
2017-03-14 23:47:02 -04:00
|
|
|
</li>
|
|
|
|
{{/if}}
|
2017-04-02 20:04:13 -04:00
|
|
|
<li role="menuitem">
|
2017-04-03 08:32:54 -04:00
|
|
|
<button class="jot-browser-lnk-mobile btn-link" id="jot-browser-lnk-mobile" onclick="fbrowserActive(); return false;">{{$browser}}</button>
|
2017-04-02 20:04:13 -04:00
|
|
|
</li>
|
2016-06-27 04:33:20 -04:00
|
|
|
</ul>
|
2016-03-28 10:29:05 -04:00
|
|
|
</div>
|
2016-06-27 04:33:20 -04:00
|
|
|
<button type="button" class="close hidden-lg hidden-md hidden-sm" data-dismiss="modal" style="float: right;">×</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="jot-modal-body" class="modal-body">
|
2016-08-04 08:33:08 -04:00
|
|
|
<form id="profile-jot-form" action="{{$action}}" method="post">
|
|
|
|
<div id="profile-jot-wrapper">
|
|
|
|
<div>
|
|
|
|
<!--<div id="profile-jot-desc" class="jothidden pull-right"> </div>-->
|
|
|
|
</div>
|
2016-03-28 10:29:05 -04:00
|
|
|
|
2016-08-04 08:33:08 -04:00
|
|
|
<div id="profile-jot-banner-end"></div>
|
|
|
|
|
|
|
|
{{* The hidden input fields which submit important values with the post *}}
|
|
|
|
<input type="hidden" name="type" value="{{$ptyp}}" />
|
|
|
|
<input type="hidden" name="profile_uid" value="{{$profile_uid}}" />
|
|
|
|
<input type="hidden" name="return" value="{{$return_path}}" />
|
|
|
|
<input type="hidden" name="location" id="jot-location" value="{{$defloc}}" />
|
|
|
|
<input type="hidden" name="coord" id="jot-coord" value="" />
|
|
|
|
<input type="hidden" name="post_id" value="{{$post_id}}" />
|
|
|
|
<input type="hidden" name="preview" id="jot-preview" value="0" />
|
|
|
|
<input type="hidden" name="post_id_random" value="{{$rand_num}}" />
|
|
|
|
{{if $notes_cid}}
|
|
|
|
<input type="hidden" name="contact_allow[]" value="<{{$notes_cid}}>" />
|
|
|
|
{{/if}}
|
|
|
|
<div id="jot-title-wrap"><input name="title" id="jot-title" class="jothidden jotforms form-control" type="text" placeholder="{{$placeholdertitle}}" title="{{$placeholdertitle}}" value="{{$title}}" style="display:block;" /></div>
|
|
|
|
{{if $placeholdercategory}}
|
|
|
|
<div id="jot-category-wrap"><input name="category" id="jot-category" class="jothidden jotforms form-control" type="text" placeholder="{{$placeholdercategory}}" title="{{$placeholdercategory}}" value="{{$category}}" /></div>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{* The jot text field in which the post text is inserted *}}
|
|
|
|
<div id="jot-text-wrap">
|
2017-01-07 10:06:03 -05:00
|
|
|
<textarea rows="2" cols="64" class="profile-jot-text form-control text-autosize" id="profile-jot-text" name="body" placeholder="{{$share}}" onFocus="jotTextOpenUI(this);" onBlur="jotTextCloseUI(this);" style="min-width:100%; max-width:100%;">{{if $content}}{{$content}}{{/if}}</textarea>
|
2016-08-04 08:33:08 -04:00
|
|
|
</div>
|
2016-03-28 10:29:05 -04:00
|
|
|
|
2016-08-04 08:33:08 -04:00
|
|
|
<ul id="profile-jot-submit-wrapper" class="jothidden nav nav-pills">
|
2017-03-23 22:45:40 -04:00
|
|
|
<li><button type="button" class="btn-link" id="profile-link" ondragenter="return linkdropper(event);" ondragover="return linkdropper(event);" ondrop="linkdrop(event);" onclick="jotGetLink();" title="{{$weblink}}"><i class="fa fa-link"></i></button></li>
|
|
|
|
<li><button type="button" class="btn-link" id="profile-video" onclick="jotVideoURL();" title="{{$video}}"><i class="fa fa-film"></i></button></li>
|
|
|
|
<li><button type="button" class="btn-link" id="profile-audio" onclick="jotAudioURL();" title="{{$audio}}"><i class="fa fa-music"></i></button></li>
|
|
|
|
<li><button type="button" class="btn-link" id="profile-location" onclick="jotGetLocation();" title="{{$setloc}}"><i class="fa fa-map-marker"></i></button></li>
|
2017-01-07 09:49:13 -05:00
|
|
|
<!-- TODO: waiting for a better placement
|
2017-03-23 22:45:40 -04:00
|
|
|
<li><button type="button" class="btn-link" id="profile-nolocation" onclick="jotClearLocation();" title="{{$noloc}}">{{$shortnoloc}}</button></li>
|
2016-08-04 08:33:08 -04:00
|
|
|
-->
|
|
|
|
|
|
|
|
<li class="pull-right"><button class="btn btn-primary" id="jot-submit" type="submit" id="profile-jot-submit" name="submit" ><i class="fa fa-slideshare fa-fw"></i> {{$share}}</button></li>
|
2016-11-18 17:48:31 -05:00
|
|
|
<li id="character-counter" class="grey jothidden text-info pull-right"></li>
|
2016-08-04 08:33:08 -04:00
|
|
|
<div id="profile-rotator-wrapper" style="display: {{$visitor}};" >
|
|
|
|
<img id="profile-rotator" src="images/rotator.gif" alt="{{$wait}}" title="{{$wait}}" style="display: none;" />
|
2017-01-07 09:49:13 -05:00
|
|
|
</div>
|
2016-08-04 08:33:08 -04:00
|
|
|
<div id="profile-jot-plugin-wrapper">
|
|
|
|
{{$jotplugins}}
|
|
|
|
</div>
|
|
|
|
</ul>
|
2016-06-27 04:33:20 -04:00
|
|
|
|
2016-08-04 08:33:08 -04:00
|
|
|
</div>
|
2016-03-28 10:29:05 -04:00
|
|
|
|
2017-04-03 07:38:07 -04:00
|
|
|
<div id="profile-jot-acl-wrapper" class="minimize">
|
2016-08-04 08:33:08 -04:00
|
|
|
{{$acl}}
|
|
|
|
</div>
|
2016-06-27 04:33:20 -04:00
|
|
|
|
2017-04-03 07:38:07 -04:00
|
|
|
<div id="jot-preview-content" class="minimize"></div>
|
2016-08-04 08:33:08 -04:00
|
|
|
</form>
|
2016-03-28 10:29:05 -04:00
|
|
|
|
2017-04-03 07:38:07 -04:00
|
|
|
<div id="jot-fbrowser-wrapper" class="minimize"></div>
|
2016-05-09 15:08:11 -04:00
|
|
|
|
2016-06-27 04:33:20 -04:00
|
|
|
{{if $content}}<script>initEditor();</script>{{/if}}
|
|
|
|
</div>
|
2016-08-04 08:33:08 -04:00
|
|
|
</div>
|
2016-03-28 10:29:05 -04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2016-06-25 06:21:13 -04:00
|
|
|
{{* The jot modal - We use a own modal for the jot and not the standard modal
|
|
|
|
from the page template. This is because the special structure of the jot
|
|
|
|
(e.g.jot navigation tabs in the modal titel area).
|
|
|
|
The in the frio theme the jot will loaded regulary and is hidden by default.)
|
|
|
|
The js function jotShow() loads the jot into the modal. With this structure we
|
|
|
|
can load different content into the jot moadl (e.g. the item edit jot)
|
|
|
|
*}}
|
2016-03-28 10:29:05 -04:00
|
|
|
<div id="jot-modal" class="modal fade" role="dialog">
|
|
|
|
<div class="modal-dialog">
|
2016-06-27 04:33:20 -04:00
|
|
|
<div id="jot-modal-content" class="modal-content"></div>
|
2016-03-28 10:29:05 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2016-08-23 10:48:13 -04:00
|
|
|
<script language="javascript" type="text/javascript">
|
2016-05-09 15:08:11 -04:00
|
|
|
$('iframe').load(function() {
|
|
|
|
this.style.height = this.contentWindow.document.body.offsetHeight + 'px';
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|