Skip to content

Commit

Permalink
added meta_description to Fiber front-end admin
Browse files Browse the repository at this point in the history
  • Loading branch information
Niels van Dijk committed Jan 10, 2013
1 parent 26d0283 commit 256f8cf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fiber/admin.py
Expand Up @@ -177,11 +177,13 @@ def __init__(self, *args, **kwargs):
self.fieldsets = (
(None, {'fields': ('title', 'url', )}),
(_('Advanced options'), {'fields': ('redirect_page', 'show_in_menu', 'is_public', )}),
(_('SEO'), {'fields': ('meta_description', )}),
)
else:
self.fieldsets = (
(None, {'fields': ('title', 'url', )}),
(_('Advanced options'), {'fields': ('template_name', 'redirect_page', 'show_in_menu', 'is_public', )}),
(_('SEO'), {'fields': ('meta_description', )}),
)

def save_model(self, request, obj, form, change):
Expand Down
6 changes: 6 additions & 0 deletions fiber/static/fiber/css/admin.css
Expand Up @@ -287,6 +287,7 @@ div.ui-dialog form label {
div.ui-dialog form input[type="text"],
div.ui-dialog form input[type="password"],
div.ui-dialog form select,
div.ui-dialog form textarea,
#ui-file-select-filter-input,
#ui-image-select-filter-input {
margin: 0 0 5px 0;
Expand All @@ -309,6 +310,11 @@ div.ui-dialog form select,
clear: none;
}

div.ui-dialog form textarea {
padding: 3px;
height: 80px;
}

div.ui-dialog form input[type="checkbox"] {
float: left;
margin: 6px 6px 0 0;
Expand Down

0 comments on commit 256f8cf

Please sign in to comment.