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.
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 })
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 })