<commit_before><br>
<table class="groupTable">
    <tr>
        <td class="dataCaptionTD"><span class="dataCaptionFormat"> ${ _("Current status")}</span></td>
        <td bgcolor="white" width="100%" class="blacktext" colspan="2">
            <form action="${ setStatusURL }" method="POST">
                <input name="changeTo" type="hidden" value="${ changeTo }">
                <b>${ status }</b>
                <small><input type="submit" class="btn" value="${ changeStatus }"></small>
            </form>
        </td>
    </tr>
    <tr>
        <td class="dataCaptionTD"><span class="dataCaptionFormat"> ${ _("Submission start date")}</span></td>
        <td bgcolor="white" width="100%" class="blacktext">
            ${ startDate }
        </td>
    <form action="${ dataModificationURL }" method="POST">
        <td rowspan="5" valign="bottom" align="right">
            <input type="submit" class="btn" value="${ _("modify")}" ${ disabled }>
        </td>
    </form>
    </tr>
    <tr>
        <td class="dataCaptionTD"><span class="dataCaptionFormat"> ${ _("Submission end date")}</span></td>
        <td bgcolor="white" width="100%" class="blacktext">
            ${ endDate }
        </td>
    </tr>
    <tr>
        <td class="dataCaptionTD"><span class="dataCaptionFormat"> ${ _("Modification deadline")}</span></td>
        <td bgcolor="white" width="100%" class="blacktext">
            ${ modifDL }
        </td>
    </tr>
    <tr>
        <td class="dataCaptionTD"><span class="dataCaptionFormat"> ${ _("Announcement")}</span></td>
        <td bgcolor="white" width="100%" class="blacktext">
            ${ announcement }
        </td>
    </tr>

    <tr>
        <td class="dataCaptionTD"><span class="dataCaptionFormat"> ${ _("Email notification on submission")}</span></td>
        <td bgcolor="white" width="100%">
          <table>
            <tr>
              <td class="blacktext">${ notification }</td>
            </tr>
            <tr>
              <td><font color="#777777"><small> ${ _("An email is automatically sent to the submitter after their abstract submission. This email will also be sent to the email addresses above this line.")}</small></font></td>
            </tr>
          </table>
        </td>
    </tr>
    <tr>
        <td colspan="3" class="horizontalLine">&nbsp;</td>
    </tr>
    <tr>
        <td class="dataCaptionTD"><span class="dataCaptionFormat"> ${ _("Late submission authorised users")}</span></td>
        <td bgcolor="white" width="100%" class="blacktext" colspan="2">
            <table width="100%">
                <tr>
                    <td><ul id="inPlaceUsers" class="UIPeopleList"></ul></td>
                </tr>
                <tr>
                    <td nowrap style="width:80%">
                        <input type="button" id="inPlaceAddUserButton" onclick="lateSubmissionAuthUsers.addExistingUser();" value='${ _("Add user") }'></input>
                    </td>
                    <td></td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td colspan="3" class="horizontalLine">&nbsp;</td>
    </tr>
    <tr>
        <td class="dataCaptionTD"><span class="dataCaptionFormat"> ${ _("Misc. Options")}</span></td>
        <td bgcolor="white" width="100%" class="blacktext">
            <a href="${ multipleUrl }"><img src="${ iconEnabled if multipleTracks else iconDisabled }" border="0"> ${ _("Allow multiple tracks selection") }</a>
            <br/><a href="${ mandatoryUrl }"><img src="${ iconEnabled if areTracksMandatory else iconDisabled }" border="0"> ${ _("Make track selection mandatory") }</a>
            <br/><a href="${ attachUrl }"><img src="${ iconEnabled if canAttachFiles else iconDisabled }" border="0"> ${ _("Allow to attach files") }</a>
            <br/><a href="${ showSpeakerUrl }"><img src="${ iconEnabled if showSelectAsSpeaker else iconDisabled }" border="0"> ${ _("Allow to choose the presenter(s) of the abstracts") }</a>
            <% makeMandSpk = _("Make the selection of at least one author as presenter mandatory") %>
            % if showSelectAsSpeaker:
                <br/><a href="${ speakerMandatoryUrl }"><img src="${ iconEnabled if isSelectSpeakerMandatory else iconDisabled }" border="0"> ${makeMandSpk}</a>
            % else:
                <br/><img src="${ iconDisabled }" border="0"> <span id="makePresenterMandatory" style="color:#777"> ${makeMandSpk}</span>
            % endif
            <br/>
            <a href="${ showAttachedFilesUrl }"
               % if not showAttachedFilesContribList:
                 data-confirm="${_("Please, note that if you enable this option the files (attached to the abstracts) will be public and accessible by everybody. Are you sure to continue?")}"
                 data-title="${_("Show attached files")}"
               % endif
               >
               <img src="${ iconEnabled if showAttachedFilesContribList else iconDisabled }" border="0" />
               ${ _("Show files attached to abstracts in the contribution list")}
            </a>
        </td>
    </tr>
    </tr>
    <tr>
        <td colspan="3" class="horizontalLine">&nbsp;</td>
    </tr>
    <tr>
        <td class="dataCaptionTD">
          <a name="optional"></a>
          <span class="dataCaptionFormat"> ${ _("Abstract fields")}</span>
          <br>
          <br>
          <img src=${ enablePic } alt="${ _("Click to disable")}"> <small> ${ _("Enabled field")}</small><br>
          <img src=${ disablePic } alt="${ _("Click to enable")}"> <small> ${ _("Disabled field")}</small>
        </td>
        <td bgcolor="white" width="100%" class="blacktext" style="padding-left:20px" colspan="2">
            <table align="left" width="100%">
                    ${ abstractFields }
            </table>
        </td>
    </tr>
    <tr>
        <td colspan="3" class="horizontalLine">&nbsp;</td>
    </tr>
</table>

<%include file="ConfModifCFAAddFieldTooltip.tpl"/>

<script type="text/javascript">
$(function() {
    $("#add-field-button").click(function(e) {
        e.preventDefault();
    }).qtip({
        id: "add-field",
        content: $("#qtip-content-add-field"),
        position: {
            at: "top right",
            my: "bottom right"
        },
        show: {
            event: "click"
        },
        hide: {
            event: "unfocus click"
        },
        events: {
            render: function(event, api) {
                $("#qtip-content-add-field .i-big-button").click(function(e) {
                    e.preventDefault();
                    api.hide();
                    var fieldType = $(this).data("fieldtype");
                    new AbstractFieldDialogFactory().makeDialog(fieldType, ${confId}).open();
                });
            }
        }
    });

    $(".edit-field").click(function(e) {
        e.preventDefault();
        var fieldId = $(this).data("id");
        var fieldType = $(this).data("fieldtype");
        new AbstractFieldDialogFactory().makeDialog(fieldType, ${confId}, fieldId).open();
    });
});

var lateSubmissionAuthUsers = new ListOfUsersManager('${ confId }',
    {'addExisting': 'abstracts.lateSubmission.addExistingLateAuthUser', 'remove': 'abstracts.lateSubmission.removeLateAuthUser'},
    {'confId': '${ confId }'}, $E('inPlaceUsers'), "user", "UIPerson", false, {}, {title: false, affiliation: false, email:true},
    {remove: true, edit: false, favorite: true, arrows: false, menu: false}, ${ lateAuthUsers | n,j});

IndicoUI.executeOnLoad(function(){
    $('#makePresenterMandatory').qtip({content: "${_('This option is automatically disabled when the option \'Allow to choose the presenter(s) of the abstracts\' is also disabled')}", position: {my: 'top middle', at: 'bottom middle'}});
});
</script><commit_msg>Prevent authors to be added to late submissions<commit_after><br>
<table class="groupTable">
    <tr>
        <td class="dataCaptionTD"><span class="dataCaptionFormat"> ${ _("Current status")}</span></td>
        <td bgcolor="white" width="100%" class="blacktext" colspan="2">
            <form action="${ setStatusURL }" method="POST">
                <input name="changeTo" type="hidden" value="${ changeTo }">
                <b>${ status }</b>
                <small><input type="submit" class="btn" value="${ changeStatus }"></small>
            </form>
        </td>
    </tr>
    <tr>
        <td class="dataCaptionTD"><span class="dataCaptionFormat"> ${ _("Submission start date")}</span></td>
        <td bgcolor="white" width="100%" class="blacktext">
            ${ startDate }
        </td>
    <form action="${ dataModificationURL }" method="POST">
        <td rowspan="5" valign="bottom" align="right">
            <input type="submit" class="btn" value="${ _("modify")}" ${ disabled }>
        </td>
    </form>
    </tr>
    <tr>
        <td class="dataCaptionTD"><span class="dataCaptionFormat"> ${ _("Submission end date")}</span></td>
        <td bgcolor="white" width="100%" class="blacktext">
            ${ endDate }
        </td>
    </tr>
    <tr>
        <td class="dataCaptionTD"><span class="dataCaptionFormat"> ${ _("Modification deadline")}</span></td>
        <td bgcolor="white" width="100%" class="blacktext">
            ${ modifDL }
        </td>
    </tr>
    <tr>
        <td class="dataCaptionTD"><span class="dataCaptionFormat"> ${ _("Announcement")}</span></td>
        <td bgcolor="white" width="100%" class="blacktext">
            ${ announcement }
        </td>
    </tr>

    <tr>
        <td class="dataCaptionTD"><span class="dataCaptionFormat"> ${ _("Email notification on submission")}</span></td>
        <td bgcolor="white" width="100%">
          <table>
            <tr>
              <td class="blacktext">${ notification }</td>
            </tr>
            <tr>
              <td><font color="#777777"><small> ${ _("An email is automatically sent to the submitter after their abstract submission. This email will also be sent to the email addresses above this line.")}</small></font></td>
            </tr>
          </table>
        </td>
    </tr>
    <tr>
        <td colspan="3" class="horizontalLine">&nbsp;</td>
    </tr>
    <tr>
        <td class="dataCaptionTD"><span class="dataCaptionFormat"> ${ _("Late submission authorised users")}</span></td>
        <td bgcolor="white" width="100%" class="blacktext" colspan="2">
            <table width="100%">
                <tr>
                    <td><ul id="inPlaceUsers" class="UIPeopleList"></ul></td>
                </tr>
                <tr>
                    <td nowrap style="width:80%">
                        <input type="button" id="inPlaceAddUserButton" onclick="lateSubmissionAuthUsers.addExistingUser();" value='${ _("Add user") }'></input>
                    </td>
                    <td></td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td colspan="3" class="horizontalLine">&nbsp;</td>
    </tr>
    <tr>
        <td class="dataCaptionTD"><span class="dataCaptionFormat"> ${ _("Misc. Options")}</span></td>
        <td bgcolor="white" width="100%" class="blacktext">
            <a href="${ multipleUrl }"><img src="${ iconEnabled if multipleTracks else iconDisabled }" border="0"> ${ _("Allow multiple tracks selection") }</a>
            <br/><a href="${ mandatoryUrl }"><img src="${ iconEnabled if areTracksMandatory else iconDisabled }" border="0"> ${ _("Make track selection mandatory") }</a>
            <br/><a href="${ attachUrl }"><img src="${ iconEnabled if canAttachFiles else iconDisabled }" border="0"> ${ _("Allow to attach files") }</a>
            <br/><a href="${ showSpeakerUrl }"><img src="${ iconEnabled if showSelectAsSpeaker else iconDisabled }" border="0"> ${ _("Allow to choose the presenter(s) of the abstracts") }</a>
            <% makeMandSpk = _("Make the selection of at least one author as presenter mandatory") %>
            % if showSelectAsSpeaker:
                <br/><a href="${ speakerMandatoryUrl }"><img src="${ iconEnabled if isSelectSpeakerMandatory else iconDisabled }" border="0"> ${makeMandSpk}</a>
            % else:
                <br/><img src="${ iconDisabled }" border="0"> <span id="makePresenterMandatory" style="color:#777"> ${makeMandSpk}</span>
            % endif
            <br/>
            <a href="${ showAttachedFilesUrl }"
               % if not showAttachedFilesContribList:
                 data-confirm="${_("Please, note that if you enable this option the files (attached to the abstracts) will be public and accessible by everybody. Are you sure to continue?")}"
                 data-title="${_("Show attached files")}"
               % endif
               >
               <img src="${ iconEnabled if showAttachedFilesContribList else iconDisabled }" border="0" />
               ${ _("Show files attached to abstracts in the contribution list")}
            </a>
        </td>
    </tr>
    </tr>
    <tr>
        <td colspan="3" class="horizontalLine">&nbsp;</td>
    </tr>
    <tr>
        <td class="dataCaptionTD">
          <a name="optional"></a>
          <span class="dataCaptionFormat"> ${ _("Abstract fields")}</span>
          <br>
          <br>
          <img src=${ enablePic } alt="${ _("Click to disable")}"> <small> ${ _("Enabled field")}</small><br>
          <img src=${ disablePic } alt="${ _("Click to enable")}"> <small> ${ _("Disabled field")}</small>
        </td>
        <td bgcolor="white" width="100%" class="blacktext" style="padding-left:20px" colspan="2">
            <table align="left" width="100%">
                    ${ abstractFields }
            </table>
        </td>
    </tr>
    <tr>
        <td colspan="3" class="horizontalLine">&nbsp;</td>
    </tr>
</table>

<%include file="ConfModifCFAAddFieldTooltip.tpl"/>

<script type="text/javascript">
$(function() {
    $("#add-field-button").click(function(e) {
        e.preventDefault();
    }).qtip({
        id: "add-field",
        content: $("#qtip-content-add-field"),
        position: {
            at: "top right",
            my: "bottom right"
        },
        show: {
            event: "click"
        },
        hide: {
            event: "unfocus click"
        },
        events: {
            render: function(event, api) {
                $("#qtip-content-add-field .i-big-button").click(function(e) {
                    e.preventDefault();
                    api.hide();
                    var fieldType = $(this).data("fieldtype");
                    new AbstractFieldDialogFactory().makeDialog(fieldType, ${confId}).open();
                });
            }
        }
    });

    $(".edit-field").click(function(e) {
        e.preventDefault();
        var fieldId = $(this).data("id");
        var fieldType = $(this).data("fieldtype");
        new AbstractFieldDialogFactory().makeDialog(fieldType, ${confId}, fieldId).open();
    });
});

var lateSubmissionAuthUsers = new ListOfUsersManager(null,
    {'addExisting': 'abstracts.lateSubmission.addExistingLateAuthUser', 'remove': 'abstracts.lateSubmission.removeLateAuthUser'},
    {'confId': '${ confId }'}, $E('inPlaceUsers'), "user", "UIPerson", false, {}, {title: false, affiliation: false, email:true},
    {remove: true, edit: false, favorite: true, arrows: false, menu: false}, ${ lateAuthUsers | n,j});

IndicoUI.executeOnLoad(function(){
    $('#makePresenterMandatory').qtip({content: "${_('This option is automatically disabled when the option \'Allow to choose the presenter(s) of the abstracts\' is also disabled')}", position: {my: 'top middle', at: 'bottom middle'}});
});
</script>
{'fraction_non_alphanumeric': 0.18065962215818124, 'fraction_numerical': 0.00781300032020493, 'mean_word_length': 2.409606986899563, 'pattern_counts': {'":': 0, '<': 361, '<?xml version=': 0, '>': 361, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '4618963', 'n_tokens_mistral': 4616, 'n_tokens_neox': 4450, 'n_words': 1091}