Last active
February 27, 2017 14:38
-
-
Save rbaty-barr/3af8ffae1e49398766d6d86c63451c7c to your computer and use it in GitHub Desktop.
I want to dropdown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage | |
@using RJP.MultiUrlPicker.Models; | |
@{ | |
var multiUrlPicker = Model.Content.GetPropertyValue<MultiUrls>("wantToItems"); | |
if (multiUrlPicker.Any()) | |
{ | |
<div class="row"> | |
<div class="col-sm-4"> | |
<p class="wantToHeader">I want to...</p> | |
</div> | |
<div class="col-sm-8"> | |
<select id="wantTo" class="form-control"> | |
<option value="none">Make a Selection</option> | |
@foreach (var item in multiUrlPicker) | |
{ | |
<option value="@item.Url">@item.Name</option> | |
} | |
</select> | |
</div> | |
</div> | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment