Add pluggable live collectors and simplify API connect form
This commit is contained in:
@@ -42,19 +42,9 @@
|
||||
<span class="field-error" data-error-for="host"></span>
|
||||
</label>
|
||||
|
||||
<label class="api-form-field" for="api-protocol">
|
||||
<span>Протокол</span>
|
||||
<select id="api-protocol" name="protocol">
|
||||
<option value="">Выберите протокол</option>
|
||||
<option value="redfish">Redfish</option>
|
||||
<option value="ipmi">IPMI</option>
|
||||
</select>
|
||||
<span class="field-error" data-error-for="protocol"></span>
|
||||
</label>
|
||||
|
||||
<label class="api-form-field" for="api-port">
|
||||
<span>Порт</span>
|
||||
<input id="api-port" name="port" type="number" min="1" max="65535" placeholder="443">
|
||||
<input id="api-port" name="port" type="number" min="1" max="65535" value="443" placeholder="443">
|
||||
<span class="field-error" data-error-for="port"></span>
|
||||
</label>
|
||||
|
||||
@@ -64,37 +54,11 @@
|
||||
<span class="field-error" data-error-for="username"></span>
|
||||
</label>
|
||||
|
||||
<label class="api-form-field" for="api-auth-type">
|
||||
<span>Тип авторизации</span>
|
||||
<select id="api-auth-type" name="auth_type">
|
||||
<option value="">Выберите тип</option>
|
||||
<option value="password">Пароль</option>
|
||||
<option value="token">Токен</option>
|
||||
</select>
|
||||
<span class="field-error" data-error-for="auth_type"></span>
|
||||
</label>
|
||||
|
||||
<label class="api-form-field" for="api-tls-mode">
|
||||
<span>TLS режим</span>
|
||||
<select id="api-tls-mode" name="tls_mode">
|
||||
<option value="">Выберите режим</option>
|
||||
<option value="strict">Strict (проверка сертификата)</option>
|
||||
<option value="insecure">Insecure (без проверки сертификата)</option>
|
||||
</select>
|
||||
<span class="field-error" data-error-for="tls_mode"></span>
|
||||
</label>
|
||||
|
||||
<label class="api-form-field" id="api-password-field" for="api-password">
|
||||
<span>Пароль</span>
|
||||
<input id="api-password" name="password" type="password" autocomplete="current-password">
|
||||
<span class="field-error" data-error-for="password"></span>
|
||||
</label>
|
||||
|
||||
<label class="api-form-field hidden" id="api-token-field" for="api-token">
|
||||
<span>Токен</span>
|
||||
<input id="api-token" name="token" type="text" autocomplete="off">
|
||||
<span class="field-error" data-error-for="token"></span>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="api-form-actions">
|
||||
|
||||
Reference in New Issue
Block a user