Ejemplo n.º 1
0
 public PlaylistDetailView(ViewPlaylist p)
     : base("Playlist Detail",
            H1(Text("Playlist Detail - " + p.Name)),
            H3(Text("Name: " + p.Name)),
            H3(Text("Description: " + p.Description)),
            H3(Text("Track List")),
            Ul(
                p.Tracks.Select(track => Li(
                                    A(ResolveUri.ForTrack(track.Key), track.Value),
                                    Form("POST", ResolveUri.ForRemoveTrack(p, track.Key), P(InputSubmit("Remove")))
                                    )).ToArray()
                ),
            Form("POST", ResolveUri.ForPlaylistRemove(p), P(InputSubmit("Delete"))),
            Form("GET", ResolveUri.ForPlaylistEdit(p), P(InputSubmit("Edit"))),
            P(A(ResolveUri.ForHome(), "Home")),
            P(A(ResolveUri.ForSearch(), "Search"))
            )
 {
 }