<commit_before><%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<%@ include file="../include.jsp" %>
<%--
  Copyright 2012 SURFnet bv, The Netherlands

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  --%>

<%--@elvariable id="sps" type="java.util.List<nl.surfnet.coin.selfservice.domain.ServiceProvider>"--%>
<spring:message var="title" code="jsp.allsplmng.title"/>

<jsp:include page="../head.jsp">
  <jsp:param name="title" value="${title}"/>
</jsp:include>

<div class="column-center content-holder">

  <section class="data-table-holder">

    <h1>${title}</h1>
    <div class="data-table-wrapper">
      
      <table id="sp_overview_table" class="table table-bordered table-striped table-above-pagination">
        <thead>
        <tr>
          <th><spring:message code="jsp.sp_overview.name"/></th>
          <th><spring:message code="jsp.sp_overview.lmngid"/></th>
          <th><spring:message code="jsp.sp_overview.detail"/></th>
        </tr>
        </thead>
        <tbody>

        <c:set var="confirmationMessage" scope="request"><spring:message code="jsp.sp_overview.confirm" /></c:set>
        <c:set var="clearButtonTitle" scope="request"><spring:message code="jsp.sp_overview.clearbutton" /></c:set>
        <c:set var="submitButtonTitle" scope="request"><spring:message code="jsp.sp_overview.submitbutton" /></c:set>

        <c:forEach items="${bindings}" var="binding" varStatus="status">
          <c:if test="${not empty binding.serviceProvider.id}">
            <spring:url value="compoundSp-detail.shtml" var="detailUrl" htmlEscape="true">
              <spring:param name="spEntityId" value="${binding.serviceProvider.id}" />
            </spring:url>
            <tr>
              <td title="${binding.serviceProvider.id} - ${fn:substring(binding.serviceProvider.descriptions[locale.language], 0, 40)}"><a href="${detailUrl}">
              		<tags:providername provider="${binding.serviceProvider}"/>
              	</a></td>
              <td>
  			  <form:form method="post" action="save-splmng.shtml" style="margin:0" cssClass="lmng-id-edit">
              	<input value="${binding.lmngIdentifier}" class="lmngIdentifier" type="text" name="lmngIdentifier"/>
              	<input value="${binding.serviceProvider.id}" type="hidden" name="spIdentifier"/>
                <div class="btn-group">
                	<button class="btn btn-small" type="submit" value="clear" title="${clearButtonTitle}" name="submit" onclick="return confirm('${confirmationMessage}');">
                    <i class="icon-ban-circle"></i>
                  </button>
                	<button class="btn btn-small" type="submit" value="submit" title="${submitButtonTitle}" name="submit">
                    <i class="icon-ok"></i>
                  </button><commit_msg>added unique identifier to repeating form objects<commit_after><%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<%@ include file="../include.jsp" %>
<%--
  Copyright 2012 SURFnet bv, The Netherlands

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  --%>

<%--@elvariable id="sps" type="java.util.List<nl.surfnet.coin.selfservice.domain.ServiceProvider>"--%>
<spring:message var="title" code="jsp.allsplmng.title"/>

<jsp:include page="../head.jsp">
  <jsp:param name="title" value="${title}"/>
</jsp:include>

<div class="column-center content-holder">

  <section class="data-table-holder">

    <h1>${title}</h1>
    <div class="data-table-wrapper">
      
      <table id="sp_overview_table" class="table table-bordered table-striped table-above-pagination">
        <thead>
        <tr>
          <th><spring:message code="jsp.sp_overview.name"/></th>
          <th><spring:message code="jsp.sp_overview.lmngid"/></th>
          <th><spring:message code="jsp.sp_overview.detail"/></th>
        </tr>
        </thead>
        <tbody>

        <c:set var="confirmationMessage" scope="request"><spring:message code="jsp.sp_overview.confirm" /></c:set>
        <c:set var="clearButtonTitle" scope="request"><spring:message code="jsp.sp_overview.clearbutton" /></c:set>
        <c:set var="submitButtonTitle" scope="request"><spring:message code="jsp.sp_overview.submitbutton" /></c:set>

        <c:forEach items="${bindings}" var="binding" varStatus="status">
          <c:if test="${not empty binding.serviceProvider.id}">
            <spring:url value="compoundSp-detail.shtml" var="detailUrl" htmlEscape="true">
              <spring:param name="spEntityId" value="${binding.serviceProvider.id}" />
            </spring:url>
            <tr>
              <td title="${binding.serviceProvider.id} - ${fn:substring(binding.serviceProvider.descriptions[locale.language], 0, 40)}"><a href="${detailUrl}">
              		<tags:providername provider="${binding.serviceProvider}"/>
              	</a></td>
              <td>
  			  <form:form id="form-${status.index}" method="post" action="save-splmng.shtml" style="margin:0" cssClass="lmng-id-edit">
              	<input id="lmngId-${status.index}" value="${binding.lmngIdentifier}" class="lmngIdentifier" type="text" name="lmngIdentifier"/>
              	<input id="spId-${status.index}" value="${binding.serviceProvider.id}" type="hidden" name="spIdentifier"/>
                <div class="btn-group">
                	<button class="btn btn-small" type="submit" value="clear" title="${clearButtonTitle}" name="submit" onclick="return confirm('${confirmationMessage}');">
                    <i class="icon-ban-circle"></i>
                  </button>
                	<button class="btn btn-small" type="submit" value="submit" title="${submitButtonTitle}" name="submit">
                    <i class="icon-ok"></i>
                  </button>
{'fraction_non_alphanumeric': 0.16476932294787297, 'fraction_numerical': 0.004194128220491312, 'mean_word_length': 3.2582908163265305, 'pattern_counts': {'":': 0, '<': 127, '<?xml version=': 0, '>': 127, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3022581', 'n_tokens_mistral': 1983, 'n_tokens_neox': 1903, 'n_words': 422}