<turbo-stream action="replace" target="matter-link-modal"><template><dialog id="matter-link-modal" class="ui-dialog" data-controller="modal" data-modal-auto-open-value="true"><turbo-frame style="display: contents" id="matter-link-modal-frame"><div class="modal-dialog modal-dialog-scrollable" id="matter-link-modal-content">
  <div class="modal-content">
    <form action="/matters/94/matter_links" accept-charset="UTF-8" method="post"><input type="hidden" name="authenticity_token" value="B_4ejOt2qGi0nvDr6lGhqCRwPqAuv8VCHNyxzyagyNw5JLfj45fbfddL9NZ_LqxZp3GI9pBkgwCE5VkPbEexvA" autocomplete="off" />
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
        <h4 class="modal-title">Add Linked Matter</h4>
      </div>
      <div class="modal-body">

        <div class="form-group">
          <label class="control-label" for="matter_link_linked_matter_id">Select linked matter</label>
          <select class="form-control" style="width: 100%;" data-controller="tom-select" data-tom-select-placeholder-value="Search by matter name..." data-tom-select-allow-clear-value="true" data-tom-select-dropdown-parent-value="closest-modal" data-tom-select-ajax-url-value="/matters/94/matter_links/search.json" data-tom-select-ajax-query-key-value="q" data-tom-select-ajax-response-key-value="matters" data-tom-select-ajax-result-text-key-value="display_name" name="matter_link[linked_matter_id]" id="matter_link_linked_matter_id"><option value="">Search by matter name...</option>
</select>
          <p class="help-block">
            You can search by matter name or client name.<br>If you don't search, matters with the same client will be displayed.
          </p>
        </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
        <input type="submit" name="commit" value="Create Link" class="btn btn-primary btn-block-xs" data-disable-with="Create Link" />
      </div>
</form>  </div>
</div>
</turbo-frame></dialog></template></turbo-stream>
