Permalink
Browse files

more tb2 tweaks, big change, make permissions=True default for CRUDL …

…objects
  • Loading branch information...
nicpottier committed Mar 26, 2012
1 parent e8c609d commit f2789a35f33501d325be2bf2458ba3130bd037b8
Showing with 12 additions and 4 deletions.
  1. +9 −1 smartmin/static/css/smartmin_styles.css
  2. +2 −2 smartmin/templates/base.html
  3. +1 −1 smartmin/views.py
@@ -11,6 +11,14 @@ body {
.container {
}
+.table {
+ margin-bottom: 1px;
+}
+
+.form-horizontal .help-block {
+ margin-top: 3px;
+}
+
table .headerSortUp, table .headerSortDown {
background-color: rgba(141, 192, 219, 0.25);
text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
@@ -101,7 +109,7 @@ form div.clearfix.form-field.error {
}
input, textarea, select, .uneditable-input {
- width: 340px;
+ width: 500px;
}
.help-inline, .help-block {
@@ -79,9 +79,9 @@
{% block messages %}
{% if messages %}
{% for message in messages %}
- <div class="alert alert-block {{ message.tags }}">
+ <div class="alert alert-{{ message.tags }}">
<a class="close" data-dismiss="alert">×</a>
- <p>{{ message }}</p>
+ {{ message }}
</div>
{% endfor %}
{% endif %}
View
@@ -1158,7 +1158,7 @@ class SmartCRUDL(object):
module_name = None
path = None
- permissions = False
+ permissions = True
def __init__(self, model=None, path=None, actions=None):
# set our model if passed in

0 comments on commit f2789a3

Please sign in to comment.