Browse Source

Small stylistics change in admin lists

Rafał Pitoń 10 years ago
parent
commit
2855e9ee29

+ 1 - 1
misago/templates/misago/admin/bans/list.html

@@ -25,7 +25,7 @@
 
 
 
 
 {% block table-row %}
 {% block table-row %}
-<td class="lead">
+<td class="item-name">
   {{ item.banned_value }}
   {{ item.banned_value }}
 </td>
 </td>
 <td>
 <td>

+ 1 - 1
misago/templates/misago/admin/forumroles/forumroles.html

@@ -32,7 +32,7 @@
 
 
       {% for form in forms %}
       {% for form in forms %}
       <tr>
       <tr>
-        <td class="lead">
+        <td class="item-name">
           {{ form.role.name }}
           {{ form.role.name }}
         </td>
         </td>
         <td>
         <td>

+ 1 - 1
misago/templates/misago/admin/forumroles/list.html

@@ -20,7 +20,7 @@
 
 
 
 
 {% block table-row %}
 {% block table-row %}
-<td class="lead">
+<td class="item-name">
   {{ item.name }}
   {{ item.name }}
 </td>
 </td>
 <td class="row-action">
 <td class="row-action">

+ 1 - 1
misago/templates/misago/admin/forumroles/roleforums.html

@@ -32,7 +32,7 @@
 
 
       {% for form in forms %}
       {% for form in forms %}
       <tr>
       <tr>
-        <td class="lead">
+        <td class="item-name">
           {% for i in form.forum.level_range %}
           {% for i in form.forum.level_range %}
           &nbsp;&nbsp;&nbsp;&nbsp;
           &nbsp;&nbsp;&nbsp;&nbsp;
           {% endfor %}
           {% endfor %}

+ 1 - 1
misago/templates/misago/admin/forums/list.html

@@ -25,7 +25,7 @@
 
 
 
 
 {% block table-row %}
 {% block table-row %}
-<td class="lead">
+<td class="item-name">
   {% for i in item.level_range %}
   {% for i in item.level_range %}
   &nbsp;&nbsp;&nbsp;&nbsp;
   &nbsp;&nbsp;&nbsp;&nbsp;
   {% endfor %}
   {% endfor %}

+ 1 - 1
misago/templates/misago/admin/ranks/list.html

@@ -29,7 +29,7 @@
 
 
 
 
 {% block table-row %}
 {% block table-row %}
-<td class="lead">
+<td class="item-name">
   {{ item.name }}
   {{ item.name }}
 </td>
 </td>
 <td>
 <td>

+ 1 - 1
misago/templates/misago/admin/roles/list.html

@@ -24,7 +24,7 @@
 
 
 
 
 {% block table-row %}
 {% block table-row %}
-<td class="lead">
+<td class="item-name">
   {{ item.name }}
   {{ item.name }}
 </td>
 </td>
 {% for action in extra_actions %}
 {% for action in extra_actions %}

+ 1 - 1
misago/templates/misago/admin/warnings/list.html

@@ -28,7 +28,7 @@
 
 
 
 
 {% block table-row %}
 {% block table-row %}
-<td class="lead">
+<td class="item-name">
   #{{ forloop.counter }} {{ item.name }}
   #{{ forloop.counter }} {{ item.name }}
 </td>
 </td>
 <td>{{ item.length }}</td>
 <td>{{ item.length }}</td>

+ 0 - 10
misago/users/forms/admin.py

@@ -458,15 +458,6 @@ Warning levels
 """
 """
 class WarningLevelForm(forms.ModelForm):
 class WarningLevelForm(forms.ModelForm):
     name = forms.CharField(label=_("Level name"), max_length=255)
     name = forms.CharField(label=_("Level name"), max_length=255)
-    description = forms.CharField(
-        label=_("Description"), required=False, max_length=1000,
-        help_text=_("Optional message description displayed to users with "
-                    "this warning level."),
-        widget=forms.Textarea(attrs={'rows': 3}),
-        error_messages={
-            'max_length': _("Description can't be longer "
-                            "than 1000 characters.")
-        })
     length_in_minutes = forms.IntegerField(
     length_in_minutes = forms.IntegerField(
         label=_("Length in minutes"), min_value=0,
         label=_("Length in minutes"), min_value=0,
         help_text=_("Enter number of minutes since this warning level was "
         help_text=_("Enter number of minutes since this warning level was "
@@ -483,7 +474,6 @@ class WarningLevelForm(forms.ModelForm):
         model = WarningLevel
         model = WarningLevel
         fields = [
         fields = [
             'name',
             'name',
-            'description',
             'length_in_minutes',
             'length_in_minutes',
             'restricts_posting_replies',
             'restricts_posting_replies',
             'restricts_posting_threads',
             'restricts_posting_threads',