@ -110,7 +110,7 @@ class IpUserProfileForm(UserProfileForm):
# фио главбуха
' glavbuh_surname ' , ' glavbuh_name ' , ' glavbuh_midname ' ,
# контактная информация - адреса, телефон, факс, почта, сайт
' address ' , ' real_address ' , ' phone_code ' , ' phone ' , ' fax_code ' , ' fax ' , ' email ' , ' site ' ,
' address ' , ' jur_address ' , ' real_address' , ' phone_code ' , ' phone ' , ' fax_code ' , ' fax ' , ' email ' , ' site ' ,
# подписи, печать и логотип
' boss_sign ' , ' glavbuh_sign ' , ' stamp ' , ' logo ' ,
' tmb_logo ' , ' tmb_boss_sign ' , ' tmb_glavbuh_sign ' , ' tmb_stamp ' ,
@ -286,6 +286,7 @@ class UserProfileFiltersForm(MyBaseModelForm):
new_initial [ ' show_ogrn ' ] = bool ( profile . ogrn )
new_initial [ ' show_okpo ' ] = bool ( profile . okpo )
new_initial [ ' show_glavbuh ' ] = bool ( profile . get_glavbuh_fio ( ) )
new_initial [ ' show_jur_address ' ] = bool ( profile . jur_address )
new_initial [ ' show_real_address ' ] = bool ( profile . real_address )
new_initial [ ' show_phone ' ] = bool ( profile . get_full_phone ( ) )
new_initial [ ' show_fax ' ] = bool ( profile . get_full_fax ( ) )
@ -301,12 +302,12 @@ class UserProfileFiltersForm(MyBaseModelForm):
new_initial [ ' show_full_name ' ] = bool ( profile . full_name )
new_initial [ ' show_kpp ' ] = bool ( profile . kpp )
new_initial [ ' show_na_osnovanii ' ] = bool ( profile . na_osnovanii )
new_initial [ ' show_jur_address ' ] = bool ( profile . jur_address )
else :
new_initial [ ' show_inn ' ] = bool ( profile . inn )
new_initial [ ' show_ogrn ' ] = bool ( profile . ogrn )
new_initial [ ' show_okpo ' ] = bool ( profile . okpo )
new_initial [ ' show_glavbuh ' ] = bool ( profile . get_glavbuh_fio ( ) )
new_initial [ ' show_jur_address ' ] = bool ( profile . jur_address )
new_initial [ ' show_real_address ' ] = bool ( profile . real_address )
new_initial [ ' show_phone ' ] = bool ( profile . get_full_phone ( ) )
new_initial [ ' show_fax ' ] = bool ( profile . get_full_fax ( ) )
@ -322,7 +323,6 @@ class UserProfileFiltersForm(MyBaseModelForm):
new_initial [ ' show_full_name ' ] = bool ( profile . full_name )
new_initial [ ' show_kpp ' ] = bool ( profile . kpp )
new_initial [ ' show_na_osnovanii ' ] = bool ( profile . na_osnovanii )
new_initial [ ' show_jur_address ' ] = bool ( profile . jur_address )
if initial :
initial . update ( new_initial )
@ -356,6 +356,7 @@ class UserProfileFiltersForm(MyBaseModelForm):
if not profile . ogrn : f [ ' show_ogrn ' ] . widget . attrs [ ' disabled ' ] = ' disabled '
if not profile . okpo : f [ ' show_okpo ' ] . widget . attrs [ ' disabled ' ] = ' disabled '
if not profile . get_glavbuh_fio ( ) : f [ ' show_glavbuh ' ] . widget . attrs [ ' disabled ' ] = ' disabled '
if not profile . jur_address : f [ ' show_jur_address ' ] . widget . attrs [ ' disabled ' ] = ' disabled '
if not profile . real_address : f [ ' show_real_address ' ] . widget . attrs [ ' disabled ' ] = ' disabled '
if not profile . get_full_phone ( ) : f [ ' show_phone ' ] . widget . attrs [ ' disabled ' ] = ' disabled '
if not profile . get_full_fax ( ) : f [ ' show_fax ' ] . widget . attrs [ ' disabled ' ] = ' disabled '
@ -373,7 +374,6 @@ class UserProfileFiltersForm(MyBaseModelForm):
if not profile . kpp : f [ ' show_kpp ' ] . widget . attrs [ ' disabled ' ] = ' disabled '
if not profile . boss_title : f [ ' show_org_boss_title_and_fio ' ] . widget . attrs [ ' disabled ' ] = ' disabled '
if not profile . na_osnovanii : f [ ' show_na_osnovanii ' ] . widget . attrs [ ' disabled ' ] = ' disabled '
if not profile . jur_address : f [ ' show_jur_address ' ] . widget . attrs [ ' disabled ' ] = ' disabled '
# блокировать чекбоксы, т.к.эти реквизиты юзеру выключать нельзя
if self . _profile_type == consts . IP_PROFILE :
@ -389,7 +389,6 @@ class IpUserProfileFiltersForm(UserProfileFiltersForm):
change_labels = {
' show_profile_type ' : dict ( consts . PROFILE_TYPES ) [ _profile_type ] ,
' show_ogrn ' : u ' ОГРНИП ' ,
' show_real_address ' : u ' Адрес ' ,
}
class Meta ( UserProfileFiltersForm . Meta ) :
@ -405,6 +404,7 @@ class IpUserProfileFiltersForm(UserProfileFiltersForm):
' show_bank_account ' ,
' bank_account ' ,
' show_contact_info ' ,
' show_jur_address ' ,
' show_real_address ' ,
' show_phone ' ,
' show_fax ' ,