aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/default/page.header.html
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2016-05-10 00:44:17 +0200
committerArthurHoaro <arthur@hoa.ro>2016-08-07 12:17:36 +0200
commitf26d4d56f99e2be9fa2ad4598a7b55ce0e9dcfdf (patch)
tree6ebe0c8e6fd4fef3868253c5fec36573cd9dd4d1 /tpl/default/page.header.html
parent735bda920c2a696bbe2e6e8bc0f608c97ac9cdf4 (diff)
downloadShaarli-f26d4d56f99e2be9fa2ad4598a7b55ce0e9dcfdf.tar.gz
Shaarli-f26d4d56f99e2be9fa2ad4598a7b55ce0e9dcfdf.tar.zst
Shaarli-f26d4d56f99e2be9fa2ad4598a7b55ce0e9dcfdf.zip
Login page and header login
Note: the header login isn't functional
Diffstat (limited to 'tpl/default/page.header.html')
-rw-r--r--tpl/default/page.header.html34
1 files changed, 25 insertions, 9 deletions
diff --git a/tpl/default/page.header.html b/tpl/default/page.header.html
index e6cf5aff..e368d00d 100644
--- a/tpl/default/page.header.html
+++ b/tpl/default/page.header.html
@@ -12,7 +12,7 @@
12 </div> 12 </div>
13 <div class="pure-u-1"> 13 <div class="pure-u-1">
14 <div class="pure-menu menu-transform pure-menu-horizontal pure-g"> 14 <div class="pure-menu menu-transform pure-menu-horizontal pure-g">
15 <ul class="pure-menu-list pure-u-lg-11-12 pure-u-sm-1"> 15 <ul class="pure-menu-list pure-u-lg-11-12 pure-u-1">
16 <li class="pure-menu-item pure-menu-selected pure-u-0 pure-u-lg-visible"> 16 <li class="pure-menu-item pure-menu-selected pure-u-0 pure-u-lg-visible">
17 <a href="{if="!empty($GLOBALS['titleLink'])"}{$GLOBALS['titleLink']}{else}?{/if}" 17 <a href="{if="!empty($GLOBALS['titleLink'])"}{$GLOBALS['titleLink']}{else}?{/if}"
18 class="pure-menu-link"> 18 class="pure-menu-link">
@@ -63,17 +63,23 @@
63 </li> 63 </li>
64 {/if} 64 {/if}
65 </ul> 65 </ul>
66 <div class="header-buttons pure-u-lg-1-12 pure-u-sm-0 pure-u-lg-visible"> 66 <div class="header-buttons pure-u-lg-1-12 pure-u-0 pure-u-lg-visible">
67 <ul class="pure-menu-list"> 67 <ul class="pure-menu-list">
68 {if="!isLoggedIn()"} 68 {if="!isLoggedIn()"}
69 <li class="pure-menu-item"> 69 <li class="pure-menu-item">
70 <a href="?do=login" class="pure-menu-link" id="login-button"> 70 <a href="?do=login" class="pure-menu-link" id="login-button" title="Login">
71 <i class="fa fa-user"></i> 71 <i class="fa fa-user"></i>
72 </a> 72 </a>
73 </li> 73 </li>
74 {else}
75 <li class="pure-menu-item">
76 <a href="?do=logout" class="pure-menu-link" title="Logout">
77 <i class="fa fa-sign-out"></i>
78 </a>
79 </li>
74 {/if} 80 {/if}
75 <li class="pure-menu-item"> 81 <li class="pure-menu-item">
76 <a href="?do=atom{$searchcrits}" class="pure-menu-link"> 82 <a href="?do=atom{$searchcrits}" class="pure-menu-link" title="ATOM Feed">
77 <i class="fa fa-rss"></i> 83 <i class="fa fa-rss"></i>
78 </a> 84 </a>
79 </li> 85 </li>
@@ -99,6 +105,7 @@
99 {if="!empty($search_crits) && $search_type=='fulltext'"} 105 {if="!empty($search_crits) && $search_type=='fulltext'"}
100 value="{$search_crits}" 106 value="{$search_crits}"
101 {/if} 107 {/if}
108 tabindex="1"
102 > 109 >
103 <button type="submit" class="search-button"><i class="fa fa-search"></i></button> 110 <button type="submit" class="search-button"><i class="fa fa-search"></i></button>
104 </form> 111 </form>
@@ -109,6 +116,7 @@
109 {/if} 116 {/if}
110 autocomplete="off" data-multiple data-minChars="1" 117 autocomplete="off" data-multiple data-minChars="1"
111 data-list="{loop="$tags"}{$key}, {/loop}" 118 data-list="{loop="$tags"}{$key}, {/loop}"
119 tabindex="2"
112 > 120 >
113 <button type="submit" class="search-button"><i class="fa fa-search"></i></button> 121 <button type="submit" class="search-button"><i class="fa fa-search"></i></button>
114 </form> 122 </form>
@@ -116,11 +124,19 @@
116</div> 124</div>
117 125
118<div id="content"> 126<div id="content">
119 <div id="header-login-form"> 127 <form method="post" name="loginform">
120 <input type="text" name="login" placeholder="Username"> 128 <div id="header-login-form">
121 <input type="password" name="password" placeholder="Password"> 129 <input type="text" name="login" placeholder="Username" tabindex="3">
122 <input type="submit" value="Login"> 130 <input type="password" name="password" placeholder="Password" tabindex="5">
123 </div> 131 <div class="remember-me">
132 <input type="checkbox" name="longlastingsession" id="longlastingsession" tabindex="6">
133 <label for="longlastingsession">Remember me</label>
134 </div>
135 <input type="hidden" name="token" value="{$token}">
136 <input type="hidden" name="returnurl">
137 <input type="submit" value="Login" tabindex="7">
138 </div>
139 </form>
124 140
125{if="!empty($newVersion) || !empty($versionError)"} 141{if="!empty($newVersion) || !empty($versionError)"}
126 <div class="pure-g new-version-message pure-alert pure-alert-warning pure-alert-closable"> 142 <div class="pure-g new-version-message pure-alert pure-alert-warning pure-alert-closable">