mirror of
https://github.com/wallabag/wallabag.git
synced 2025-01-24 07:38:11 +00:00
commit
925d8ab316
7 changed files with 179 additions and 25 deletions
|
@ -18,7 +18,6 @@
|
||||||
{% if entries is not empty %}
|
{% if entries is not empty %}
|
||||||
<div class="results clearfix">
|
<div class="results clearfix">
|
||||||
<div class="nb-results left">{{ entries.count }} {% trans %}entries{% endtrans %}</div>
|
<div class="nb-results left">{{ entries.count }} {% trans %}entries{% endtrans %}</div>
|
||||||
<div class="left"><form>{{ form_rest(form) }}<button class="btn waves-effect waves-light" type="submit" id="submit-filter" value="filter">Filter</button></form></div>
|
|
||||||
<ul class="pagination right">
|
<ul class="pagination right">
|
||||||
{% for p in range(1, entries.nbPages) if entries.nbPages > 1 %}
|
{% for p in range(1, entries.nbPages) if entries.nbPages > 1 %}
|
||||||
<li class="{{ currentPage == p ? 'active':'waves-effect'}}">
|
<li class="{{ currentPage == p ? 'active':'waves-effect'}}">
|
||||||
|
@ -62,4 +61,50 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Filters -->
|
||||||
|
<div id="filters" class="side-nav fixed right-aligned">
|
||||||
|
<form>
|
||||||
|
|
||||||
|
<h4 class="center">{% trans %}Filters{% endtrans %}</h1>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
<div class="col s12">
|
||||||
|
<label>{% trans %}Reading time in minutes{% endtrans %}</label>
|
||||||
|
</div>
|
||||||
|
<div class="input-field col s6">
|
||||||
|
{{ form_widget(form.readingTime.left_number, {'type': 'number'}) }}
|
||||||
|
<label for="entry_filter_readingTime_left_number">{% trans %}from{% endtrans %}</label>
|
||||||
|
</div>
|
||||||
|
<div class="input-field col s6">
|
||||||
|
{{ form_widget(form.readingTime.right_number, {'type': 'number'}) }}
|
||||||
|
<label for="entry_filter_readingTime_right_number">{% trans %}to{% endtrans %}</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col s12">
|
||||||
|
<label>{% trans %}Create at{% endtrans %}</label>
|
||||||
|
</div>
|
||||||
|
<div class="input-field col s6">
|
||||||
|
{{ form_widget(form.createdAt.left_date, {'type': 'date', 'attr': {'class': 'datepicker', 'data-value': form.createdAt.left_date.vars.value} }) }}
|
||||||
|
<label for="entry_filter_createdAt_left_date" class="active">{% trans %}from{% endtrans %}</label>
|
||||||
|
</div>
|
||||||
|
<div class="input-field col s6">
|
||||||
|
{{ form_widget(form.createdAt.right_date, {'type': 'date', 'attr': {'class': 'datepicker', 'data-value': form.createdAt.right_date.vars.value} }) }}
|
||||||
|
<label for="entry_filter_createdAt_right_date" class="active">{% trans %}to{% endtrans %}</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col s6">
|
||||||
|
<a href="#!" class="center waves-effect waves-green btn-flat" id="clean_form_filters">{% trans %}Clean{% endtrans %}</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col s6">
|
||||||
|
<button class="btn waves-effect waves-light" type="submit" id="submit-filter" value="filter">{% trans %}Filter{% endtrans %}</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -3,6 +3,9 @@
|
||||||
{% block title %}{{ entry.title|raw }} ({{ entry.domainName }}){% endblock %}
|
{% block title %}{{ entry.title|raw }} ({{ entry.domainName }}){% endblock %}
|
||||||
|
|
||||||
{% block menu %}
|
{% block menu %}
|
||||||
|
<div class="progress">
|
||||||
|
<div class="determinate"></div>
|
||||||
|
</div>
|
||||||
<nav class="hide-on-large-only">
|
<nav class="hide-on-large-only">
|
||||||
<div class="nav-wrapper cyan darken-1">
|
<div class="nav-wrapper cyan darken-1">
|
||||||
<ul>
|
<ul>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<span class="black-text">{{ form_errors(form.url) }}</span>
|
<span class="black-text">{{ form_errors(form.url) }}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{{ form_widget(form.url) }}
|
{{ form_widget(form.url, { 'attr': {'autocomplete': 'off'} }) }}
|
||||||
|
|
||||||
<div class="hidden">{{ form_rest(form) }}</div>
|
<div class="hidden">{{ form_rest(form) }}</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -23,19 +23,23 @@
|
||||||
<span class="black-text"><p>{{ flashMessage }}</p></span>
|
<span class="black-text"><p>{{ flashMessage }}</p></span>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
<div class="input-field s12">
|
<div class="row">
|
||||||
<label for="username">{% trans %}Username{% endtrans %}</label>
|
|
||||||
<input type="text" id="username" name="_username" value="{{ last_username }}" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="input-field s12">
|
<div class="input-field col s12">
|
||||||
<label for="password">{% trans %}Password{% endtrans %}</label>
|
<label for="username">{% trans %}Username{% endtrans %}</label>
|
||||||
<input type="password" id="password" name="_password" />
|
<input type="text" id="username" name="_username" value="{{ last_username }}" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="input-field col s12">
|
||||||
|
<label for="password">{% trans %}Password{% endtrans %}</label>
|
||||||
|
<input type="password" id="password" name="_password" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="input-field col s12">
|
||||||
|
<input type="checkbox" id="remember_me" name="_remember_me" checked />
|
||||||
|
<label for="remember_me">{% trans %}Keep me logged in{% endtrans %}</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="input-field s12">
|
|
||||||
<input type="checkbox" id="remember_me" name="_remember_me" checked />
|
|
||||||
<label for="remember_me">{% trans %}Keep me logged in{% endtrans %}</label>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -57,6 +57,7 @@
|
||||||
<ul>
|
<ul>
|
||||||
<li class="bold"><a class="waves-effect" href="{{ path('new') }}" id="nav-btn-add"><i class="mdi-content-add"></i></a></li>
|
<li class="bold"><a class="waves-effect" href="{{ path('new') }}" id="nav-btn-add"><i class="mdi-content-add"></i></a></li>
|
||||||
<li><a class="waves-effect" href="javascript: void(null);" id="nav-btn-search"><i class="mdi-action-search"></i></a>
|
<li><a class="waves-effect" href="javascript: void(null);" id="nav-btn-search"><i class="mdi-action-search"></i></a>
|
||||||
|
<li id="button_filters"><a href="#" data-activates="filters" class="nav-panel-menu button-collapse-right"><i class="mdi-content-filter-list"></i></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<form method="get" action="index.php">
|
<form method="get" action="index.php">
|
||||||
|
@ -68,16 +69,9 @@
|
||||||
</form>
|
</form>
|
||||||
<div class="input-field nav-panel-add" style="display: none">
|
<div class="input-field nav-panel-add" style="display: none">
|
||||||
{{ render(controller( "WallabagCoreBundle:Entry:addEntryForm" )) }}
|
{{ render(controller( "WallabagCoreBundle:Entry:addEntryForm" )) }}
|
||||||
<label for="add"><i class="mdi-content-add"></i></label>
|
<label for="add" class="active"><i class="mdi-content-add"></i></label>
|
||||||
<i class="mdi-navigation-close"></i>
|
<i class="mdi-navigation-close"></i>
|
||||||
</div>
|
</div>
|
||||||
<!--<form name="entry" method="post" action="{{ path('new_entry') }}">
|
|
||||||
<div class="input-field nav-panel-add" style="display: none">
|
|
||||||
<input id="add entry_url" name="entry[url]" type="search" required placeholder="{% trans %}Enter your link here{% endtrans %}">
|
|
||||||
<label for="add"><i class="mdi-content-add"></i></label>
|
|
||||||
<i class="mdi-navigation-close"></i>
|
|
||||||
</div>
|
|
||||||
</form>-->
|
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -48,6 +48,16 @@ nav, main, footer {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.pagination li {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pagination a {
|
||||||
|
padding: 0px 10px;
|
||||||
|
height: 30px;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
.page-footer .footer-copyright p {
|
.page-footer .footer-copyright p {
|
||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
|
@ -56,10 +66,18 @@ nav, main, footer {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.picker__date-display {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
/* ==========================================================================
|
/* ==========================================================================
|
||||||
1 = Nav
|
1 = Nav
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
|
||||||
|
nav input {
|
||||||
|
color: #aaa;
|
||||||
|
}
|
||||||
|
|
||||||
.nav-wrapper .button-collapse {
|
.nav-wrapper .button-collapse {
|
||||||
padding: 0px 15px;
|
padding: 0px 15px;
|
||||||
}
|
}
|
||||||
|
@ -96,6 +114,38 @@ nav, main, footer {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.nav-panels .input-field input {
|
||||||
|
display: block;
|
||||||
|
line-height: inherit;
|
||||||
|
padding-left: 4rem !important;
|
||||||
|
width: calc(100% - 8rem);
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-panels .input-field input:focus {
|
||||||
|
background-color: #fff;
|
||||||
|
border: 0;
|
||||||
|
box-shadow: none;
|
||||||
|
color: #444;
|
||||||
|
}
|
||||||
|
|
||||||
|
.input-field.nav-panel-add label {
|
||||||
|
left: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.input-field.nav-panel-add .mdi-navigation-close {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 1rem;
|
||||||
|
color: transparent;
|
||||||
|
cursor: pointer;
|
||||||
|
font-size: 2rem;
|
||||||
|
transition: .3s color;
|
||||||
|
}
|
||||||
|
|
||||||
|
#button_filters {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
/* ==========================================================================
|
/* ==========================================================================
|
||||||
2 = Side-nav
|
2 = Side-nav
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
@ -132,6 +182,21 @@ nav, main, footer {
|
||||||
margin: 0px 1rem;
|
margin: 0px 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ==========================================================================
|
||||||
|
* 3 = Filters slider
|
||||||
|
* ========================================================================== */
|
||||||
|
|
||||||
|
#filters button {
|
||||||
|
padding: 0px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.side-nav.fixed.right-aligned {
|
||||||
|
right: -250px;
|
||||||
|
left: auto !important;
|
||||||
|
overflow-y: visible;
|
||||||
|
}
|
||||||
|
|
||||||
/* ==========================================================================
|
/* ==========================================================================
|
||||||
3 = Cards
|
3 = Cards
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
@ -200,6 +265,15 @@ main ul.row {
|
||||||
width: 240px !important;
|
width: 240px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.reader-mode .collapsible-body {
|
||||||
|
height: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.reader-mode:hover .collapsible-body {
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.reader-mode span {
|
.reader-mode span {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
transition: opacity 0.2s ease;
|
transition: opacity 0.2s ease;
|
||||||
|
@ -209,6 +283,14 @@ main ul.row {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.progress {
|
||||||
|
position:fixed;
|
||||||
|
top:0px;
|
||||||
|
width: 100%;
|
||||||
|
height: 3px;
|
||||||
|
margin: 0;
|
||||||
|
z-index: 9999;
|
||||||
|
}
|
||||||
/* ==========================================================================
|
/* ==========================================================================
|
||||||
6 = Media queries
|
6 = Media queries
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
function init_filters() {
|
||||||
|
// no display if filters not aviable
|
||||||
|
if ($("div").is("#filters")) {
|
||||||
|
$('#button_filters').show();
|
||||||
|
$('.button-collapse-right').sideNav({ edge: 'right' });
|
||||||
|
$('#clean_form_filters').on('click', function(){
|
||||||
|
$('#filters input').val('');
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
// sideNav
|
// sideNav
|
||||||
$('.button-collapse').sideNav();
|
$('.button-collapse').sideNav();
|
||||||
|
@ -5,18 +17,25 @@ $(document).ready(function(){
|
||||||
$('.collapsible').collapsible({
|
$('.collapsible').collapsible({
|
||||||
accordion : false
|
accordion : false
|
||||||
});
|
});
|
||||||
|
$('.datepicker').pickadate({
|
||||||
|
selectMonths: true,
|
||||||
|
selectYears: 15,
|
||||||
|
formatSubmit: 'dd/mm/yyyy',
|
||||||
|
hiddenName: true,
|
||||||
|
format: 'dd/mm/yyyy',
|
||||||
|
});
|
||||||
|
init_filters();
|
||||||
|
|
||||||
$('#nav-btn-add').click(function(){
|
$('#nav-btn-add').on('click', function(){
|
||||||
$(".nav-panel-buttom").hide(100);
|
$(".nav-panel-buttom").hide(100);
|
||||||
$(".nav-panel-add").show(100);
|
$(".nav-panel-add").show(100);
|
||||||
$(".nav-panel-menu").hide(100);
|
|
||||||
$(".nav-panels .action").hide(100);
|
$(".nav-panels .action").hide(100);
|
||||||
$(".nav-panel-menu").addClass('hidden');
|
$(".nav-panel-menu").addClass('hidden');
|
||||||
$(".nav-panels").css('background', 'white');
|
$(".nav-panels").css('background', 'white');
|
||||||
$("#entry_url").focus();
|
$("#entry_url").focus();
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
$('#nav-btn-search').click(function(){
|
$('#nav-btn-search').on('click', function(){
|
||||||
$(".nav-panel-buttom").hide(100);
|
$(".nav-panel-buttom").hide(100);
|
||||||
$(".nav-panel-search").show(100);
|
$(".nav-panel-search").show(100);
|
||||||
$(".nav-panels .action").hide(100);
|
$(".nav-panels .action").hide(100);
|
||||||
|
@ -25,7 +44,7 @@ $(document).ready(function(){
|
||||||
$("#searchfield").focus();
|
$("#searchfield").focus();
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
$('.mdi-navigation-close').click(function(){
|
$('.mdi-navigation-close').on('click', function(){
|
||||||
$(".nav-panel-add").hide(100);
|
$(".nav-panel-add").hide(100);
|
||||||
$(".nav-panel-search").hide(100);
|
$(".nav-panel-search").hide(100);
|
||||||
$(".nav-panel-buttom").show(100);
|
$(".nav-panel-buttom").show(100);
|
||||||
|
@ -34,4 +53,11 @@ $(document).ready(function(){
|
||||||
$(".nav-panels").css('background', 'transparent');
|
$(".nav-panels").css('background', 'transparent');
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
$(window).scroll(function () {
|
||||||
|
var s = $(window).scrollTop(),
|
||||||
|
d = $(document).height(),
|
||||||
|
c = $(window).height();
|
||||||
|
var scrollPercent = (s / (d-c)) * 100;
|
||||||
|
$(".progress .determinate").css('width', scrollPercent+'%');
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue