<div class="alert alert--danger hidden" role="alert"></div>

<fieldset>
  <div class="input form-group">
    <div class="formGroup-label">
      <label for="form_name"><%- @T('Voice Line Number') %> <span>*</span></label>
    </div>
    <div class="controls">
      <input id="phone_number" type="text" name="phone_number" value="<%= @channel.options.phone_number %>" class="form-control" required autocomplete="off">
    </div>
  </div>

  <div class="input form-group">
    <div class="formGroup-label">
      <label for=""><%- @T('Choose the group in which incoming calls will be added to.') %> <span>*</span></label>
    </div>
    <div class="controls">
      <div class="js-messagesGroup"></div>
    </div>
  </div>
  <div class="input form-group">
    <div class="formGroup-label">
      <label for=""><%- @T('Choose the organization to which users will be added to when they leave a recording to this voice line.') %> <span>*</span></label>
    </div>
    <div class="controls">
      <div class="profile-organization js-organization"></div>
    </div>
  </div>
  <div class="input form-group">
    <div class="formGroup-label">
      <label for="token"><%- @T('Endpoint URL') %> <span>*</span></label>
    </div>
    <div class="controls">
      <input id="token" type="text" value="<%= "#{App.Config.get('http_type')}://#{App.Config.get('fqdn')}/api/v1/channels_cdr_voice_webhook/#{@channel.options.token}" %>" class="form-control input js-select" readonly>
    </div>
  </div>
</fieldset>
