<%@ Page Title="" Language="C#" MasterPageFile="~/2ColMaster.Master" AutoEventWireup="true" CodeBehind="LibraryTags.aspx.cs" Inherits="ProcessDefinition.LibraryTags" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentMain" runat="server">

    <asp:ObjectDataSource ID="odsTags" runat="server" OldValuesParameterFormatString="original_{0}"
        SelectMethod="GetAllTags" TypeName="DevProcess.ProcessDefinitionService.ProcessDefinitionManager">
        <SelectParameters>
            <asp:Parameter Name="repositoryName" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <h2>Tag management</h2>
                
<asp:ListView ID="lstTags" runat="server" ItemPlaceholderID="itemTags"
        EnableViewState="False" DataSourceID="odsTags" >

    <LayoutTemplate>
    <ul class="tags edittags">
        <asp:PlaceHolder id="itemTags" runat="server"/>
    </ul>
    </LayoutTemplate>

    <ItemTemplate>
    <%#DevProcess.Common.Utils.StringHelper.Format("<li data-tagid='{2}'><span>{0:multilinenourl}</span> <i>({1})</i></li>", Eval("TagName"), Eval("ProcessCount"), Eval("TagId"))%>
    </ItemTemplate>

    <EmptyDataTemplate>

    </EmptyDataTemplate>
</asp:ListView>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentOptions" runat="server">
        <ul class='ui-widget-content'>
        <li class="btn"><span class="ui-icon ui-icon-disk"></span>
            <a id="btnSave" href="#">Save</a></li>
    </ul>
    <ul class='ui-widget-content'>
        <li class="btn"><span class="ui-icon ui-icon-arrowreturnthick-1-w"></span><a href="..">
            Back to library</a></li>
    </ul>
</asp:Content>
