1
0
mirror of https://github.com/chylex/Nextcloud-News.git synced 2025-05-09 07:34:05 +02:00

UI: Make BasicAuth Credentials less important in subscribtion form

This commit is contained in:
Andreas Demmelbauer 2019-04-07 16:06:34 -07:00
parent a9e572060b
commit fba25bab14
2 changed files with 15 additions and 16 deletions

View File

@ -67,7 +67,6 @@
} }
#app-navigation .add-new-popup .add-new-folder-primary { #app-navigation .add-new-popup .add-new-folder-primary {
float: right;
border-bottom-left-radius: 0; border-bottom-left-radius: 0;
border-top-left-radius: 0; border-top-left-radius: 0;
width: 36px; width: 36px;
@ -76,17 +75,13 @@
margin-right: 0; margin-right: 0;
} }
#app-navigation .add-new-popup .add-feed-advanced { #app-navigation .add-new-popup .add-new-basicauth-toggle {
padding: 5px 0;
}
#app-navigation .add-new-popup .add-feed-basicauth {
width: 100%; width: 100%;
} padding: 0 0 10px;
#app-navigation .add-new-popup .add-feed-advanced-area {
padding: 10px 0;
}
#app-navigation .add-new-popup .add-feed-advanced-area h2 {
font-size: 11pt;
font-weight: bold;
} }
#app-navigation .add-new-popup .error { #app-navigation .add-new-popup .error {

View File

@ -76,11 +76,15 @@
</p> </p>
<!-- basic auth --> <!-- basic auth -->
<button type="button" class="add-feed-advanced" ng-click="Navigation.showAddFeedAdvanced=!Navigation.showAddFeedAdvanced"> <div class="add-new-basicauth-toggle">
<?php p($l->t('Advanced settings')); ?> <input type="checkbox"
</button> class="checkbox"
<div ng-if="Navigation.showAddFeedAdvanced" class="add-feed-advanced-area"> ng-model="Navigation.addFeedBasicauth"
<h2><?php p($l->t('Credentials')); ?></h2> id="add-feed-basicauth">
<label for="add-feed-basicauth"><?php p($l->t('Credentials')); ?></label>
</div>
<div ng-show="Navigation.addFeedBasicauth" class="add-feed-basicauth">
<p class="warning"><?php p($l->t('HTTP Basic Auth credentials must be stored unencrypted! Everyone with access to the server or database will be able to access them!')); ?></p> <p class="warning"><?php p($l->t('HTTP Basic Auth credentials must be stored unencrypted! Everyone with access to the server or database will be able to access them!')); ?></p>
<input type="text" <input type="text"
ng-model="Navigation.feed.user" ng-model="Navigation.feed.user"