[Trunk|Admin]: Page form: Add warning message about disable a community.

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-admin-portal/trunk@56625 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
k.triantafyllou 2019-07-18 14:33:45 +00:00
parent 4fb1aacd4b
commit 82c6deede8
3 changed files with 34 additions and 37 deletions

View File

@ -45,51 +45,48 @@
</div> </div>
</div> </div>
<div class="form-group" uk-grid> <div class="form-group" uk-grid>
<label class="uk-width-1-1 uk-margin-small-bottom"> <label class="uk-width-1-1 uk-margin-small-bottom">
Enable/Disable positions of help contents for this page. Select positions of help contents for this page.
</label>
<label class="uk-text-danger uk-margin-small-bottom">
By disabling a position, all contents in this position will be deleted.
</label> </label>
<label class="uk-width-1-4 checkbox"> <label class="uk-width-1-4 checkbox">
<span class="uk-margin-small-right" style="font-weight: normal;">Top</span> <span class="uk-margin-small-right" style="font-weight: normal;">Top</span>
<input tabindex="0" type="checkbox" formControlName="top"> <input tabindex="0" type="checkbox" formControlName="top">
</label> </label>
<label class="uk-width-1-4 checkbox"> <label class="uk-width-1-4 checkbox">
<span class="uk-margin-small-right" style="font-weight: normal;">Bottom</span> <span class="uk-margin-small-right" style="font-weight: normal;">Bottom</span>
<input tabindex="0" type="checkbox" formControlName="bottom"> <input tabindex="0" type="checkbox" formControlName="bottom">
</label> </label>
<label class="uk-width-1-4 checkbox"> <label class="uk-width-1-4 checkbox">
<span class="uk-margin-small-right" style="font-weight: normal;">Left</span> <span class="uk-margin-small-right" style="font-weight: normal;">Left</span>
<input tabindex="0" type="checkbox" formControlName="left"> <input tabindex="0" type="checkbox" formControlName="left">
</label> </label>
<label class="uk-width-1-4 checkbox"> <label class="uk-width-1-4 checkbox">
<span class="uk-margin-small-right" style="font-weight: normal;">Right</span> <span class="uk-margin-small-right" style="font-weight: normal;">Right</span>
<input tabindex="0" type="checkbox" formControlName="right"> <input tabindex="0" type="checkbox" formControlName="right">
</label> </label>
</div> </div>
<div class="form-group uk-grid"> <div class="form-group" uk-grid>
<label class="uk-width-2-3">Select if this page exists in OpenAIRE portal</label> <label class="uk-width-1-1 uk-margin-small-bottom">
<label class="uk-width-1-3 checkbox"> Select if this page exists in:
<span class="uk-margin-small-right" style="font-weight: normal;">openaire</span> </label>
<input tabindex="0" type="checkbox" formControlName="openaire"> <label class="uk-width-1-1 checkbox uk-margin-large-left">
</label> <span class="uk-margin-small-right" style="font-weight: normal;">OpenAIRE portal</span>
<input tabindex="0" type="checkbox" formControlName="openaire">
</label>
<label class="uk-width-1-1 checkbox uk-margin-large-left">
<span class="uk-margin-small-right" style="font-weight: normal;">OpenAIRE Connect portal</span>
<input tabindex="0" type="checkbox" formControlName="connect">
</label>
<label class="uk-width-1-1 checkbox uk-margin-large-left">
<span class="uk-margin-small-right" style="font-weight: normal;">Communities' Gateway</span>
<input tabindex="0" type="checkbox" formControlName="communities">
</label>
</div> </div>
<div class="form-group uk-grid uk-margin-remove-top">
<label class="uk-width-2-3">Select if this page exists in OpenAIRE Connect portal</label>
<label class="uk-width-1-3 checkbox">
<span class="uk-margin-small-right" style="font-weight: normal;">connect</span>
<input tabindex="0" type="checkbox" formControlName="connect">
</label>
</div>
<div class="form-group uk-grid uk-margin-remove-top">
<label class="uk-width-2-3">Select if this page exists in connect portals (community specific)</label>
<label class="uk-width-1-3 checkbox">
<span class="uk-margin-small-right" style="font-weight: normal;">communities</span>
<input tabindex="0" type="checkbox" formControlName="communities">
</label>
</div>
<input type="hidden" formControlName="_id"> <input type="hidden" formControlName="_id">
</form> </form>

View File

@ -177,4 +177,5 @@ export class PageFormComponent implements OnInit{
console.log('Server responded: ' + error); console.log('Server responded: ' + error);
this.showLoading = false; this.showLoading = false;
} }
} }

View File

@ -138,7 +138,6 @@ export class PagesComponent implements OnInit {
if(pages) { if(pages) {
pages.forEach(_ => { pages.forEach(_ => {
console.log(_);
this.checkboxes.push(<CheckPage>{page : _, checked : false}); this.checkboxes.push(<CheckPage>{page : _, checked : false});
}); });
} }