mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01:00
More styling adjustments.
This commit is contained in:
@@ -13,7 +13,7 @@ block content
|
|||||||
.alert.alert-success(ng-show="settingsForm.response.success")
|
.alert.alert-success(ng-show="settingsForm.response.success")
|
||||||
| #{translate("thanks_settings_updated")}
|
| #{translate("thanks_settings_updated")}
|
||||||
form-messages(for="changePasswordForm")
|
form-messages(for="changePasswordForm")
|
||||||
.container-fluid
|
div
|
||||||
form.row(
|
form.row(
|
||||||
ng-controller="UserAffiliationsController"
|
ng-controller="UserAffiliationsController"
|
||||||
name="affiliationsForm"
|
name="affiliationsForm"
|
||||||
@@ -79,7 +79,7 @@ block content
|
|||||||
input-required="true"
|
input-required="true"
|
||||||
)
|
)
|
||||||
td
|
td
|
||||||
div(
|
.affiliations-table-label(
|
||||||
ng-if="newAffiliation.university && !ui.showManualUniversitySelectionUI"
|
ng-if="newAffiliation.university && !ui.showManualUniversitySelectionUI"
|
||||||
)
|
)
|
||||||
| {{ newAffiliation.university.name }} (
|
| {{ newAffiliation.university.name }} (
|
||||||
@@ -88,10 +88,10 @@ block content
|
|||||||
ng-click="selectUniversityManually();"
|
ng-click="selectUniversityManually();"
|
||||||
) change
|
) change
|
||||||
| )
|
| )
|
||||||
div(
|
.affiliations-table-label(
|
||||||
ng-if="!newAffiliation.university && !ui.isValidEmail && !ui.showManualUniversitySelectionUI"
|
ng-if="!newAffiliation.university && !ui.isValidEmail && !ui.showManualUniversitySelectionUI"
|
||||||
) Start by adding your email address.
|
) Start by adding your email address.
|
||||||
div(
|
.affiliations-table-label(
|
||||||
ng-if="!newAffiliation.university && ui.isValidEmail && !ui.isBlacklistedEmail && !ui.showManualUniversitySelectionUI"
|
ng-if="!newAffiliation.university && ui.isValidEmail && !ui.isBlacklistedEmail && !ui.showManualUniversitySelectionUI"
|
||||||
)
|
)
|
||||||
| Is your email affiliated with an institution?
|
| Is your email affiliated with an institution?
|
||||||
@@ -102,7 +102,7 @@ block content
|
|||||||
) Let us know
|
) Let us know
|
||||||
div(
|
div(
|
||||||
ng-if="ui.showManualUniversitySelectionUI"
|
ng-if="ui.showManualUniversitySelectionUI"
|
||||||
ss)
|
)
|
||||||
.affiliations-form-group
|
.affiliations-form-group
|
||||||
ui-select(
|
ui-select(
|
||||||
ng-model="newAffiliation.country"
|
ng-model="newAffiliation.country"
|
||||||
|
|||||||
+3
@@ -85,11 +85,14 @@ define [
|
|||||||
_getUserEmails()
|
_getUserEmails()
|
||||||
|
|
||||||
$scope.setDefaultUserEmail = (email) ->
|
$scope.setDefaultUserEmail = (email) ->
|
||||||
|
$scope.ui.isLoadingEmails = true
|
||||||
UserAffiliationsDataService
|
UserAffiliationsDataService
|
||||||
.setDefaultUserEmail email
|
.setDefaultUserEmail email
|
||||||
.then () -> _getUserEmails()
|
.then () -> _getUserEmails()
|
||||||
|
.catch () -> console.log "fodeu"
|
||||||
|
|
||||||
$scope.removeUserEmail = (email) ->
|
$scope.removeUserEmail = (email) ->
|
||||||
|
$scope.ui.isLoadingEmails = true
|
||||||
UserAffiliationsDataService
|
UserAffiliationsDataService
|
||||||
.removeUserEmail email
|
.removeUserEmail email
|
||||||
.then () -> _getUserEmails()
|
.then () -> _getUserEmails()
|
||||||
|
|||||||
-1
@@ -74,7 +74,6 @@ define [
|
|||||||
|
|
||||||
setDefaultUserEmail = (email) ->
|
setDefaultUserEmail = (email) ->
|
||||||
$http.post "/user/emails/default", {
|
$http.post "/user/emails/default", {
|
||||||
email,
|
|
||||||
_csrf: window.csrfToken
|
_csrf: window.csrfToken
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,10 @@
|
|||||||
|
|
||||||
.affiliations-form-group {
|
.affiliations-form-group {
|
||||||
margin-bottom: @table-cell-padding;
|
margin-bottom: @table-cell-padding;
|
||||||
:last-of-type {
|
&:last-of-type {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.affiliations-table-label {
|
||||||
|
padding-top: 4px;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user