enhance push front

This commit is contained in:
Nicolas Le Goff
2012-03-06 18:34:30 +01:00
parent 1445d624aa
commit cac45f65d3
4 changed files with 27 additions and 6 deletions

View File

@@ -12,7 +12,7 @@
<ul class="lists">
{% for list in lists %}
{% set length = '<span class="counter">' ~ list.getEntries().count() ~ '</span>' %}
<li class="list" style="padding:2px;background-color:{{ loop.index is odd ? "#515150" : "none" }}">
<li class="list" style="padding:2px;">
<a href="/prod/push/edit-list/{{ list.getId() }}/" class="list_link">
{% if list.getOwner(user).getRole() >= constant('\\Entities\\UsrListOwner::ROLE_EDITOR') %}
<img src="/skins/prod/Push/list-icon.png" />

View File

@@ -58,9 +58,9 @@
</table>
</form>
</div>
<ul>
<ul class="list">
{% for list in lists %}
<li style="padding:2px;background-color:{{ loop.index is odd ? "#515150" : "none" }}">
<li class="list" style="padding:2px;">
<a class="list_loader" href="/prod/push/list/{{ list.getId() }}/">
{% if list.getOwner(user).getRole() >= constant('\\Entities\\UsrListOwner::ROLE_EDITOR') %}
<img src="/skins/prod/Push/list-icon.png" />

View File

@@ -683,7 +683,7 @@
buttons[language.valider] = function() {
var callbackOK = function () {
$('a.list_refresh', $container).trigger('click');
$('#ListManager .lists a.list_refresh', $container).trigger('click');
p4.Dialog.get(2).Close();
};

View File

@@ -146,9 +146,30 @@
overflow:auto;
}
.PushBox .lists .list.selected{
background-color: #515151;
.PushBox .LeftColumn .content ul.list li:nth-child(odd){
background-color: none;
}
.PushBox .LeftColumn .content ul.list li:nth-child(even){
background-color: #515150;
}
.PushBox .lists ul li:nth-child(odd){
background-color: none;
}
.PushBox .lists ul li:nth-child(even){
background-color: #515150;
}
.PushBox .LeftColumn .content ul.list li.selected{
background-color: #AAA;
}
.PushBox .lists .list.selected{
background-color: #AAA;
}
.PushBox .lists .list{
padding:3px 0;
}