]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/templates/jot.tpl
Merge pull request #12502 from annando/no-gs-import
[friendica.git] / view / theme / frio / templates / jot.tpl
index 98eba98b238f4e8acde799b36147102b50753328..c38e8531c6e7feeb2a4397404c7e640d676aba75 100644 (file)
@@ -1,33 +1,46 @@
 {{* The button to open the jot - in This theme we move the button with js to the second nav bar *}}
-<a class="btn btn-sm btn-main pull-right" id="jotOpen" href="compose/{{$posttype}}{{if $content}}?body={{$content}}{{/if}}" aria-label="{{$new_post}}" title="{{$new_post}}"><i class="fa fa-pencil-square-o fa-2x"></i></a>
+<a class="btn btn-sm btn-primary pull-right{{if !$always_open_compose}} modal-open{{/if}}" id="jotOpen" href="compose/{{$posttype}}{{if $content}}?body={{$content}}{{/if}}" aria-label="{{$new_post}}" title="{{$new_post}}"><i class="fa fa-pencil-square-o fa-2x"></i></a>
 
 <div id="jot-content">
        <div id="jot-sections">
                <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" aria-label="Close" style="float: right;">&times;</button>
+                       <button type="button" class="close" data-dismiss="modal" aria-label="Close" style="float: right;">&times;</button>
+
+                       <a href="/compose" class="btn compose-link" title="{{$compose_link_title}}" aria-label="{{$compose_link_title}}">
+                               <i class="fa fa-pencil-square-o" aria-hidden="true"></i>
+                       </a>
 
                        {{* The Jot navigation menu for desktop user (text input, permissions, preview, filebrowser) *}}
                        <ul class="nav nav-tabs hidden-xs jot-nav" role="tablist" 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 *}}
                                <li class="active" role="presentation">
-                                       <a href="#profile-jot-wrapper" class="jot-text-lnk jot-nav-lnk" id="jot-text-lnk" role="tab" aria-controls="profile-jot-wrapper">{{$message}}</a>
+                                       <a href="#profile-jot-wrapper" class="jot-text-lnk jot-nav-lnk" id="jot-text-lnk" role="tab" aria-controls="profile-jot-wrapper">
+                                               <i class="fa fa-file-text-o" aria-hidden="true"></i>
+                                               {{$message}}
+                                       </a>
                                </li>
                                {{if $acl}}
                                <li role="presentation">
-                                       <a href="#profile-jot-acl-wrapper" class="jot-perms-lnk jot-nav-lnk" id="jot-perms-lnk" role="tab" aria-controls="profile-jot-acl-wrapper">{{$shortpermset}}</a>
+                                       <a href="#profile-jot-acl-wrapper" class="jot-perms-lnk jot-nav-lnk" id="jot-perms-lnk" role="tab" aria-controls="profile-jot-acl-wrapper">
+                                               <i class="fa fa-shield" aria-hidden="true"></i>
+                                               {{$shortpermset}}
+                                       </a>
                                </li>
                                {{/if}}
                                {{if $preview}}
                                <li role="presentation">
-                                       <a href="#jot-preview-content" class="jot-preview-lnk jot-nav-lnk" id="jot-preview-lnk" role="tab" aria-controls="jot-preview-content">{{$preview}}</a>
+                                       <a href="#jot-preview-content" class="jot-preview-lnk jot-nav-lnk" id="jot-preview-lnk" role="tab" aria-controls="jot-preview-content">
+                                               <i class="fa fa-eye" aria-hidden="true"></i>
+                                               {{$preview}}
+                                       </a>
                                </li>
                                {{/if}}
                                <li role="presentation">
-                                       <a href="#jot-fbrowser-wrapper" class="jot-browser-lnk jot-nav-lnk" id="jot-browser-link" role="tab" aria-controls="jot-fbrowser-wrapper">{{$browser}}</a>
+                                       <a href="#jot-fbrowser-wrapper" class="jot-browser-lnk jot-nav-lnk" id="jot-browser-link" role="tab" aria-controls="jot-fbrowser-wrapper">
+                                               <i class="fa fa-picture-o" aria-hidden="true"></i>
+                                               {{$browser}}
+                                       </a>
                                </li>
                        </ul>
 
@@ -55,7 +68,6 @@
                                        </li>
                                </ul>
                        </div>
-                       <button type="button" class="close hidden-lg hidden-md hidden-sm" data-dismiss="modal" style="float: right;">&times;</button>
                </div>
 
                <div id="jot-modal-body" class="modal-body">
                                        {{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>
+                                       <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;" dir="auto" /></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>
+                                       <div id="jot-category-wrap"><input name="category" id="jot-category" class="jothidden jotforms form-control" type="text" placeholder="{{$placeholdercategory}}" title="{{$placeholdercategory}}" value="{{$category}}" dir="auto" /></div>
                                        {{/if}}
 
                                        {{* The jot text field in which the post text is inserted *}}
                                        <div id="jot-text-wrap">
-                                               <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 nofilter}}{{/if}}</textarea>
+                                               <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%;" dir="auto">{{if $content}}{{$content nofilter}}{{/if}}</textarea>
                                        </div>
 
                                        <ul id="profile-jot-submit-wrapper" class="jothidden nav nav-pills">
                                                                <i class="fa fa-paper-plane fa-fw" aria-hidden="true"></i> {{$share}}
                                                        </button>
                                                </li>
-                                               <li role="presentation" id="character-counter" class="grey jothidden text-info pull-right"></li>
-                                               <li role="presentation" id="profile-rotator-wrapper" class="pull-right" style="display: {{$visitor}};" >
+                                               <li id="character-counter" class="grey jothidden text-info pull-right"></li>
+                                               <li role="presentation" id="profile-rotator-wrapper" class="pull-right" style="display: {{$visitor}};">
                                                        <img role="presentation" id="profile-rotator" src="images/rotator.gif" alt="{{$wait}}" title="{{$wait}}" style="display: none;" />
                                                </li>
                                                <li role="presentation" id="profile-jot-plugin-wrapper">
 
                                <div id="profile-jot-acl-wrapper" class="minimize" aria-labelledby="jot-perms-lnk" role="tabpanel" aria-hidden="true">
                                        {{$acl nofilter}}
+                                       {{if $scheduled_at}}{{$scheduled_at nofilter}}{{/if}}
+                                       {{if $created_at}}{{$created_at nofilter}}{{/if}}
                                </div>
 
                                <div id="jot-preview-content" class="minimize" aria-labelledby="jot-preview-lnk" role="tabpanel" aria-hidden="true"></div>