<div class="anchor-dummy" role="" id="chart-lock">
    <h1>
        {{i18n 'adminsetting.chartLockscreen'}}
        <span class="heading-secondary">
            <small>{{i18n 'optional'}}</small>
        </span>
    </h1>
    <div class="form-group group-setting">
        <label for="chartlock-method" class="col-xs-3 control-label">
            {{i18n 'adminsetting.chartLockMethod'}}
        </label>
        <div class="col-xs-9">
            <div class="controls form-inline">
                <select id="chartLockMethod" name="chartLockMethod" class="form-control min-select-width max-select-width">
                    {{#each chartLockMethodList}}
                    <option value="{{val}}" {{#ifEquals val ../selectedChartLockMethod}} selected="selected" {{/ifEquals}}>
                        {{text}}
                    </option>
                    {{/each}}
                </select>
            </div>
        </div>
    </div>
    <div class="form-group group-setting">
        <label for="chartlock-aging" class="col-xs-3 control-label">
            {{i18n 'adminsetting.chartLockAging'}}
        </label>
        <div class="col-xs-9">
            <div class="controls form-inline">
                <select id="chartLockAging" name="chartLockAging" class="form-control min-select-width max-select-width">
                    {{#each chartLockAgingList}}
                    <option value="{{val}}" {{#ifEquals val ../selectedChartLockAging}} selected="selected" {{/ifEquals}}>
                        {{text}}
                    </option>
                    {{/each}}
                </select>
            </div>
        </div>
    </div>
    <div class="form-group group-setting">
        <label for="chartlock-seconds" class="col-xs-3 control-label">
            <span class="asterix">*</span> {{i18n 'adminsetting.displayMessageFor'}}
            <p class="help-info">{{i18n 'adminsetting.customMessageHelp'}}</p>
        </label>
        <div class="col-xs-9">
            <div class="time-fraction-area paddingtop-10">
                <input id="chartlock-seconds" name="chartlock-seconds" type="number" min="0" data-onstyle="warning" class="form-control" value="{{ChartLockMessageSeconds}}" />
            </div>
            <div class="info-instruc">
                <span class="float-left time-fraction margin-right-20">{{i18n 'adminsetting.seconds'}}</span>
                <span class="float-left help-block hidden"></span>
            </div>
        </div>
    </div>
    <div class="navbar navbar-default clinicexception-info">
        <div style="float: left; padding-top:7px;">{{i18n 'adminsetting.chartLockMessage'}}</div>
        <div class="nav-collapse" style="right: 10px; float: right;">
            <button type="button" class="btn btn-default chart-lock-message-addbtn">{{i18n 'adminglobal.add'}}</button>
        </div>
    </div>
    <table class="table table-striped" style="table-layout: fixed;">
        <thead>
            <tr>
                <th class="col-md-8 col-md-offset-1">
                    {{i18n 'adminsetting.signInMessageTbHdMessage'}}
                </th>
                <th class="col-md-1">
                    {{i18n 'adminsetting.signInMessageTbHdLanguage'}}
                </th>
                <th></th>
            </tr>
        </thead>
        <tbody>
            {{#each CustomMessages}}
            {{#ifEquals MessageType 1}}
            <tr>
                <td class="col-md-8" scope="row" style="white-space: nowrap; text-overflow: ellipsis; overflow: hidden;">
                    {{CustomMessageText}}
                </td>
                <td class="col-md-1" scope="row">
                    {{LangCdx}}
                </td>
                <td class="text-right">
                    <div class="whitespace-nowrap">
                        <button class="btn btn-link no-padding chartLockEdit-btn black-text" value="{{LangCdx}} Edit">
                            <span class="fa fa-pencil edit-icon"></span> {{i18n 'adminsetting.editmesssage'}}
                        </button>
                        <span class="gray-pipe">  |  </span>
                        <button type="button" class="btn btn-link no-padding chartLockDelete-btn black-text" value="{{LangCdx}} Delete">
                            <span class="fa fa-times delete-icon"></span> {{i18n 'FirstAccess.delete'}}
                        </button>
                    </div>
                </td>
            </tr>
            {{/ifEquals}}
            {{/each}}
        </tbody>
    </table>
    <span class="help-block float-left hidden control-label"></span>
</div>