tweak ui: form, quick link to edit a model in the popup menu

This commit is contained in:
did 2011-06-23 07:10:17 -07:00
parent fa7e4c24d8
commit 587d383ac5
5 changed files with 23 additions and 4 deletions

View File

@ -12,6 +12,7 @@
- each_content_type_menu_item do |content_type| - each_content_type_menu_item do |content_type|
.header .header
%p= link_to t('admin.contents.index.new'), new_admin_content_url(content_type.slug) %p= link_to t('admin.contents.index.new'), new_admin_content_url(content_type.slug)
%p.edit= link_to t('admin.contents.index.edit'), edit_admin_content_type_url(content_type)
.inner .inner
%h2!= t('admin.contents.index.lastest_items') %h2!= t('admin.contents.index.lastest_items')
%ul %ul

View File

@ -24,7 +24,9 @@ x bushido changes in the master
x SEO: support and support/ should be 2 different pages. Remove trailing slash x SEO: support and support/ should be 2 different pages. Remove trailing slash
x issue #91: httparty x issue #91: httparty
x issue #90: seo metadata x issue #90: seo metadata
- issue #57: seo page title x issue #57: seo page title
x issue #56
x tweak ui: form, quick link to edit a model in the popup menu
- Has_one => group by in the select - Has_one => group by in the select
- convert existing templates (the 2 of the themes section) - convert existing templates (the 2 of the themes section)
- better hints: - better hints:

View File

@ -80,7 +80,7 @@ form.formtastic fieldset.inputs ol {
form.formtastic fieldset ol li { width: 100%; position: relative; margin-bottom: 1.3em; } form.formtastic fieldset ol li { width: 100%; position: relative; margin-bottom: 1.3em; }
form.formtastic fieldset ol li label { text-align: left; padding: 0.3em 2em 0 20px; font-size: 0.8em; color: #17171b; width: 15%; } form.formtastic fieldset ol li label { text-align: left; padding: 0.4em 2em 0 20px; font-size: 0.8em; width: 15%; color: #585a69; text-shadow: #fff 0px 1px; }
form.formtastic fieldset ol li.string input, form.formtastic fieldset ol li.string input,
form.formtastic fieldset ol li.password input, form.formtastic fieldset ol li.password input,
@ -88,12 +88,16 @@ form.formtastic fieldset ol li.numeric input,
form.formtastic fieldset ol li.text textarea, form.formtastic fieldset ol li.text textarea,
form.formtastic fieldset ol li code textarea, form.formtastic fieldset ol li code textarea,
form.formtastic fieldset ol li input[type=password] { form.formtastic fieldset ol li input[type=password] {
padding: 4px; padding: 4px 5px;
font-size: 0.9em; font-size: 0.9em;
font-weight: bold;
width: 45%; width: 45%;
color: #787a89; color: #17171b;
background: white url(/images/admin/form/field.png) repeat-x 0 0; background: white url(/images/admin/form/field.png) repeat-x 0 0;
border: 1px solid #a6a8b8; border: 1px solid #a6a8b8;
-webkit-box-shadow: #f1f1f1 0px 1px;
-moz-box-shadow: #f1f1f1 0px 1px;
box-shadow: #f1f1f1 0px 1px;
} }
form.formtastic fieldset ol li.text textarea.html { form.formtastic fieldset ol li.text textarea.html {

View File

@ -170,6 +170,10 @@
font-size: 0.8em; font-size: 0.8em;
background: transparent url(/images/admin/menu/popup/add.png) no-repeat left 4px; background: transparent url(/images/admin/menu/popup/add.png) no-repeat left 4px;
padding-left: 12px; } padding-left: 12px; }
#submenu .popup p.edit {
padding-top: 0px; }
#submenu .popup p.edit a {
background: transparent url(/images/admin/menu/popup/bullet.png) no-repeat left 5px; }
#submenu .popup ul { #submenu .popup ul {
list-style-image: url(/images/admin/menu/popup/bullet.png); list-style-image: url(/images/admin/menu/popup/bullet.png);
margin: 0px 0px 0 15px; } margin: 0px 0px 0 15px; }

View File

@ -184,6 +184,14 @@
background: transparent url(/images/admin/menu/popup/add.png) no-repeat left 4px; background: transparent url(/images/admin/menu/popup/add.png) no-repeat left 4px;
padding-left: 12px; padding-left: 12px;
} }
&.edit {
padding-top: 0px;
a {
background: transparent url(/images/admin/menu/popup/bullet.png) no-repeat left 5px;
}
}
} }
ul { ul {