1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cops_ynh.git synced 2024-09-03 18:25:57 +02:00
cops_ynh/sources/templates/default/header.html
2016-12-22 00:51:06 +00:00

50 lines
2.3 KiB
HTML

<header>
<a class="headleft" href="{{=it.homeurl}}" {{=it.c.config.kindleHack}}>
<div title="{{=it.c.i18n.homeAlt}}" class="hicon hicon64"><i class="icon-home"></i></div>
</a>
{{? it.c.config.server_side_rendering == 0}}
<div title="{{=it.c.i18n.cogAlt}}" class="hicon hicon64 headright"><i class="icon-cog" id="searchImage"></i></div>
{{?}}
<div class="headcenter">
<h1>{{=it.title}}</h1>
</div>
<div id="tool" {{? it.c.config.server_side_rendering == 0}}style="display: none"{{?}}>
<div style="float: left; width: 50%">
<form id="searchForm" action="index.php" method="get">
<div class="stop">
<input type="hidden" name="page" value="9" />
{{? it.databaseId != ""}}
<input type="hidden" name="db" value="{{=it.databaseId}}" />
{{?}}
<input type="text" data-type="search" required="required" name="query" />
</div>
<button title="{{=it.c.i18n.searchAlt}}" type="submit" class="hicon hicon32 submit">
<i class="icon-search icon-2x"></i>
</button>
</form>
</div>
{{? it.c.config.server_side_rendering == 0}}
<div id="sortForm" style="float: right; width: 45%; display: none">
<div style="float: right">
<div title="{{=it.c.i18n.sortAlt}}" id="sort" class="hicon hicon32"><i class="icon-sort icon-2x"></i></div>
</div>
<div class="stop">
<select id="sortchoice">
<option value="st">{{=it.c.i18n.bookwordTitle}}</option>
<option value="sa">{{=it.c.i18n.authorsTitle}}</option>
<option value="ss">{{=it.c.i18n.seriesTitle}}</option>
<option value="sp">{{=it.c.i18n.pubdateTitle}}</option>
</select>
<select id="sortorder">
<option value="asc">{{=it.c.i18n.sortorderAsc}}</option>
<option value="desc">{{=it.c.i18n.sortorderDesc}}</option>
</select>
</div>
</div>
<div id="filter">
<ul>
</ul>
</div>
{{?}}
</div>
</header>