{exp:channel:entries channel="clients" disable="categories|category_fields|member_data" dynamic="no" entry_id="{segment_3}" limit="1" status="open|closed" } {if no_results} {redirect="404"} {/if}

Edit the client

View referred clients
{if segment_4 == 'success'}
You have successfully edited the client details
{/if} {exp:safecracker channel="clients" entry_id="{segment_3}" include_jquery="no" return="dashboard/manage_client/{segment_3}/success" rules:client_organisation_id="required|numeric" rules:client_first_name="required" rules:client_last_name="required" rules:client_home_number="required|numeric" rules:client_mobile_number="numeric" rules:client_address_line_1="required" rules:client_address_town="required" rules:client_address_city="required" rules:client_address_postcode="required" rules:client_number_of_adults="required" rules:client_number_of_children="required" } {!-- Keep this to allow Safecracker to edit this content - Weird EE / Safecracker bug --} {!-- END --} {!-- Hidden fields --} {!-- Remove client from the unprocessed list if they are edited by the admin --} {!-- END --} {status_menu}
Open = Active. Closed = Archive. {/status_menu}
{field:client_children_details} {field:client_dietary} {field:food_plus_notes}
{options:client_information_sheet_signed} {/options:client_information_sheet_signed} {options:client_accepted_tandc} {/options:client_accepted_tandc} {options:client_food_information_given} {/options:client_food_information_given} {options:client_feedback_received} {/options:client_feedback_received}
{field:client_box} {!-- Matrix row count - used for checking. Value added via JS --} {!-- END --} {field:client_next_box}
{/exp:safecracker}
{/exp:channel:entries}