Skip to content

Instantly share code, notes, and snippets.

@rbaty-barr
Last active February 27, 2017 14:38
Show Gist options
  • Save rbaty-barr/3af8ffae1e49398766d6d86c63451c7c to your computer and use it in GitHub Desktop.
Save rbaty-barr/3af8ffae1e49398766d6d86c63451c7c to your computer and use it in GitHub Desktop.
I want to dropdown
@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