From 74a2b88a983841f0f1e0cfca692e7e18d00f1b3f Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Thu, 23 Jul 2009 14:57:42 -0300 Subject: [PATCH] ActionItem1126: better formatting --- app/views/profile_editor/_organization.rhtml | 4 ++-- public/stylesheets/controller_profile_editor.css | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/app/views/profile_editor/_organization.rhtml b/app/views/profile_editor/_organization.rhtml index 323161b..54b5bad 100644 --- a/app/views/profile_editor/_organization.rhtml +++ b/app/views/profile_editor/_organization.rhtml @@ -45,10 +45,10 @@ <%= labelled_form_field( _('Address'), '' + url_for(profile.url).gsub(/#{profile.identifier}$/, '') + text_field(:profile_data, :identifier, :onchange => "warn_value_change(this)", :size => 15) + '' + - content_tag('div', '' + _('WARNING:') + ' ' + _("the address was changed, this might break any external links to this profile and articles in this profile, you really want to change? ") + + content_tag('div', '' + _('WARNING!') + ' ' + _("You are about to change the address, and this will break external links to the homepage or to content inside it. Do you really want to change? ") + '
' + button_to_function(:ok, _("Yes"), 'hide_warning()') + ' ' + button_to_function(:cancel, _('No'), '$("profile_data_identifier").value = $("old_profile_identifier").value; hide_warning()') + '
', - :id => 'identifier-change-confirmation' + :id => 'identifier-change-confirmation', :style => 'display: none;' ) ) %> diff --git a/public/stylesheets/controller_profile_editor.css b/public/stylesheets/controller_profile_editor.css index 1381210..234e3a8 100644 --- a/public/stylesheets/controller_profile_editor.css +++ b/public/stylesheets/controller_profile_editor.css @@ -32,14 +32,15 @@ } #identifier-change-confirmation { - background-color: #EE4444; - padding: 3px 20px 3px 20px; + background-color: #ef2929; + border: 6px solid #a40000; + padding: 20px; margin: 5px 30px 10px 30px; } #identifier-change-confirmation div { text-align: right; - padding: 0px 10px 5px 0px; + padding: 20px 10px 0px 0px; } code input { -- libgit2 0.21.2