<template name="serverInformationForm">
    {{#form class='server-information-form' schema=instance.currentSchema api=this.api}}
        {{>inputHidden key='_id'}}
        <div class="row">
            <div class="col-lg-6">
                {{>inputText labelClass='form-group' key='name'}}
            </div>
            <div class="col-lg-6">
                {{>inputSelect labelClass='form-group' key='type'
                    hideSearch=true disabled=(eq this.mode.get 'edit')
                    options=(clone placeholder='Choose a server type')}}
            </div>
        </div>
        <hr>
        {{#if eq this.serverType.get 'dicomWeb'}}
          {{>serverInformationDicomWeb this}}
        {{/if}}
        {{#if eq this.serverType.get 'dimse'}}
          {{>serverInformationDimse this}}
        {{/if}}
        {{#if this.serverType.get}}
            <div>
                {{#button class='btn btn-primary' action='save'}}Save{{/button}}
            </div>
        {{/if}}
    {{/form}}
</template>
