<table class='table table-bordered' id='{{divElementId}}-descriptions-panel-table'>
  <thead>
    <tr>
    </tr>
    <tr>
      <th><span class='i18n' data-i18n-id='i18n_term'>Term</span></th>
      {{#if options.showIds}}
      <th>SCTID</th>
      {{/if}}
      <th><span class='i18n' data-i18n-id='i18n_acceptability'>Acceptability</span>&nbsp;&nbsp;</th>
    </tr>
  </thead>
  <tbody>
    {{#each allDescriptions}}
    {{#if activeStatus }}

    <tr class='{{#if_eq typeId "FULLY_SPECIFIED_NAME"}} fsn-row{{else}} synonym-row{{/if_eq}}	{{#if activeStatus}}{{else}} danger{{/if}}
					
					{{#if_eq effectiveTime ../options.highlightByEffectiveTime}} 					
						highlightEffectiveTime{{/if_eq}}'>

    <tr class='{{#if_eq typeId "FULLY_SPECIFIED_NAME"}} fsn-row{{else}} synonym-row{{/if_eq}}{{#if activeStatus}}{{else}} danger{{/if}}{{#if_eq effectiveTime ../options.highlightByEffectiveTime}} highlightEffectiveTime{{/if_eq}}'></tr>

      <td>


        {{#if_eq typeId "FULLY_SPECIFIED_NAME"}}
        <span rel="tooltip-right" title="{{i18n " i18n_fsn" "FSN" }}">F</span>
        {{else}}
        {{#if_eq typeId "SYNONYM"}}
        <span rel="tooltip-right" title="{{i18n " i18n_synonym" "Synonym" }}">S</span>
        {{else}}
        {{#if_eq typeId "DEFINITION"}}
        <span rel="tooltip-right" title="{{i18n " i18n_definition" "Definition" }}">D</span>
        {{/if_eq}}
        {{/if_eq}}
        {{/if_eq}}

        {{#if isPreferredTerm}}
        {{#if_eq typeId "FULLY_SPECIFIED_NAME"}}
        &nbsp;<span class="glyphicon glyphicon-star-empty" rel="tooltip-right" title="{{i18n "
          i18n_preferred" "Preferred" }}"></span>
        {{else}}
        &nbsp;<span class="glyphicon glyphicon-star" rel="tooltip-right" title="{{i18n " i18n_preferred" "Preferred"
          }}"></span>
        {{/if_eq}}
        {{else}}
        &nbsp;<span rel="tooltip-right" title="{{i18n " i18n_acceptable" "Acceptable" }}">&#10004;</span></span>
        {{/if}}
        &nbsp;&nbsp;&nbsp;{{term}}
      </td>
      	{{#if ../../options.showIds}}
          <td>{{id}}</td>
       {{/if}}

      <td>
        {{#if isPreferredTerm}}
        <span class='i18n' data-i18n-id='i18n_preferred'>{{i18n "i18n_preferred" "Preferred"}}</span>
        {{else}}
        <span class='i18n' data-i18n-id='i18n_acceptable'>{{i18n "i18n_acceptable" "Acceptable"}}</span>

        {{/if}}
          <button type="button" class="btn btn-link unobtrusive-icon more-fields-button pull-right"      data-container="body"
            data-toggle="popover" data-placement="left" data-content="
                        <table border='1'><tr><th style='padding: 3px;'>DescriptionId</th><th style='padding: 3px;'>Type</th><th style='padding: 3px;'>Language</th><th style='padding: 3px;'>Case Significance</th><th style='padding: 3px;'>Effective Time</th><th style='padding: 3px;'>ModuleId</th></tr>
                                <tr><td style='padding: 3px;'>{{id}}</td><td style='padding: 3px;'>{{typeId}}</td><td style='padding: 3px;'>{{languageCode}}</td><td style='padding: 3px;'>{{caseSignificanceId}}</td><td style='padding: 3px;'>{{effectiveTime}}</td><td style='padding: 3px;'>{{moduleId}}</td></tr>
                        </table>
                        " data-html="true"><i class="glyphicon glyphicon-info-sign"></i></button>
    </td>
    </tr>
    {{else}}
            <tr class='{{#if_eq typeId "FULLY_SPECIFIED_NAME"}} fsn-row{{else}} synonym-row{{/if_eq}}	{{#if activeStatus}}{{else}} danger{{/if}}
					
					{{#if_eq effectiveTime ../options.highlightByEffectiveTime}} 					
						highlightEffectiveTime{{/if_eq}}'>

    <tr class='{{#if_eq typeId "FULLY_SPECIFIED_NAME"}} fsn-row{{else}} synonym-row{{/if_eq}}{{#if activeStatus}}{{else}} danger{{/if}}{{#if_eq effectiveTime ../options.highlightByEffectiveTime}} highlightEffectiveTime{{/if_eq}}'>

        <td>


          {{#if_eq typeId "FULLY_SPECIFIED_NAME"}}
          <span rel="tooltip-right" title="{{i18n " i18n_fsn" "FSN" }}">F</span>
          {{else}}
          {{#if_eq typeId "SYNONYM"}}
          <span rel="tooltip-right" title="{{i18n " i18n_synonym" "Synonym" }}">S</span>
          {{else}}
          {{#if_eq typeId "DEFINITION"}}
          <span rel="tooltip-right" title="{{i18n " i18n_definition" "Definition" }}">D</span>
          {{/if_eq}}
          {{/if_eq}}
          {{/if_eq}}

          {{#if isPreferredTerm}}
          {{#if_eq typeId "FULLY_SPECIFIED_NAME"}}
          &nbsp;<span class="glyphicon " rel="tooltip-right" title="{{i18n "
            i18n_preferred" "Preferred" }}"></span>
          {{else}}
          &nbsp;<span class="glyphicon " rel="tooltip-right" title="{{i18n " i18n_preferred" "Preferred"
            }}"></span>
          {{/if_eq}}
          {{/if}}
          &nbsp;&nbsp;&nbsp;{{term}}
        </td>
        {{#if ../../options.showIds}}
          <td>{{id}}</td>
       {{/if}}

        <td>
          <span class='i18n' data-i18n-id='i18n_acceptable'>{{i18n "i18n_acceptable" "Not acceptable"}}</span>
            <button type="button" class="btn btn-link unobtrusive-icon more-fields-button pull-right"      data-container="body"
              data-toggle="popover" data-placement="left" data-content="
                          <table border='1'><tr><th style='padding: 3px;'>DescriptionId</th><th style='padding: 3px;'>Type</th><th style='padding: 3px;'>Language</th><th style='padding: 3px;'>Case Significance</th><th style='padding: 3px;'>Effective Time</th><th style='padding: 3px;'>ModuleId</th></tr>
                                  <tr><td style='padding: 3px;'>{{id}}</td><td style='padding: 3px;'>{{typeId}}</td><td style='padding: 3px;'>{{languageCode}}</td><td style='padding: 3px;'>{{caseSignificanceId}}</td><td style='padding: 3px;'>{{effectiveTime}}</td><td style='padding: 3px;'>{{moduleId}}</td></tr>
                          </table>
                          " data-html="true"><i class="glyphicon glyphicon-info-sign"></i></button>
      </td>
      </tr>
      </tr>
    {{/if}}
  {{/each}}
  </tbody>
</table>
































