Pass is_primary function result as a variable that indicates whether the section is editable or not - this is essentially the negative of whether the section is considered primary or not.  Modify section_list to use url helper tag.