Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

Commit

Permalink
some form css tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
thraxil committed Aug 2, 2008
1 parent 12fc6c0 commit 0c03f50
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
11 changes: 9 additions & 2 deletions fu/templates/admin_issue.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,16 @@
<h2>articles</h2>
<form action="edit_tags/" method="post">
<table width="100%">
<tr><th>article</th><th>author</th><th>tags</th></tr>
<tr><th></th><th>article</th><th>author</th><th>tags</th></tr>
{% for article in issue.article_set.all %}
<tr class="{% cycle 'even' 'odd' %}"><td><a href="/admin/fu/article/{{article.id}}/">{{ article.headline }}</a></td>
<tr class="{% cycle 'even' 'odd' %}">
<td><span class="atype">
{% ifequal article.atype "article" %}A{% endifequal %}
{% ifequal article.atype "editorial" %}E{% endifequal %}
{% ifequal article.atype "photos" %}P{% endifequal %}
{% ifequal article.atype "cartoon" %}C{% endifequal %}</span>
</td>
<td><a href="/admin/fu/article/{{article.id}}/">{{ article.headline }}</a></td>
<td><nobr><a href="/admin/fu/author/{{ article.author.id}}/">{{ article.author }}</a></nobr></td>
<td><input type="text" style="width: 100%" name="tags-{{article.id}}" value="{{ article.tags_string }}" /></td>
</tr>
Expand Down
8 changes: 8 additions & 0 deletions media/css/site.css
Original file line number Diff line number Diff line change
Expand Up @@ -330,3 +330,11 @@ tr.even td {background-color: #ffc;}
th { vertical-align: top; text-align: left; background-color: #eee;}

.thumb { float: left; width: 110px; height: 110px; display: block;}

.atype { font-weight: bold; border: #000 solid 2px; padding: 2px;}

textarea { border: #000 solid 1px;}
input[type="text"] { border: #000 solid 1px;}
input:focus, textarea:focus{
background-color: lightyellow;
}

0 comments on commit 0c03f50

Please sign in to comment.