<div class="text-content">
  <div class="content-header">
    <h4>{{i18n "Tell Us Why"}}</h4>
  </div>
  <form>
    <div class="item">
      {{#each reasons as |reason|}}
        <div>
          <input type="radio" name="reason" value={{reason.reason}} id="dismiss_rec_form_{{reason.reason}}" checked={{if reason.checked 'checked'}} onChange={{action "selectReason" reason.value}}>
          <label for="dismiss_rec_form_{{reason.reason}}" style="display: inline-block; padding-left: 5px;" {{action "selectReason" reason.value}}>{{i18n reason.description}}</label>
        </div>
      {{/each}}
    </div>

    <div class="item">
      {{textarea value=(mut textReasons) style="width: 100%;" id="other" name="other" maxlength=200 placeholder="Do you have any other feedback about this video"}}
    </div>

    {{#if isDescriptionTooShort}}
      <span class="cl-red"><strong>{{i18n "Error: "}}</strong>{{i18n "Description is too short"}}</span>
    {{/if}}

    <div class="buttons">
      <a class="js-subwindow-close button button--text" {{action "closeModal"}}>
        <span>{{t 'general.forms.cancel'}}</span>
      </a>
      <button class="js-subwindow-submit button" type="submit" {{action "submitFeedback" textReasons selectedReason vodToRemove vodIndexToRemove}}>
        <span>{{t 'general.forms.done'}}</span>
      </button>
    </div>
  </form>
</div>
