<commit_before><!DOCTYPE html>
<html class="no-js" lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <div th:include="fragments/layout :: head" th:with="pageTitle='Project Manager'" th:remove="tag" />
</head>
<body th:with="context='project'" class="project-detail project-manager">
<div th:include="fragments/layout :: body-start" th:remove="tag" />
<div th:include="fragments/layout :: global-header" th:remove="tag" />

<main id="content">
    <div th:include="fragments/layout :: main-content-start" th:remove="tag" />
    <div th:include="fragments/layout :: header-sub" th:with="linkTitle='Project details',linkClass='link-back',linkUrl=@{/project/{projectId}/details(projectId=${model.projectId})}"  th:remove="tag"></div>

    <div class="page-title">
        <div th:include="fragments/elements :: project-title (projectId=${model.projectId}, projectName=${model.projectName})" th:remove="tag" />
        <h1 class="heading-xlarge">Project manager</h1>
    </div>

    <form method="POST" th:action="@{${#ifsUtil.uriWithQueryString(#httpServletRequest)}}" th:object="${form}">
        <fieldset>
          <h2 class="heading-medium">Project manager</h2>
          <div class="form-group" th:classappend="${#fields.hasErrors('projectManager') ? 'error' : ''}">
              <legend>
                <span class="visuallyhidden">Project manager</span>
                 <div th:if="${#fields.hasErrors('projectManager')}" th:remove="tag">
                    <span class="error-message" th:each="err : ${#fields.errors('projectManager')}" th:text="${err}" />
                </div>
              </legend>
              <p class="form-hint">Who will be the project manager for your project?</p>
              <p>As lead partner you must choose a project manager for the duration of your project. We need this information now so that your Monitoring Officer can contact the project manager.</p>
              <div class="extra-margin">
                <div th:each="user : ${model.organisationUsers}" th:remove="tag">
                    <label th:for="${#ids.next('projectManager')}" class="block-label">
                        <input type="radio" th:field="*{projectManager}" th:value="${user.id}" required="required"  data-required-errormessage="You need to select a Project Manager before you can continue" />
                        <span th:text="${user.name}" th:remove="tag"></span>
                    </label>
                </div>
                <div th:each="user : ${model.invitedUsers}" th:remove="tag">
                  <label th:for="${#ids.next('projectManager')}" class="block-label">
                      <span th:text="${user.name}" th:remove="tag"></span>
                  </label>
                </div>
                <label for="new" class="block-label" data-target="project-manager-table">
                    <input id="new" th:field="*{projectManager}" type="radio" value="-1" data-required-errormessage="You need to select a Project Manager before you can continue" required="required" />
                    Add new team member
                    <span class="form-hint">A new team member will be invited to join the project</span>
                </label>
              </div>
            </div>
        </fieldset>
        <button class="visuallyhidden" type="submit" id="save">Save</button>
    </form>
    <table class="extra-margin js-hidden" id="project-manager-table">
        <thead>
        <tr>
            <th scope="col" id="project-manager-name">Name</th>
            <th scope="col" id="project-manager-email">E-mail</th>
            <th>&nbsp;</th>
        </tr>
        </thead>
        <tbody>
        <form method="POST" th:action="@{/project/{projectId}/details/invite-project-manager(projectId=${model.projectId})}" th:object="${inviteForm}">
            <tr>
                <td>
                    <label for="name-project-manager" class="visuallyhidden">name</label>
                    <input type="text" class="form-control width-full" value="" name="name" id="name-project-manager" required="required"/>
                </td>
                <td>
                    <label for="email-project-manager" class="visuallyhidden">email</label>
                    <input type="email" class="form-control width-full" value="" name="email" id="email-project-manager" required="required"/>
                </td>
                <td th:unless="${#strings.isEmpty(inviteForm.emailExistsError)}">
                    <span th:text="${inviteForm.emailExistsError}" th:remove="tag"></span>
                </td>
                <td class="alignright">
                    <button class="buttonlink no-margin-bottom" id="invite-project-manager">Invite to project</button>
                </td>
            </tr>
        </form>
        </tbody>
    </table>
    <label for="save" tabindex="0" role="button" class="button no-margin-right">Save</label>

    <div th:include="fragments/layout :: main-content-end" th:remove="tag" />
</main>

<div th:include="fragments/layout :: footer" th:remove="tag" />
<div th:include="fragments/layout :: body-end" th:remove="tag" />

</body>
</html>
<commit_msg>INFUND-4889 project manager -> Project Manager<commit_after><!DOCTYPE html>
<html class="no-js" lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <div th:include="fragments/layout :: head" th:with="pageTitle='Project Manager'" th:remove="tag" />
</head>
<body th:with="context='project'" class="project-detail project-manager">
<div th:include="fragments/layout :: body-start" th:remove="tag" />
<div th:include="fragments/layout :: global-header" th:remove="tag" />

<main id="content">
    <div th:include="fragments/layout :: main-content-start" th:remove="tag" />
    <div th:include="fragments/layout :: header-sub" th:with="linkTitle='Project details',linkClass='link-back',linkUrl=@{/project/{projectId}/details(projectId=${model.projectId})}"  th:remove="tag"></div>

    <div class="page-title">
        <div th:include="fragments/elements :: project-title (projectId=${model.projectId}, projectName=${model.projectName})" th:remove="tag" />
        <h1 class="heading-xlarge">Project Manager</h1>
    </div>

    <form method="POST" th:action="@{${#ifsUtil.uriWithQueryString(#httpServletRequest)}}" th:object="${form}">
        <fieldset>
          <h2 class="heading-medium">Project Manager</h2>
          <div class="form-group" th:classappend="${#fields.hasErrors('projectManager') ? 'error' : ''}">
              <legend>
                <span class="visuallyhidden">Project Manager</span>
                 <div th:if="${#fields.hasErrors('projectManager')}" th:remove="tag">
                    <span class="error-message" th:each="err : ${#fields.errors('projectManager')}" th:text="${err}" />
                </div>
              </legend>
              <p class="form-hint">Who will be the Project Manager for your project?</p>
              <p>As lead partner you must choose a Project Manager for the duration of your project. We need this information now so that your Monitoring Officer can contact the Project Manager.</p>
              <div class="extra-margin">
                <div th:each="user : ${model.organisationUsers}" th:remove="tag">
                    <label th:for="${#ids.next('projectManager')}" class="block-label">
                        <input type="radio" th:field="*{projectManager}" th:value="${user.id}" required="required"  data-required-errormessage="You need to select a Project Manager before you can continue" />
                        <span th:text="${user.name}" th:remove="tag"></span>
                    </label>
                </div>
                <div th:each="user : ${model.invitedUsers}" th:remove="tag">
                  <label th:for="${#ids.next('projectManager')}" class="block-label">
                      <span th:text="${user.name}" th:remove="tag"></span>
                  </label>
                </div>
                <label for="new" class="block-label" data-target="project-manager-table">
                    <input id="new" th:field="*{projectManager}" type="radio" value="-1" data-required-errormessage="You need to select a Project Manager before you can continue" required="required" />
                    Add new team member
                    <span class="form-hint">A new team member will be invited to join the project</span>
                </label>
              </div>
            </div>
        </fieldset>
        <button class="visuallyhidden" type="submit" id="save">Save</button>
    </form>
    <table class="extra-margin js-hidden" id="project-manager-table">
        <thead>
        <tr>
            <th scope="col" id="project-manager-name">Name</th>
            <th scope="col" id="project-manager-email">E-mail</th>
            <th>&nbsp;</th>
        </tr>
        </thead>
        <tbody>
        <form method="POST" th:action="@{/project/{projectId}/details/invite-project-manager(projectId=${model.projectId})}" th:object="${inviteForm}">
            <tr>
                <td>
                    <label for="name-project-manager" class="visuallyhidden">name</label>
                    <input type="text" class="form-control width-full" value="" name="name" id="name-project-manager" required="required"/>
                </td>
                <td>
                    <label for="email-project-manager" class="visuallyhidden">email</label>
                    <input type="email" class="form-control width-full" value="" name="email" id="email-project-manager" required="required"/>
                </td>
                <td th:unless="${#strings.isEmpty(inviteForm.emailExistsError)}">
                    <span th:text="${inviteForm.emailExistsError}" th:remove="tag"></span>
                </td>
                <td class="alignright">
                    <button class="buttonlink no-margin-bottom" id="invite-project-manager">Invite to project</button>
                </td>
            </tr>
        </form>
        </tbody>
    </table>
    <label for="save" tabindex="0" role="button" class="button no-margin-right">Save</label>

    <div th:include="fragments/layout :: main-content-end" th:remove="tag" />
</main>

<div th:include="fragments/layout :: footer" th:remove="tag" />
<div th:include="fragments/layout :: body-end" th:remove="tag" />

</body>
</html>

{'fraction_non_alphanumeric': 0.17472262421611193, 'fraction_numerical': 0.0025084418716835506, 'mean_word_length': 2.619413407821229, 'pattern_counts': {'":': 0, '<': 207, '<?xml version=': 0, '>': 208, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '2410456', 'n_tokens_mistral': 2983, 'n_tokens_neox': 2886, 'n_words': 586}