|
@@ -28,6 +28,20 @@
|
|
|
<input type="submit" class="btn btn-success-inverted" onclick="checkChangePWD(); return false;" value="Отправить">
|
|
|
</form>
|
|
|
</div>
|
|
|
+ <div id='uploadCertificate'>
|
|
|
+ <form name="upload" onsubmit="return validateUpload(this);">
|
|
|
+ <p>Загрузка сертификата.</p>
|
|
|
+ <div class="upload-wrapper">
|
|
|
+ <input id="uploadFile" placeholder="Файл" disabled="disabled" class="file-name" />
|
|
|
+ <div class="fileUpload btn btn-primary">
|
|
|
+ <span>Выбор файла</span>
|
|
|
+ <input id="uploadBtn" type="file" class="upload" name="datafile"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <input type="button" id="close-cert" class="btn btn-danger-inverted" value="Отмена">
|
|
|
+ <input class="btn btn-success-inverted" type="submit" value="Загрузить">
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="navbar navbar-default navbar-fixed-top">
|
|
|
<div class="navbar-header">
|
|
@@ -246,7 +260,9 @@
|
|
|
<input type="checkbox" name="swauth" id="swauth" onchange="authState()"> Включить авторизацию
|
|
|
</label>
|
|
|
</div>
|
|
|
-
|
|
|
+ <div class="col span_2_of_2">
|
|
|
+ <a href="javascript:void(0)" id="set-cert">Загрузить сертификат</a>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -350,6 +366,19 @@ $('dev-update').onclick = function(){
|
|
|
};
|
|
|
};
|
|
|
|
|
|
+$('set-cert').onclick = function(){
|
|
|
+ $('count-wrap').style.display = 'block';
|
|
|
+ $('uploadCertificate').style.display = 'block';
|
|
|
+};
|
|
|
+$('uploadBtn').onchange = function(){
|
|
|
+ $('uploadFile').value = this.files[0].name;
|
|
|
+};
|
|
|
+$('close-cert').onclick = function() {
|
|
|
+ $('count-wrap').style.display = 'none';
|
|
|
+ $('uploadCertificate').style.display = 'none';
|
|
|
+ $('uploadBtn').innerHTML = $('uploadBtn').innerHTML;
|
|
|
+ $('uploadFile').value = '';
|
|
|
+};
|
|
|
$('change_pass').onclick = function(){
|
|
|
$('count-wrap').style.display = 'block';
|
|
|
$('changePassword').style.display = 'block';
|