HTBox / allReady

This repo contains the code for allReady, an open-source solution focused on increasing awareness, efficiency and impact of preparedness campaigns as they are delivered by humanitarian and disaster response organizations in local communities.
http://www.htbox.org/projects/allready
MIT License
891 stars 627 forks source link

Re-use component for editing Locations #2287 #2299

Closed SirwanAfifi closed 6 years ago

SirwanAfifi commented 6 years ago

As suggested on #2287 we can re-use EditorTemplate for Event\Edit.cshtml . for required field (Address1) we can pass additional parameter to the EditorTemplate: @Html.EditorFor(m => m.Location, new { RequiredAddressOne = Model.EventType == EventType.Rally })

MisterJames commented 6 years ago

Great stuff, thanks @SirwanAfifi !