-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
cristi
committed
Oct 13, 2009
1 parent
68ffbca
commit 161c155
Showing
11 changed files
with
106 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
- content_for 'popups' do | ||
#custom_fields.popup{:style => 'display:none'} | ||
#custom_fields_busy.busy{:style => "display: none"}= image('spinner.gif', :alt => "") | ||
%h3.title Custom Fields | ||
#custom_fields_wrap | ||
%IFRAME{:src => custom_fields_path(model),:id => "CFframe", :style => 'width:880px;height:400px;'} | ||
%p | ||
= link_to 'Close', "#", :class => 'close' | ||
%IFRAME{:src => custom_fields_path(model),:id => "CFframe", :style => 'width:856px;height:400px;'} | ||
%p.close_link=link_to_function "Close", "$(this).closePopup();" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#show_custom_fields | ||
= link_to 'Show Custom Fields', '#', {:id => 'show_custom_fields_link'} unless model.new_record? | ||
#show_custom_fields{ :style => "float:right;"} | ||
%a.popup{ :href => "#custom_fields", :style => "display:block;text-decoration:none;color:black;border:1px solid rgb(0, 92, 157);line-height:20px;width:120px;cursor:pointer;margin:-13px 5px 0 5px;padding:5px 10px;font-size:80%;font-style:italic;background:white;" } Show Custom Fields |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,22 @@ | ||
Event.observe(window, 'load', function () { | ||
Event.observe("show_custom_fields_link", 'click', function () { | ||
$("custom_fields").show(); | ||
Event.observe('enter_new_custom_field', 'click', function () { | ||
$$("select.select_name")[0].hide(); | ||
$("enter_new_custom_field").hide(); | ||
$$("input.tb_name")[0].show(); | ||
$("cancel_enter_new_custom_field").show(); | ||
}); | ||
Event.observe('cancel_enter_new_custom_field', 'click', function () { | ||
$$("select.select_name")[0].show(); | ||
$("enter_new_custom_field").show(); | ||
$$("input.tb_name")[0].hide(); | ||
$("cancel_enter_new_custom_field").hide(); | ||
}); | ||
Event.observe('add_new_custom_field_link', 'click', function () { | ||
$("add_new_custom_field_div").show(); | ||
$("add_new_custom_field_link").hide(); | ||
}); | ||
Event.observe('cancel_new_custom_field', 'click', function () { | ||
$("add_new_custom_field_div").hide(); | ||
$("add_new_custom_field_link").show(); | ||
}) | ||
}); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
.clearfix:after | ||
:content "." | ||
:display block | ||
:height 0 | ||
:clear both | ||
:visibility hidden | ||
.clearfix | ||
:display inline-block | ||
.clearfix | ||
:display block | ||
|
||
#custom_fields_wrap | ||
:width 856px | ||
:overflow auto | ||
:background-color #FFF | ||
|
||
#custom_fields iframe | ||
:border none | ||
|
||
table.cf_forms | ||
:width 90% | ||
:background-color #F9F9F9 | ||
:border 1px solid #DFDFDF | ||
:margin 10px 0 0 5% | ||
|
||
thead | ||
:background-color #F1F1F1 | ||
|
||
th | ||
:padding 3px 10px | ||
|
||
tbody | ||
td | ||
:padding 10px 20px 5px 20px | ||
:vertical-align top | ||
td.cf_name | ||
:width 30% | ||
input, select, textarea | ||
:width 100% | ||
td.cf_value | ||
:width 70% | ||
input, select, textarea | ||
:width 100% | ||
|
||
td.cf_action | ||
:padding 3px 20px | ||
form | ||
:float left | ||
:margin 0 10px 0 0 | ||
|
||
textarea | ||
:border 1px inset threedface | ||
|
||
a.cf_links | ||
:color #0066CC | ||
:text-decoration none | ||
:font-size 13px | ||
|
||
#add_new_custom_field_link | ||
:float right | ||
:color #000 | ||
:margin-right 70px | ||
:padding-left 15px | ||
:background transparent url(/images/admin/plus.png) no-repeat left center | ||
.flash | ||
:padding 5px 0 5px 25px | ||
:margin 0 50px 10px 50px | ||
:font #003300 | ||
:border 2px solid #CCC | ||
&.success | ||
:background #FFF url(/images/admin/accept.png) no-repeat 5px 50% | ||
&.error | ||
:background #FFF url(/images/admin/exclamation.png) no-repeat 5px 50% | ||
&.notice | ||
:backgroun :#FFF url(/images/admin/warning.png) no-repeat 5px 50% |