mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-12-02 12:13:54 +01:00
wip: Global user interface improvment
* The quarantine manager is done * The webmail is not yet completed * Cleanup * More...
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
{% load libextras %}
|
||||
<div class="btn-toolbar">{% for entry in entries %}
|
||||
<div class="btn-group">{% if entry.menu %}
|
||||
<a class="btn dropdown-toggle" data-toggle="dropdown">{{ entry.label }}<span class="caret"></span></a>
|
||||
<ul class="dropdown-menu">{% for sentry in entry.menu %}
|
||||
<li>{% render_link sentry %}</li>
|
||||
{% endfor %}</ul>
|
||||
{% else %}{% render_link entry "btn" %}{% endif %}
|
||||
</div>
|
||||
{% endfor %}{{ extracontent }}</div>
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
{% load i18n %}
|
||||
<div id="searchbox">
|
||||
<img src="{{ MEDIA_URL }}pics/search.png" id="searchopts" />
|
||||
<input type="text" name="searchfield" id="searchfield" value="{% trans "Search..." %}" />
|
||||
<div id="searchparams">
|
||||
<input type="radio" id="crit_from_addr" name="scriteria" value="from_addr" checked>{% trans "From address" %}<br/>
|
||||
<input type="radio" id="crit_subject" name="scriteria" value="subject">{% trans "Subject" %}<br/>
|
||||
<div id="searchbox" class="btn-group">
|
||||
<a href="#" class="btn dropdown-toggle" data-toggle="dropdown"><i class="icon-search" id="searchopts"></i></a>
|
||||
<ul class="dropdown-menu" id="searchparams">
|
||||
<li><label class="radio"><input type="radio" id="crit_from_addr" name="scriteria" value="from_addr" checked>{% trans "From address" %}</label></li>
|
||||
<li><label class="radio"><input type="radio" id="crit_subject" name="scriteria" value="subject">{% trans "Subject" %}</label></li>
|
||||
{% for opt in extraopts %}
|
||||
<input type="radio" id="crit_{{ opt.name }}" name="scriteria" value="{{ opt.name }}">{{ opt.label }}</br>
|
||||
<li><label class="radio"><input type="radio" id="crit_{{ opt.name }}" name="scriteria" value="{{ opt.name }}">{{ opt.label }}</label></li>
|
||||
{% endfor %}
|
||||
<input type="radio" id="crit_both" name="scriteria" value="both">{% trans "Both" %}<br/>
|
||||
</div>
|
||||
<li><label class="radio"><input type="radio" id="crit_both" name="scriteria" value="both">{% trans "Both" %}</label></li>
|
||||
</ul>
|
||||
<input type="text" class="pull-right no-margin" name="searchfield" id="searchfield" value="{% trans "Search..." %}" />
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
{% load i18n %}
|
||||
<div class="modal-header">
|
||||
<a class="close" data-dismiss="modal">x</a>
|
||||
<h3>{{ title }}</h3>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
{% block modalbody %}{% endblock %}
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
{% if action_label %}<a href="#" class="btn btn-primary {{ action_classes }}">{{ action_label }}</a>{% endif %}
|
||||
<a class="btn" data-dismiss="modal">{% trans "Close" %}</a>
|
||||
</div>
|
||||
@@ -1,5 +1,5 @@
|
||||
{% load i18n %}
|
||||
<table id="emailheaders">
|
||||
<table id="emailheaders" class="table table-striped table-bordered table-condensed">
|
||||
{% for hdr in headers %}
|
||||
<tr><th width="130px">{% trans hdr.name %}</th><td>{{ hdr.value }}</td></tr>
|
||||
{% endfor %}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{% load i18n %}
|
||||
{% load i18n libextras %}
|
||||
{% for entry in entries %}
|
||||
{% if entry.separator %}
|
||||
<li class="divider"> </li>
|
||||
@@ -12,33 +12,13 @@
|
||||
<ul class="dropdown-menu"
|
||||
{% if entry.width %}style="width: {{ entry.width }}px"{% endif %}>
|
||||
{% for sentry in entry.menu %}
|
||||
<li>
|
||||
<a href="{{ sentry.url }}" name="{{ sentry.name }}"
|
||||
{% if sentry.modal %}data-toggle="ajaxmodal{% if sentry.autowidth %}-autowidth{% endif %}"{% endif %}
|
||||
{% if sentry.modalcb %}modalcb="{{ entry.modalcb }}"{% endif %}
|
||||
{% if sentry.class %}class={{ sentry.class }}{% endif %}
|
||||
{% if sentry.rel %}rel={{ sentry.rel }}{% endif %}
|
||||
{% if sentry.confirm %} onclick="return confirm('{{ sentry.confirm }}')"{% endif %}>
|
||||
{% if sentry.img %}<i class="{{ sentry.img }}"></i>{% endif %}
|
||||
{{ sentry.label }}
|
||||
</a>
|
||||
</li>
|
||||
<li>{% render_link sentry %}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</li>
|
||||
{% else %}
|
||||
<li {% if selection == entry.name %}class="active"{% endif %}>
|
||||
{% if not entry.disabled %}
|
||||
<a href="{{ entry.url }}" name="{{ entry.name }}"
|
||||
{% if entry.modal %}data-toggle="ajaxmodal{% if entry.autowidth %}-autowidth{% endif %}"{% endif %}
|
||||
{% if entry.modalcb %}modalcb="{{ entry.modalcb }}"{% endif %}
|
||||
{% if entry.class %}class={{ entry.class }}{% endif %}
|
||||
{% if entry.rel %}rel={{ entry.rel }}{% endif %}
|
||||
{% if entry.confirm %} onclick="return confirm('{{ entry.confirm }}')"{% endif %}>
|
||||
{% endif %}
|
||||
{% if entry.img %}<i class="{{ entry.img }}"></i>{% endif %}
|
||||
{{ entry.label }}
|
||||
{% if not entry.disabled %}</a>{% endif %}
|
||||
{% render_link entry %}
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
<div id="pagination_bar" class="simplepagination pull-right padded5">
|
||||
<ul>
|
||||
<li class="{% if not page.has_previous %}disabled{% endif %}">
|
||||
<a href="?page=1"><i class="icon-white icon-fast-backward"></i></a>
|
||||
<a href="{{ baseurl }}?page=1"><i class="icon-white icon-fast-backward"></i></a>
|
||||
</li>
|
||||
<li class="{% if not page.has_previous %}disabled{% endif %}">
|
||||
<a href="?page={{ page.previous_page_number }}">
|
||||
<a href="{{ baseurl }}?page={{ page.previous_page_number }}">
|
||||
<i class="icon-step-backward icon-white"></i></a>
|
||||
</li>
|
||||
<li class="disabled">
|
||||
{{ page.number }}/{{ page.paginator.num_pages }}
|
||||
</li>
|
||||
<li class="{% if not page.has_next %}disabled{% endif %}">
|
||||
<a href="?page={{ page.next_page_number }}">
|
||||
<a href="{{ baseurl }}?page={{ page.next_page_number }}">
|
||||
<i class="icon-step-forward icon-white"></i></a>
|
||||
</li>
|
||||
<li class="{% if not page.has_next %}disabled{% endif %}">
|
||||
<a href="?page={{ page.next_page_number }}">
|
||||
<a href="{{ baseurl }}?page={{ page.paginator.num_pages }}">
|
||||
<i class="icon-fast-forward icon-white"></i></a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
<tbody>
|
||||
{% for row in table.rows %}
|
||||
<tr id="{{ row.id }}" class="{% cycle 'odd' 'even' %} {{ row.style }}" name="{{ row.trcpt }}"
|
||||
rel="{{ row.options }}">
|
||||
<tr id="{{ row.id }}" class="{{ row.style }}" name="{{ row.trcpt }}">
|
||||
{% for cell in row.cols %}
|
||||
<td name="{{ cell.name }}" width="{{ cell.width }}" align="{{ cell.align }}" class="{{ cell.cssclass }}">
|
||||
{% if cell.safe %}{{ cell.value|safe }}{% else %}{{ cell.value }}{% endif %}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head profile="http://www.w3.org/2005/10/profile">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/box.css" />
|
||||
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/bootstrap.css" />
|
||||
|
||||
<style type="text/css">
|
||||
body {
|
||||
@@ -22,24 +22,7 @@
|
||||
border: 0px transparent none;
|
||||
margin: 0;
|
||||
}
|
||||
table#emailheaders {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
#emailheaders td,
|
||||
#emailheaders th {
|
||||
height: 22px;
|
||||
text-align: left;
|
||||
padding-left: 10px;
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
#emailheaders td {
|
||||
font-size: 1em;
|
||||
}
|
||||
#emailheaders th {
|
||||
background: #F7F9Fb;
|
||||
}
|
||||
|
||||
#emailheaders a, #emailheaders a:visited {
|
||||
color: blue;
|
||||
text-decoration: none;
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
{% extends "nlayout.html" %}
|
||||
{% block content %}
|
||||
<div id="fixed_content">{% block fixed_content %}{% endblock %}</div>
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,8 @@
|
||||
{% extends "nlayout.html" %}
|
||||
{% block content %}
|
||||
<div class="container-fluid">
|
||||
<div class="row-fluid">
|
||||
{% block rowcontent %}{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
+45
-56
@@ -1,66 +1,55 @@
|
||||
<!DOCTYPE html>
|
||||
{% load i18n admin_extras uprefs_extras libextras %}
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head profile="http://www.w3.org/2005/10/profile">
|
||||
<meta charset="utf-8" />
|
||||
<title>Modoboa - {% block pagetitle %}{% endblock %}</title>
|
||||
<link rel="icon" type="image/png" href="{{ MEDIA_URL }}css/logo-icon.png" />
|
||||
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/bootstrap.css" />
|
||||
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/bootstrap-responsive.css" />
|
||||
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/datepicker.css" />
|
||||
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/custom.css" />
|
||||
<script src="{{ MEDIA_URL }}js/jquery.js" type="text/javascript"></script>
|
||||
<script src="{{ MEDIA_URL }}js/bootstrap.js" type="text/javascript"></script>
|
||||
<script src="{{ MEDIA_URL }}js/bootstrap-datepicker.js" type="text/javascript"></script>
|
||||
<script src="{{ MEDIA_URL }}js/utils.js" type="text/javascript"></script>
|
||||
<script src="{{ MEDIA_URL }}js/common.js" type="text/javascript"></script>
|
||||
<script src="{{ MEDIA_URL }}js/confirmation.js" type="text/javascript"></script>
|
||||
<script src="{{ MEDIA_URL }}js/notify.js" type="text/javascript"></script>
|
||||
{% url django.views.i18n.javascript_catalog as catalog_url %}
|
||||
<script type="text/javascript" src="{{ catalog_url }}"></script>
|
||||
<script type="text/javascript">
|
||||
set_media_url("{{ MEDIA_URL }}");
|
||||
</script>
|
||||
{% block html_head %}{% endblock %}
|
||||
</head>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Modoboa - {% block pagetitle %}{% endblock %}</title>
|
||||
<link rel="icon" type="image/png" href="{{ MEDIA_URL }}css/logo-icon.png" />
|
||||
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/bootstrap.css" />
|
||||
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/bootstrap-responsive.css" />
|
||||
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/datepicker.css" />
|
||||
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/custom.css" />
|
||||
<script src="{{ MEDIA_URL }}js/jquery.js" type="text/javascript"></script>
|
||||
<script src="{{ MEDIA_URL }}js/bootstrap.js" type="text/javascript"></script>
|
||||
<script src="{{ MEDIA_URL }}js/bootstrap-datepicker.js" type="text/javascript"></script>
|
||||
<script src="{{ MEDIA_URL }}js/utils.js" type="text/javascript"></script>
|
||||
<script src="{{ MEDIA_URL }}js/common.js" type="text/javascript"></script>
|
||||
<script src="{{ MEDIA_URL }}js/confirmation.js" type="text/javascript"></script>
|
||||
<script src="{{ MEDIA_URL }}js/notify.js" type="text/javascript"></script>
|
||||
{% url django.views.i18n.javascript_catalog as catalog_url %}
|
||||
<script type="text/javascript" src="{{ catalog_url }}"></script>
|
||||
<script type="text/javascript">
|
||||
set_media_url("{{ MEDIA_URL }}");
|
||||
</script>
|
||||
{% block html_head %}{% endblock %}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="navbar navbar-fixed-top">
|
||||
<div class="navbar-inner">
|
||||
<div class="container-fluid">
|
||||
<div class="nav-collapse">
|
||||
<ul class="nav">
|
||||
{% loadextmenu user %}
|
||||
{% if selection %}{% admin_menu selection user %}{% else %}{% admin_menu "" user %}{% endif %}
|
||||
{% load_optionalmenu user %}
|
||||
</ul>
|
||||
<ul class="nav pull-right">
|
||||
{% user_menu user %}
|
||||
</ul>
|
||||
<body>
|
||||
<div class="navbar navbar-fixed-top">
|
||||
<div class="navbar-inner">
|
||||
<div class="container-fluid">
|
||||
<div class="nav-collapse">
|
||||
<ul class="nav">{% if selection %}
|
||||
{% loadextmenu selection user %}{% admin_menu selection user %}
|
||||
{% else %}{% loadextmenu "" user %}{% admin_menu "" user %}{% endif %}
|
||||
{% load_optionalmenu user %}
|
||||
</ul>
|
||||
<ul class="nav pull-right">
|
||||
{% user_menu user %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row-fluid">
|
||||
</div>
|
||||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="bottom-bar">
|
||||
<div class="navbar-inner">
|
||||
<div class="container-fluid">
|
||||
<div class="nav-collapse">
|
||||
{% block footer %}{% endblock %}
|
||||
<div id="bottom-bar">
|
||||
<div class="navbar-inner">
|
||||
<div class="container-fluid">
|
||||
<div id="bottom-bar-in" class="nav-collapse">
|
||||
{% block footer %}{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{% extends "nlayout.html" %}
|
||||
{% extends "fluid.html" %}
|
||||
{% load libextras %}
|
||||
{% block content %}
|
||||
{% block rowcontent %}
|
||||
<div class="span2">{% block leftcol %}{% endblock %}</div>
|
||||
<div class="span10">
|
||||
{% if messages %}{% display_messages messages %}{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user