<div class="anchor-dummy" role="" id="patient-orientation">
    <h1>
        {{i18n 'adminsetting.patientOrientation'}}
        <span class="heading-secondary">
            <small>{{i18n 'optional'}}</small>
        </span>
    </h1>
    <div class="navbar navbar-default clinicexception-info">
        <div style="float: left; padding-top:7px;">{{i18n 'adminsetting.patientOrientationMessage'}}</div>
        <div class="nav-collapse" style="right: 10px; float: right;">
            <a class="btn btn-default add patient-orientation-message-addbtn" href="">{{i18n 'adminglobal.add'}}</a>
        </div>
    </div>
    <div class="form-group paddingtop-10">
        <div class="col col-xs-12">
            <div class="row">
                <label for="" class="col-xs-3 control-label">
                    {{i18n 'adminsetting.language'}}
                </label>
                <div class="col-xs-3">
                    <select id="languageMap" name="" class="form-control">
                        {{#each Languages}}
                        <option value="{{langCd}}" {{#if selected}} selected="selected" {{/if}}>
                            {{i18n name}}
                        </option>
                        {{/each}}
                    </select>
                </div>
                <div class="col-xs-6">
                </div>
            </div>
        </div>
    </div>
    <table class="table table-striped">
        <thead>
            <tr>
                <th>
                    {{i18n 'adminsetting.order'}}
                </th>
                <th>
                    {{i18n 'adminsetting.questionText'}}
                </th>
                <th>
                    {{i18n 'adminsetting.questionType'}}
                </th>
                <th>
                    {{i18n 'adminsetting.crystalreport'}}
                </th>
                <th>
                    {{i18n 'adminsetting.messageText'}}
                </th>
                <th>
                    &nbsp;
                </th>
            </tr>
        </thead>
        <tbody>
            {{#each OrientationRecords}}
            {{#ifNotEquals state 3}}
            {{#ifEquals LanguageCode ../language}}
            <tr id="{{Id}}">
                <td>
                    <span class="fa fa-ellipsis-v"></span>
                    <span class="fa fa-ellipsis-v"></span>
                    &nbsp;
                    &nbsp;
                    <span class="order">{{Order}}</span>
                </td>
                <td class="text">
                    {{QuestionText}}
                </td>
                <td>
                    {{#ifEquals Type 1}}{{i18n 'adminsetting.YesNo'}} {{else}} {{i18n 'adminsetting.unanswered'}}{{/ifEquals}}
                </td>
                <td>
                    {{#if CrystalReport}}{{CrystalReport}}{{else}}{{i18n 'adminsetting.empty'}}{{/if}}
                </td>
                <td class="text">
                    {{MessageText}}
                </td>
                <td class="col-xs-2 text-right">
                    <button class="btn btn-link no-padding edit-btn black-text" value="Edit">
                        <span class="fa fa-pencil edit-icon"></span> {{i18n 'FirstAccess.edit'}}
                    </button>
                    <span class="gray-pipe">  |  </span>
                    <button type="button" class="btn btn-link no-padding delete-btn black-text" value="Delete">
                        <span class="fa fa-times delete-icon"></span> {{i18n 'FirstAccess.delete'}}
                    </button>
                </td>
            </tr>
            {{/ifEquals}}
            {{/ifNotEquals}}
            {{/each}}
        </tbody>
    </table>
</div>