Anonymous | Login | Signup for a new account | 2023-06-03 06:59 CDT | ![]() |
Main | My View | View Issues | Change Log | Roadmap | Docs | Wiki | Repositories |
Viewing Issue Simple Details [ Jump to Notes ] [ Wiki ] [ Related Changesets ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||
ID | Category | Type | Reproducibility | Date Submitted | Last Update | ||
0000896 | [In-Portal CMS] Admin Interfaces | feature request | always | 2010-10-22 00:10 | 2012-07-25 05:32 | ||
Reporter | Dmitry | View Status | public | Project Name | In-Portal CMS | ||
Assigned To | alex | Developer | |||||
Priority | normal | Resolution | fixed | Fixed in Version | 5.2.0-B1 | ||
Status | closed | Product Version | 5.1.1-B2 | Target Version | 5.2.0 | ||
Time Estimate | No estimate | ||||||
Summary | 0000896: User Address Management in Admin | ||||||
Description |
Implement Admin interfaces for User Address Management under the user record. We should be able to fully manage all addresses as we do now on Front-end. Note that all database and units are already in place and should be used in this task. |
||||||
Additional Information |
1. addr prefix is already a subitem to user's unit config, so no problem with coping to temp tables 2. make sure, that "addr" unit is made subitem via OnAfterConfigRead hook from "addr" unit event handler to user's unit 3. add "Addresses" tab on user adding/editing page 4. see http://guide.in-portal.org/rus/index.php/K4:%D0%A0%D0%B0%D0%B1%D0%BE%D1%82%D0%B0_%D1%81_%D0%BF%D0%BE%D0%B4%D1%87%D0%B8%D0%BD%D1%91%D0%BD%D0%BD%D1%8B%D0%BC%D0%B8_%D0%BF%D1%80%D0%B5%D1%84%D0%B8%D0%BA%D1%81%D0%B0%D0%BC%D0%B8 for more detailed sub-item adding explanation 5. use same controls on address adding/editing page as ones from "My Addresses" section in "advanced" theme |
||||||
Tags | No tags attached. | ||||||
Reference | http://groups.google.com/group/in-portal-dev/browse_thread/thread/f7ef3c1456c85979 | ||||||
Change Log Message | Ability to manage User Addresses in Admin | ||||||
Estimate Points | 1 | ||||||
Attached Files |
![]() Index: install/english.lang =================================================================== --- install/english.lang (revision 14944) +++ install/english.lang (working copy) @@ -302,8 +302,8 @@ <PHRASE Label="la_field_displayorder" Module="Core" Type="1">RGlzcGxheSBPcmRlcg==</PHRASE> <PHRASE Label="la_field_Priority" Module="Core" Type="1">T3JkZXI=</PHRASE> <PHRASE Label="la_fld_Action" Module="Core" Type="1" Column="QWN0aW9u">QWN0aW9u</PHRASE> ![]() Index: admin_templates/users/user_address_edit.tpl =================================================================== --- admin_templates/users/user_address_edit.tpl (revision 0) +++ admin_templates/users/user_address_edit.tpl (revision 0) @@ -0,0 +1,71 @@ +<inp2:adm_SetPopupSize width="750" height="570"/> +<inp2:m_include t="incs/header" body_properties="" /> +<inp2:m_RenderElement name="combined_header" prefix="u" section="in-portal:user_list" title_preset="user_address_edit"/> + +<!-- ToolBar --> +<table class="toolbar" height="30" cellspacing="0" cellpadding="0" width="100%" border="0"> + <tr> + <td> + <script type="text/javascript"> + a_toolbar = new ToolBar(); + + a_toolbar.AddButton( + new ToolBarButton( + 'select', + '<inp2:m_phrase label="la_ToolTip_Save" escape="1"/>', + function() { + submit_event('addr', '<inp2:addr_SaveEvent/>'); + } + ) + ); + + a_toolbar.AddButton( + new ToolBarButton( + 'cancel', + '<inp2:m_phrase label="la_ToolTip_Cancel" escape="1"/>', + function() { + cancel_edit('addr','OnCancel','<inp2:addr_SaveEvent/>','<inp2:m_Phrase label="la_FormCancelConfirmation" escape="1"/>'); + } + ) + ); + + a_toolbar.AddButton( + new ToolBarButton( + 'reset_edit', + '<inp2:m_phrase label="la_ToolTip_Reset" escape="1"/>', + function() { + reset_form('addr', 'OnReset', '<inp2:m_Phrase label="la_FormResetConfirmation" escape="1"/>'); + } + ) + ); + + a_toolbar.Render(); + </script> + </td> + </tr> +</table> + +<inp2:addr_SaveWarning name="grid_save_warning"/> +<inp2:addr_ErrorWarning name="form_error_warning"/> + +<div id="scroll_container"> + <table class="edit-form"> + <inp2:m_RenderElement name="inp_edit_hidden" prefix="addr" field="PortalUserId"/> + <inp2:m_RenderElement name="inp_id_label" prefix="addr" field="AddressId" title="la_fld_Id"/> + <inp2:m_RenderElement name="inp_edit_box" prefix="addr" field="To" title="la_fld_FullName"/> + <inp2:m_RenderElement name="inp_edit_box" prefix="addr" field="Company"/> + <inp2:m_RenderElement name="inp_edit_box" prefix="addr" field="Address1" title="la_fld_AddressLine1"/> + <inp2:m_RenderElement name="inp_edit_box" prefix="addr" field="Address2" title="la_fld_AddressLine2"/> + <inp2:m_RenderElement name="inp_edit_box" prefix="addr" field="City"/> + <inp2:m_RenderElement name="inp_edit_box" prefix="addr" field="State"/> + <inp2:m_RenderElement name="inp_edit_box" prefix="addr" field="Zip"/> + <inp2:m_RenderElement name="inp_edit_options" prefix="addr" field="Country" has_empty="1"/> + <inp2:m_RenderElement name="inp_edit_box" prefix="addr" field="Phone"/> + <inp2:m_RenderElement name="inp_edit_box" prefix="addr" field="Fax"/> + <inp2:m_RenderElement name="inp_edit_box" prefix="addr" field="Email"/> + <inp2:m_RenderElement name="inp_edit_checkbox" prefix="addr" field="LastUsedAsShipping"/> + <inp2:m_RenderElement name="inp_edit_checkbox" prefix="addr" field="LastUsedAsBilling"/> + </table> +</div> + +<inp2:m_include t="incs/footer"/> \ No newline at end of file Index: admin_templates/users/user_edit_addresses.tpl =================================================================== --- admin_templates/users/user_edit_addresses.tpl (revision 0) +++ admin_templates/users/user_edit_addresses.tpl (revision 0) @@ -0,0 +1,132 @@ +<inp2:adm_SetPopupSize width="570" height="540"/> +<inp2:m_include t="incs/header"/> +<inp2:m_RenderElement name="combined_header" section="in-portal:user_list" prefix="u" title_preset="user_edit_addresses" tab_preset="Default" pagination_prefix="addr" pagination="1"/> + +<!-- ToolBar --> +<table class="toolbar" height="30" cellspacing="0" cellpadding="0" width="100%" border="0"> + <tr> + <td> + <table width="100%" cellpadding="0" cellspacing="0"> + <tr> + <td> + <script type="text/javascript"> + a_toolbar = new ToolBar(); + + a_toolbar.AddButton( + new ToolBarButton( + 'select', + '<inp2:m_phrase label="la_ToolTip_Save" escape="1"/>', + function() { + submit_event('u', '<inp2:u_SaveEvent/>'); + } + ) + ); + + a_toolbar.AddButton( + new ToolBarButton( + 'cancel', + '<inp2:m_phrase label="la_ToolTip_Cancel" escape="1"/>', + function() { + cancel_edit('u','OnCancelEdit','<inp2:u_SaveEvent/>','<inp2:m_Phrase label="la_FormCancelConfirmation" escape="1"/>'); + } + ) + ); + + a_toolbar.AddButton( new ToolBarSeparator('sep1') ); + + a_toolbar.AddButton( + new ToolBarButton( + 'prev', + '<inp2:m_phrase label="la_ToolTip_Prev" escape="1"/>', + function() { + go_to_id('u', '<inp2:u_PrevId/>'); + } + ) + ); + + a_toolbar.AddButton( + new ToolBarButton( + 'next', + '<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>', + function() { + go_to_id('u', '<inp2:u_NextId/>'); + } + ) + ); + + a_toolbar.AddButton( new ToolBarSeparator('sep2') ); + + <!-- Start Address Buttons --> + + function edit() + { + std_edit_temp_item('addr', 'in-commerce/users/user_address_edit'); + } + + a_toolbar.AddButton( + new ToolBarButton( + 'new_item', + '<inp2:m_phrase label="la_ToolTip_NewAddress" escape="1"/>', + function() { + std_new_item('addr', 'in-commerce/users/user_address_edit') + } + ) + ); + + a_toolbar.AddButton( + new ToolBarButton( + 'edit', + '<inp2:m_phrase label="la_ToolTip_Edit" escape="1"/>', + edit + ) + ); + + a_toolbar.AddButton( + new ToolBarButton( + 'delete', + '<inp2:m_phrase label="la_ToolTip_Delete" escape="1"/>', + function() { + std_delete_items('area') + } + ) + ); + + a_toolbar.AddButton( + new ToolBarButton( + 'view', + '<inp2:m_phrase label="la_ToolTip_View" escape="1"/>', + function(id) { + show_viewmenu(a_toolbar, 'view'); + } + ) + ); + + <!-- End Address Buttons --> + + a_toolbar.Render(); + + <inp2:m_if check="u_IsSingle"> + a_toolbar.HideButton('prev'); + a_toolbar.HideButton('next'); + a_toolbar.HideButton('sep1'); + <inp2:m_else/> + <inp2:m_if check="u_IsLast"> + a_toolbar.DisableButton('next'); + </inp2:m_if> + <inp2:m_if check="u_IsFirst"> + a_toolbar.DisableButton('prev'); + </inp2:m_if> + </inp2:m_if> + </script> + </td> + </tr> + </table> + </td> + </tr> +</table> +<inp2:m_RenderElement name="grid" PrefixSpecial="addr" IdField="AddressId" grid="Default"/> +<script type="text/javascript"> +Grids['addr'].SetDependantToolbarButtons( new Array('edit','delete') ); +</script> + +<inp2:m_include t="incs/footer"/> \ No newline at end of file Index: install/english.lang =================================================================== --- install/english.lang (revision 14944) +++ install/english.lang (working copy) @@ -254,6 +254,7 @@ <PHRASE Label="la_fld_From" Module="In-Commerce" Type="1">RnJvbQ==</PHRASE> <PHRASE Label="la_fld_FromAmount" Module="In-Commerce" Type="1" Column="RnJvbSBBbW91bnQ=">RnJvbSBBbW91bnQ=</PHRASE> <PHRASE Label="la_fld_FromDateTime" Module="In-Commerce" Type="1">RnJvbSBkYXRlL3RpbWU=</PHRASE> + <PHRASE Label="la_fld_FullName" Module="In-Commerce" Type="1" Column="RnVsbCBOYW1l">RnVsbCBOYW1l</PHRASE> <PHRASE Label="la_fld_Gateway" Module="In-Commerce" Type="1">R2F0ZXdheQ==</PHRASE> <PHRASE Label="la_fld_GiftCertificateAmountApplied" Module="In-Commerce" Type="1">R2lmdCBDZXJ0aWZpY2F0ZSBhbW91bnQ=</PHRASE> <PHRASE Label="la_fld_GiftCertificateNumber" Module="In-Commerce" Type="1">R2lmdCBDZXJ0aWZpY2F0ZSBudW1iZXI=</PHRASE> @@ -268,6 +269,8 @@ <PHRASE Label="la_fld_IsRecurringBilling" Module="In-Commerce" Type="1">UmVjdXJyaW5nIEJpbGxpbmc=</PHRASE> <PHRASE Label="la_fld_ItemsSold" Module="In-Commerce" Type="1">SXRlbXMgU29sZA==</PHRASE> <PHRASE Label="la_fld_LastPaymentDate" Module="In-Commerce" Type="1">TGFzdCBQYXltZW50IERhdGU=</PHRASE> + <PHRASE Label="la_fld_LastUsedAsBilling" Module="In-Commerce" Type="1">TGFzdCBVc2VkIGFzIEJpbGxpbmc=</PHRASE> + <PHRASE Label="la_fld_LastUsedAsShipping" Module="In-Commerce" Type="1">TGFzdCBVc2VkIGFzIFNoaXBwaW5n</PHRASE> <PHRASE Label="la_fld_LastUsedBy" Module="In-Commerce" Type="1" Column="TGFzdCBVc2VkIEJ5">TGFzdCBVc2VkIEJ5</PHRASE> <PHRASE Label="la_fld_LastUsedOn" Module="In-Commerce" Type="1" Column="TGFzdCBVc2VkIE9u">TGFzdCBVc2VkIE9u</PHRASE> <PHRASE Label="la_fld_Listable" Module="In-Commerce" Type="1" Column="TGlzdGFibGU=">TGlzdGFibGU=</PHRASE> @@ -640,6 +643,7 @@ <PHRASE Label="la_SZL" Module="In-Commerce" Type="1">TGlsYW5nZW5p</PHRASE> <PHRASE Label="la_tab_Access" Module="In-Commerce" Type="1">QWNjZXNz</PHRASE> <PHRASE Label="la_tab_AccessAndPricing" Module="In-Commerce" Type="1">QWNjZXNzICYgUHJpY2luZw==</PHRASE> + <PHRASE Label="la_tab_Addresses" Module="In-Commerce" Type="1">QWRkcmVzc2Vz</PHRASE> <PHRASE Label="la_tab_AffiliatePaymentTypes" Module="In-Commerce" Type="1">QWZmaWxpYXRlIFBheW1lbnQgVHlwZXM=</PHRASE> <PHRASE Label="la_tab_AffiliatePlans" Module="In-Commerce" Type="1">QWZmaWxpYXRlIFBsYW5z</PHRASE> <PHRASE Label="la_tab_Affiliates" Module="In-Commerce" Type="1">QWZmaWxpYXRlcw==</PHRASE> @@ -713,6 +717,7 @@ <PHRASE Label="la_text_StoreName" Module="In-Commerce" Type="1">U3RvcmUgTmFtZQ==</PHRASE> <PHRASE Label="la_Text_TopSellers" Module="In-Commerce" Type="1">VG9wIHNlbGxlcnM=</PHRASE> <PHRASE Label="la_THB" Module="In-Commerce" Type="1">QmFodA==</PHRASE> + <PHRASE Label="la_title_AddingAddress" Module="In-Commerce" Type="1">QWRkaW5nIEFkZHJlc3M=</PHRASE> <PHRASE Label="la_title_AddingCurrency" Module="In-Commerce" Type="1">QWRkaW5nIEN1cnJlbmN5</PHRASE> <PHRASE Label="la_title_AddingGiftCertificate" Module="In-Commerce" Type="1">QWRkaW5nIEdpZnQgQ2VydGlmaWNhdGU=</PHRASE> <PHRASE Label="la_title_AddingManufacturer" Module="In-Commerce" Type="1">QWRkaW5nIG1hbnVmYWN0dXJlcg==</PHRASE> @@ -730,6 +735,7 @@ <PHRASE Label="la_title_Adding_Order" Module="In-Commerce" Type="1">QWRkaW5nIE9yZGVy</PHRASE> <PHRASE Label="la_title_Adding_PriceBracket" Module="In-Commerce" Type="1">QWRkaW5nIFByaWNlIEJyYWNrZXQ=</PHRASE> <PHRASE Label="la_title_Adding_Product" Module="In-Commerce" Type="1">QWRkaW5nIFByb2R1Y3Q=</PHRASE> + <PHRASE Label="la_title_Addresses" Module="In-Commerce" Type="1">QWRkcmVzc2Vz</PHRASE> <PHRASE Label="la_title_AffiliatePayments" Module="In-Commerce" Type="1">QWZmaWxpYXRlIFBheW1lbnRz</PHRASE> <PHRASE Label="la_title_AffiliatePaymentTypes" Module="In-Commerce" Type="1">QWZmaWxpYXRlIFBheW1lbnQgVHlwZXM=</PHRASE> <PHRASE Label="la_title_AffiliatePlans" Module="In-Commerce" Type="1">QWZmaWxpYXRlIFBsYW5z</PHRASE> @@ -837,6 +843,7 @@ <PHRASE Label="la_tooltip_Infinity" Module="In-Commerce" Type="1">SW5maW5pdHk=</PHRASE> <PHRASE Label="la_tooltip_Modify" Module="In-Commerce" Type="1">TW9kaWZ5</PHRASE> <PHRASE Label="la_tooltip_MoreBrackets" Module="In-Commerce" Type="1">TW9yZSBCcmFja2V0cw==</PHRASE> + <PHRASE Label="la_ToolTip_NewAddress" Module="In-Commerce" Type="1">TmV3IEFkZHJlc3M=</PHRASE> <PHRASE Label="la_ToolTip_NewAffiliatePaymentType" Module="In-Commerce" Type="1">TmV3IEFmZmlsaWF0ZSBQYXltZW50IFR5cGU=</PHRASE> <PHRASE Label="la_ToolTip_NewGiftCertificate" Module="In-Commerce" Type="1">TmV3IEdpZnQgQ2VydGlmaWNhdGU=</PHRASE> <PHRASE Label="la_tooltip_NewManufacturer" Module="In-Commerce" Type="1">TmV3IE1hbnVmYWN0dXJlcg==</PHRASE> Index: units/addresses/addresses_config.php =================================================================== --- units/addresses/addresses_config.php (revision 14902) +++ units/addresses/addresses_config.php (working copy) @@ -51,7 +51,6 @@ 2 => 'Page', 3 => 'PerPage', 4 => 'event', ![]() Index: install/english.lang =================================================================== --- install/english.lang (revision 14949) +++ install/english.lang (working copy) @@ -302,8 +302,8 @@ <PHRASE Label="la_field_displayorder" Module="Core" Type="1">RGlzcGxheSBPcmRlcg==</PHRASE> <PHRASE Label="la_field_Priority" Module="Core" Type="1">T3JkZXI=</PHRASE> <PHRASE Label="la_fld_Action" Module="Core" Type="1" Column="QWN0aW9u">QWN0aW9u</PHRASE> ![]() Index: admin_templates/users/user_address_edit.tpl =================================================================== --- admin_templates/users/user_address_edit.tpl (revision 0) +++ admin_templates/users/user_address_edit.tpl (revision 0) @@ -0,0 +1,74 @@ +<inp2:adm_SetPopupSize width="750" height="570"/> +<inp2:m_include t="incs/header" body_properties="" /> +<inp2:m_RenderElement name="combined_header" prefix="u" section="in-portal:user_list" title_preset="user_address_edit"/> + +<!-- ToolBar --> +<table class="toolbar" height="30" cellspacing="0" cellpadding="0" width="100%" border="0"> + <tr> + <td> + <script type="text/javascript"> + a_toolbar = new ToolBar(); + + a_toolbar.AddButton( + new ToolBarButton( + 'select', + '<inp2:m_phrase label="la_ToolTip_Save" escape="1"/>', + function() { + submit_event('addr', '<inp2:addr_SaveEvent/>'); + } + ) + ); + + a_toolbar.AddButton( + new ToolBarButton( + 'cancel', + '<inp2:m_phrase label="la_ToolTip_Cancel" escape="1"/>', + function() { + cancel_edit('addr','OnCancel','<inp2:addr_SaveEvent/>','<inp2:m_Phrase label="la_FormCancelConfirmation" escape="1"/>'); + } + ) + ); + + a_toolbar.AddButton( + new ToolBarButton( + 'reset_edit', + '<inp2:m_phrase label="la_ToolTip_Reset" escape="1"/>', + function() { + reset_form('addr', 'OnReset', '<inp2:m_Phrase label="la_FormResetConfirmation" escape="1"/>'); + } + ) + ); + + a_toolbar.Render(); + </script> + </td> + </tr> +</table> + +<inp2:addr_SaveWarning name="grid_save_warning"/> +<inp2:addr_ErrorWarning name="form_error_warning"/> + +<inp2:m_RenderElement name="inp_edit_hidden" prefix="addr" field="PortalUserId"/> + +<div id="scroll_container"> + <table class="edit-form"> + <inp2:m_RenderElement name="inp_id_label" prefix="addr" field="AddressId" title="la_fld_Id"/> + <inp2:m_RenderElement name="inp_edit_box" prefix="addr" field="To" title="la_fld_FullName"/> + <inp2:m_RenderElement name="inp_edit_box" prefix="addr" field="Company"/> + <inp2:m_RenderElement name="inp_edit_box" prefix="addr" field="Email"/> + <inp2:m_RenderElement name="inp_edit_box" prefix="addr" field="Phone"/> + <inp2:m_RenderElement name="inp_edit_box" prefix="addr" field="Fax"/> + <inp2:m_RenderElement name="inp_edit_box" prefix="addr" field="Address1" title="la_fld_AddressLine1"/> + <inp2:m_RenderElement name="inp_edit_box" prefix="addr" field="Address2" title="la_fld_AddressLine2"/> + <inp2:m_RenderElement name="inp_edit_box" prefix="addr" field="City"/> + <inp2:m_RenderElement name="inp_edit_box" prefix="addr" field="State"/> + <inp2:m_RenderElement name="inp_edit_box" prefix="addr" field="Zip"/> + <inp2:m_RenderElement name="inp_edit_options" prefix="addr" field="Country" has_empty="1"/> + <inp2:m_RenderElement name="inp_edit_checkbox" prefix="addr" field="LastUsedAsShipping"/> + <inp2:m_RenderElement name="inp_edit_checkbox" prefix="addr" field="LastUsedAsBilling"/> + <inp2:m_RenderElement name="inp_label" prefix="addr" field="IsProfileAddress"/> + <inp2:m_RenderElement name="inp_edit_filler" /> + </table> +</div> + +<inp2:m_include t="incs/footer"/> \ No newline at end of file Index: admin_templates/users/user_edit_addresses.tpl =================================================================== --- admin_templates/users/user_edit_addresses.tpl (revision 0) +++ admin_templates/users/user_edit_addresses.tpl (revision 0) @@ -0,0 +1,132 @@ +<inp2:adm_SetPopupSize width="570" height="540"/> +<inp2:m_include t="incs/header"/> +<inp2:m_RenderElement name="combined_header" section="in-portal:user_list" prefix="u" title_preset="user_edit_addresses" tab_preset="Default" pagination_prefix="addr" pagination="1"/> + +<!-- ToolBar --> +<table class="toolbar" height="30" cellspacing="0" cellpadding="0" width="100%" border="0"> + <tr> + <td> + <table width="100%" cellpadding="0" cellspacing="0"> + <tr> + <td> + <script type="text/javascript"> + a_toolbar = new ToolBar(); + + a_toolbar.AddButton( + new ToolBarButton( + 'select', + '<inp2:m_phrase label="la_ToolTip_Save" escape="1"/>', + function() { + submit_event('u', '<inp2:u_SaveEvent/>'); + } + ) + ); + + a_toolbar.AddButton( + new ToolBarButton( + 'cancel', + '<inp2:m_phrase label="la_ToolTip_Cancel" escape="1"/>', + function() { + cancel_edit('u','OnCancelEdit','<inp2:u_SaveEvent/>','<inp2:m_Phrase label="la_FormCancelConfirmation" escape="1"/>'); + } + ) + ); + + a_toolbar.AddButton( new ToolBarSeparator('sep1') ); + + a_toolbar.AddButton( + new ToolBarButton( + 'prev', + '<inp2:m_phrase label="la_ToolTip_Prev" escape="1"/>', + function() { + go_to_id('u', '<inp2:u_PrevId/>'); + } + ) + ); + + a_toolbar.AddButton( + new ToolBarButton( + 'next', + '<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>', + function() { + go_to_id('u', '<inp2:u_NextId/>'); + } + ) + ); + + a_toolbar.AddButton( new ToolBarSeparator('sep2') ); + + <!-- Start Address Buttons --> + + function edit() + { + std_edit_temp_item('addr', 'in-commerce/users/user_address_edit'); + } + + a_toolbar.AddButton( + new ToolBarButton( + 'new_item', + '<inp2:m_phrase label="la_ToolTip_NewAddress" escape="1"/>::<inp2:m_phrase label="la_ToolTip_Add" escape="1"/>', + function() { + std_new_item('addr', 'in-commerce/users/user_address_edit') + } + ) + ); + + a_toolbar.AddButton( + new ToolBarButton( + 'edit', + '<inp2:m_phrase label="la_ToolTip_Edit" escape="1"/>', + edit + ) + ); + + a_toolbar.AddButton( + new ToolBarButton( + 'delete', + '<inp2:m_phrase label="la_ToolTip_Delete" escape="1"/>', + function() { + std_delete_items('addr') + } + ) + ); + + a_toolbar.AddButton( + new ToolBarButton( + 'view', + '<inp2:m_phrase label="la_ToolTip_View" escape="1"/>', + function(id) { + show_viewmenu(a_toolbar, 'view'); + } + ) + ); + + <!-- End Address Buttons --> + + a_toolbar.Render(); + + <inp2:m_if check="u_IsSingle"> + a_toolbar.HideButton('prev'); + a_toolbar.HideButton('next'); + a_toolbar.HideButton('sep1'); + <inp2:m_else/> + <inp2:m_if check="u_IsLast"> + a_toolbar.DisableButton('next'); + </inp2:m_if> + <inp2:m_if check="u_IsFirst"> + a_toolbar.DisableButton('prev'); + </inp2:m_if> + </inp2:m_if> + </script> + </td> + </tr> + </table> + </td> + </tr> +</table> +<inp2:m_RenderElement name="grid" PrefixSpecial="addr" IdField="AddressId" grid="Default"/> +<script type="text/javascript"> +Grids['addr'].SetDependantToolbarButtons( new Array('edit','delete') ); +</script> + +<inp2:m_include t="incs/footer"/> Property changes on: admin_templates\users\user_edit_addresses.tpl ___________________________________________________________________ Added: svn:eol-style + LF Index: install/english.lang =================================================================== --- install/english.lang (revision 14949) +++ install/english.lang (working copy) @@ -265,9 +265,12 @@ <PHRASE Label="la_fld_Insurance_Type" Module="In-Commerce" Type="1">SW5zdXJhbmNlIFR5cGU=</PHRASE> <PHRASE Label="la_fld_InventoryStatus" Module="In-Commerce" Type="1">RW5hYmxlZA==</PHRASE> <PHRASE Label="la_fld_IsFreePromoShipping" Module="In-Commerce" Type="1" Column="UHJvbW8=">VXNlIGFzIEZyZWUgUHJvbW8gU2hpcHBpbmc=</PHRASE> + <PHRASE Label="la_fld_IsProfileAddress" Module="In-Commerce" Type="1" Column="UHJvZmlsZSBBZGRyZXNz">UHJvZmlsZSBBZGRyZXNz</PHRASE> <PHRASE Label="la_fld_IsRecurringBilling" Module="In-Commerce" Type="1">UmVjdXJyaW5nIEJpbGxpbmc=</PHRASE> <PHRASE Label="la_fld_ItemsSold" Module="In-Commerce" Type="1">SXRlbXMgU29sZA==</PHRASE> <PHRASE Label="la_fld_LastPaymentDate" Module="In-Commerce" Type="1">TGFzdCBQYXltZW50IERhdGU=</PHRASE> + <PHRASE Label="la_fld_LastUsedAsBilling" Module="In-Commerce" Type="1" Column="TGFzdCBVc2VkIGFzIFNoaXBwaW5n">TGFzdCBVc2VkIGFzIEJpbGxpbmc=</PHRASE> + <PHRASE Label="la_fld_LastUsedAsShipping" Module="In-Commerce" Type="1" Column="TGFzdCBVc2VkIGFzIFNoaXBwaW5n">TGFzdCBVc2VkIGFzIFNoaXBwaW5n</PHRASE> <PHRASE Label="la_fld_LastUsedBy" Module="In-Commerce" Type="1" Column="TGFzdCBVc2VkIEJ5">TGFzdCBVc2VkIEJ5</PHRASE> <PHRASE Label="la_fld_LastUsedOn" Module="In-Commerce" Type="1" Column="TGFzdCBVc2VkIE9u">TGFzdCBVc2VkIE9u</PHRASE> <PHRASE Label="la_fld_Listable" Module="In-Commerce" Type="1" Column="TGlzdGFibGU=">TGlzdGFibGU=</PHRASE> @@ -640,6 +643,7 @@ <PHRASE Label="la_SZL" Module="In-Commerce" Type="1">TGlsYW5nZW5p</PHRASE> <PHRASE Label="la_tab_Access" Module="In-Commerce" Type="1">QWNjZXNz</PHRASE> <PHRASE Label="la_tab_AccessAndPricing" Module="In-Commerce" Type="1">QWNjZXNzICYgUHJpY2luZw==</PHRASE> + <PHRASE Label="la_tab_Addresses" Module="In-Commerce" Type="1">QWRkcmVzc2Vz</PHRASE> <PHRASE Label="la_tab_AffiliatePaymentTypes" Module="In-Commerce" Type="1">QWZmaWxpYXRlIFBheW1lbnQgVHlwZXM=</PHRASE> <PHRASE Label="la_tab_AffiliatePlans" Module="In-Commerce" Type="1">QWZmaWxpYXRlIFBsYW5z</PHRASE> <PHRASE Label="la_tab_Affiliates" Module="In-Commerce" Type="1">QWZmaWxpYXRlcw==</PHRASE> @@ -713,6 +717,7 @@ <PHRASE Label="la_text_StoreName" Module="In-Commerce" Type="1">U3RvcmUgTmFtZQ==</PHRASE> <PHRASE Label="la_Text_TopSellers" Module="In-Commerce" Type="1">VG9wIHNlbGxlcnM=</PHRASE> <PHRASE Label="la_THB" Module="In-Commerce" Type="1">QmFodA==</PHRASE> + <PHRASE Label="la_title_AddingAddress" Module="In-Commerce" Type="1">QWRkaW5nIEFkZHJlc3M=</PHRASE> <PHRASE Label="la_title_AddingCurrency" Module="In-Commerce" Type="1">QWRkaW5nIEN1cnJlbmN5</PHRASE> <PHRASE Label="la_title_AddingGiftCertificate" Module="In-Commerce" Type="1">QWRkaW5nIEdpZnQgQ2VydGlmaWNhdGU=</PHRASE> <PHRASE Label="la_title_AddingManufacturer" Module="In-Commerce" Type="1">QWRkaW5nIG1hbnVmYWN0dXJlcg==</PHRASE> @@ -730,6 +735,7 @@ <PHRASE Label="la_title_Adding_Order" Module="In-Commerce" Type="1">QWRkaW5nIE9yZGVy</PHRASE> <PHRASE Label="la_title_Adding_PriceBracket" Module="In-Commerce" Type="1">QWRkaW5nIFByaWNlIEJyYWNrZXQ=</PHRASE> <PHRASE Label="la_title_Adding_Product" Module="In-Commerce" Type="1">QWRkaW5nIFByb2R1Y3Q=</PHRASE> + <PHRASE Label="la_title_Addresses" Module="In-Commerce" Type="1">QWRkcmVzc2Vz</PHRASE> <PHRASE Label="la_title_AffiliatePayments" Module="In-Commerce" Type="1">QWZmaWxpYXRlIFBheW1lbnRz</PHRASE> <PHRASE Label="la_title_AffiliatePaymentTypes" Module="In-Commerce" Type="1">QWZmaWxpYXRlIFBheW1lbnQgVHlwZXM=</PHRASE> <PHRASE Label="la_title_AffiliatePlans" Module="In-Commerce" Type="1">QWZmaWxpYXRlIFBsYW5z</PHRASE> @@ -745,6 +751,7 @@ <PHRASE Label="la_title_Currencies" Module="In-Commerce" Type="1">Q3VycmVuY2llcw==</PHRASE> <PHRASE Label="la_title_DiscountItems" Module="In-Commerce" Type="1">RGlzY291bnQgSXRlbXM=</PHRASE> <PHRASE Label="la_title_Discounts" Module="In-Commerce" Type="1">RGlzY291bnRz</PHRASE> + <PHRASE Label="la_title_EditingAddress" Module="In-Commerce" Type="1">RWRpdGluZyBBZGRyZXNz</PHRASE> <PHRASE Label="la_title_EditingCurrency" Module="In-Commerce" Type="1">RWRpdGluZyBDdXJyZW5jeQ==</PHRASE> <PHRASE Label="la_title_EditingGiftCertificate" Module="In-Commerce" Type="1">RWRpdGluZyBHaWZ0IENlcnRpZmljYXRl</PHRASE> <PHRASE Label="la_title_EditingManufacturer" Module="In-Commerce" Type="1">RWRpdGluZyBNYW51ZmFjdHVyZXI=</PHRASE> @@ -837,6 +844,7 @@ <PHRASE Label="la_tooltip_Infinity" Module="In-Commerce" Type="1">SW5maW5pdHk=</PHRASE> <PHRASE Label="la_tooltip_Modify" Module="In-Commerce" Type="1">TW9kaWZ5</PHRASE> <PHRASE Label="la_tooltip_MoreBrackets" Module="In-Commerce" Type="1">TW9yZSBCcmFja2V0cw==</PHRASE> + <PHRASE Label="la_ToolTip_NewAddress" Module="In-Commerce" Type="1">TmV3IEFkZHJlc3M=</PHRASE> <PHRASE Label="la_ToolTip_NewAffiliatePaymentType" Module="In-Commerce" Type="1">TmV3IEFmZmlsaWF0ZSBQYXltZW50IFR5cGU=</PHRASE> <PHRASE Label="la_ToolTip_NewGiftCertificate" Module="In-Commerce" Type="1">TmV3IEdpZnQgQ2VydGlmaWNhdGU=</PHRASE> <PHRASE Label="la_tooltip_NewManufacturer" Module="In-Commerce" Type="1">TmV3IE1hbnVmYWN0dXJlcg==</PHRASE> @@ -954,4 +962,4 @@ <EVENT MessageType="html" Event="USER.GIFTCERTIFICATE" Type="1">U3ViamVjdDogR2lmdCBDZXJ0aWZpY2F0ZSAtIEVtYWlsIENvbmZpcm1hdGlvbgoKVGhpcyBpcyBhbiBlbWFpbCBjb25maXJtYXRpb24gdGhhdCBHaWZ0IENlcnRpZmljYXRlICI8aW5wMjptX3BhcmFtIG5hbWU9ImdpZmNlcnRfaWQiLz4iIGhhcyBiZWVuIHN1Y2Nlc3NmdWxseSBlbWFpbGVkIHRvIDxpbnAyOm1fcGFyYW0gbmFtZT0idG9fbmFtZSIvPiAoPGEgaHJlZj0ibWFpbHRvOjxpbnAyOm1fcGFyYW0gbmFtZT0idG9fZW1haWwiLz4iPjxpbnAyOm1fcGFyYW0gbmFtZT0idG9fZW1haWwiLz48L2E+KSAu</EVENT> </EVENTS> </LANGUAGE> |
||||||
|
![]() |
|
![]() |
|
![]() erik (manager) 2011-12-29 12:15 |
Patches attached - needs testing |
![]() alex (manager) 2011-12-30 04:45 |
Problems: 1. addresses deleting wasn't working 2. got "Editing User - Adding Address 'TitleField Missing' " - no title field while editing address in a bluebar 3. phrase for address editing page in a blue bar not translated 4. profile address changing wasn't affecting user record in admin 5. since column phrase translation doesn't get imported on upgrade, then sql were needed to create them Style fixes: 1. OnAfterConfigRead hook should be placed in addresses unit, since it that unit logically hooks to user's unit |
![]() alex (manager) 2011-12-30 04:46 |
Fix committed to 5.2.x branch. Commit Message: Fixes 0000896: User Address Management in Admin Commit on behalf of Erik |
![]() alex (manager) 2012-07-25 05:32 |
Since 5.2.0 version was released. |
![]() |
|||
Modules :: In-Commerce: 5.2.x r14996 Timestamp: 2012-01-05 07:58:48 Author: alex [ Details ] [ Diff ] |
Bug 0000896: User Address Management in Admin 1. corrected way to hook to parent unit |
||
mod - /w/in-commerce/branches/5.2.x/units/addresses/addresses_config.php | [ Diff ] [ File ] | ||
In-Portal CMS: 5.2.x r14954 Timestamp: 2011-12-30 04:46:07 Author: alex [ Details ] [ Diff ] |
Fixes 0000896: User Address Management in Admin Commit on behalf of Erik |
||
mod - /in-portal/branches/5.2.x/core/install/english.lang | [ Diff ] [ File ] | ||
mod - /in-portal/branches/5.2.x/core/install/upgrades.sql | [ Diff ] [ File ] | ||
Modules :: In-Commerce: 5.2.x r14953 Timestamp: 2011-12-30 04:45:46 Author: alex [ Details ] [ Diff ] |
Bug 0000896: User Address Management in Admin Commit on behalf of Erik |
||
add - /w/in-commerce/branches/5.2.x/admin_templates/users | [ File ] | ||
add - /w/in-commerce/branches/5.2.x/admin_templates/users/user_address_edit.tpl | [ File ] | ||
add - /w/in-commerce/branches/5.2.x/admin_templates/users/user_edit_addresses.tpl | [ File ] | ||
mod - /w/in-commerce/branches/5.2.x/install/english.lang | [ Diff ] [ File ] | ||
mod - /w/in-commerce/branches/5.2.x/units/addresses/addresses_config.php | [ Diff ] [ File ] | ||
mod - /w/in-commerce/branches/5.2.x/units/addresses/addresses_event_handler.php | [ Diff ] [ File ] | ||
![]() |
|||
Date Modified | Username | Field | Change |
2012-07-25 05:32 | alex | Note Added: 0005011 | |
2012-07-25 05:32 | alex | Status | resolved => closed |
2012-01-05 07:58 | alex | Changeset attached | 5.2.x r14996 |
2011-12-30 04:46 | alex | Note Added: 0004362 | |
2011-12-30 04:46 | alex | Status | reviewed and tested => resolved |
2011-12-30 04:46 | alex | Fixed in Version | => 5.2.0-B1 |
2011-12-30 04:46 | alex | Resolution | open => fixed |
2011-12-30 04:46 | alex | Assigned To | !COMMUNITY => alex |
2011-12-30 04:46 | alex | Changeset attached | 5.2.x r14954 |
2011-12-30 04:45 | alex | Changeset attached | 5.2.x r14953 |
2011-12-30 04:45 | alex | Note Added: 0004361 | |
2011-12-30 04:45 | alex | Assigned To | alex => !COMMUNITY |
2011-12-30 04:45 | alex | Status | needs testing => reviewed and tested |
2011-12-30 04:43 | alex | File Added: address_management_modules_v2.patch | |
2011-12-30 04:43 | alex | File Added: address_management_core_v2.patch | |
2011-12-29 13:10 | administrator | Target Version | Icebox => 5.2.0 |
2011-12-29 12:15 | erik | Note Added: 0004352 | |
2011-12-29 12:15 | erik | Assigned To | erik => alex |
2011-12-29 12:15 | erik | Developer | => erik |
2011-12-29 12:15 | erik | Status | needs work => needs testing |
2011-12-29 12:14 | erik | File Added: address_management_modules_896.patch | |
2011-12-29 12:13 | erik | File Added: address_management_core_896.patch | |
2011-12-29 03:15 | alex | Estimate Points | 0 => 1 |
2011-12-29 03:15 | alex | Additional Information Updated | View Revisions |
2011-12-15 18:29 | Dmitry | Estimate Points | => 0 |
2011-12-15 18:29 | Dmitry | Assigned To | => erik |
2011-12-15 18:29 | Dmitry | Status | active => needs work |
2010-10-22 00:12 | Dmitry | Summary | Address Management for User in Admin => User Address Management in Admin |
2010-10-22 00:10 | Dmitry | New Issue | |
2010-10-22 00:10 | Dmitry | Reference | => http://groups.google.com/group/in-portal-dev/browse_thread/thread/f7ef3c1456c85979 |
2010-10-22 00:10 | Dmitry | Change Log Message | => Ability to manage User Addresses in Admin |
Main | My View | View Issues | Change Log | Roadmap | Docs | Wiki | Repositories |
Web Development by Intechnic![]() In-Portal Open Source CMS |