forked from tykayn/funky-framadate-front
default max count of answers set to a big number
This commit is contained in:
parent
5c1e7119b2
commit
62489dd250
@ -818,8 +818,8 @@ export class PollService implements Resolve<Poll> {
|
||||
}
|
||||
newpoll.description = form.value.description;
|
||||
newpoll.has_several_hours = form.value.hasSeveralHours;
|
||||
newpoll.max_count_of_answers = form.value.maxCountOfAnswers;
|
||||
newpoll.maxCountOfAnswers = form.value.maxCountOfAnswers;
|
||||
newpoll.max_count_of_answers = form.value.maxCountOfAnswers | (1024 * 10);
|
||||
newpoll.maxCountOfAnswers = form.value.maxCountOfAnswers | (1024 * 10);
|
||||
newpoll.password = form.value.password;
|
||||
newpoll.kind = form.value.isAboutDate ? 'date' : 'classic';
|
||||
newpoll.allow_comments = form.value.allowComments;
|
||||
|
@ -16,99 +16,102 @@
|
||||
</button>
|
||||
|
||||
<form action="#/administration/step/{{ pollService.step_current }}">
|
||||
<p-dialog
|
||||
[modal]="true"
|
||||
[(visible)]="display_lang_dialog"
|
||||
[breakpoints]="['960px']"
|
||||
[style]="{ width: '486px' }"
|
||||
[draggable]="false"
|
||||
[showHeader]="false"
|
||||
[resizable]="true"
|
||||
[attr.aria-labelledby]="'popup.languages.title' | translate"
|
||||
role="dialog"
|
||||
id="lang_selector_modale"
|
||||
>
|
||||
<ng-template pTemplate="titlebar">
|
||||
<div class="">
|
||||
<dialog [attr.aria-labelledby]="'popup.languages.title' | translate" role="dialog">
|
||||
<p-dialog
|
||||
[modal]="true"
|
||||
[(visible)]="display_lang_dialog"
|
||||
[breakpoints]="['960px']"
|
||||
[style]="{ width: '486px' }"
|
||||
[draggable]="false"
|
||||
[showHeader]="false"
|
||||
[resizable]="true"
|
||||
id="lang_selector_modale"
|
||||
>
|
||||
<ng-template pTemplate="titlebar">
|
||||
<div class="">
|
||||
<div class="top">
|
||||
<button
|
||||
id="close_dialog{{ idSuffix }}"
|
||||
class="button cancel-button-reject pull-right img-marged-left has-no-border is-closing-popup"
|
||||
lang="{{ currentLang }}"
|
||||
(click)="closeModalAndFocusOnButtonToOpen()"
|
||||
>
|
||||
{{ 'SENTENCES.Close' | translate }}
|
||||
<img class="icon" src="assets/icons/x_blue.svg" />
|
||||
</button>
|
||||
<div class="">
|
||||
<div class="top">
|
||||
<button
|
||||
id="close_dialog{{ idSuffix }}"
|
||||
class="button cancel-button-reject pull-right img-marged-left has-no-border is-closing-popup"
|
||||
lang="{{ currentLang }}"
|
||||
(click)="closeModalAndFocusOnButtonToOpen()"
|
||||
>
|
||||
{{ 'SENTENCES.Close' | translate }}
|
||||
<img class="icon" src="assets/icons/x_blue.svg" />
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<h1 class="title is-1 has-text-left" id="lang_selector_modale_title">
|
||||
{{ 'popup.languages.title' | translate }}
|
||||
</h1>
|
||||
<h1 class="title is-1 has-text-left" id="lang_selector_modale_title">
|
||||
{{ 'popup.languages.title' | translate }}
|
||||
</h1>
|
||||
|
||||
<div class="list-of-langs is-dynamic" *ngIf="display_dynamic_langs">
|
||||
<div *ngFor="let language of availableLanguages" (click)="language_to_apply = language">
|
||||
<label
|
||||
[attr.for]="'#lang_' + language"
|
||||
class="lang-element button is-action"
|
||||
[ngClass]="{
|
||||
'is-primary': language_to_apply === language,
|
||||
'is-current': language === currentLang
|
||||
}"
|
||||
>
|
||||
<input
|
||||
class="pull-left"
|
||||
type="radio"
|
||||
value="{{ language }}"
|
||||
name="lang_to_apply"
|
||||
lang="{{ language }}"
|
||||
[(ngModel)]="language_to_apply"
|
||||
[attr.id]="'#lang_' + language"
|
||||
(click)="language_to_apply = language"
|
||||
/>
|
||||
<!-- {{ language }} - -->
|
||||
{{ 'LANGUAGES.' + language.toUpperCase() | translate }}
|
||||
</label>
|
||||
<div class="list-of-langs is-dynamic" *ngIf="display_dynamic_langs">
|
||||
<div *ngFor="let language of availableLanguages" (click)="language_to_apply = language">
|
||||
<label
|
||||
[attr.for]="'#lang_' + language"
|
||||
class="lang-element button is-action"
|
||||
[ngClass]="{
|
||||
'is-primary': language_to_apply === language,
|
||||
'is-current': language === currentLang
|
||||
}"
|
||||
>
|
||||
<input
|
||||
class="pull-left"
|
||||
type="radio"
|
||||
value="{{ language }}"
|
||||
name="lang_to_apply"
|
||||
lang="{{ language }}"
|
||||
[(ngModel)]="language_to_apply"
|
||||
[attr.id]="'#lang_' + language"
|
||||
(click)="language_to_apply = language"
|
||||
/>
|
||||
<!-- {{ language }} - -->
|
||||
{{ 'LANGUAGES.' + language.toUpperCase() | translate }}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="list-of-langs is-static" *ngIf="!display_dynamic_langs">
|
||||
<div *ngFor="let language of availableLanguagesStatic" (click)="language_to_apply = language.value">
|
||||
<label
|
||||
[attr.for]="'#lang_' + language"
|
||||
class="lang-element button is-action"
|
||||
[ngClass]="{
|
||||
'is-primary is-focused': language_to_apply === language.value,
|
||||
'is-current': language.value === currentLang
|
||||
}"
|
||||
<div class="list-of-langs is-static" *ngIf="!display_dynamic_langs">
|
||||
<div
|
||||
*ngFor="let language of availableLanguagesStatic"
|
||||
(click)="language_to_apply = language.value"
|
||||
>
|
||||
<input
|
||||
type="radio"
|
||||
value="{{ language.value }}"
|
||||
name="lang_to_apply"
|
||||
lang="{{ language.value }}"
|
||||
[(ngModel)]="language_to_apply"
|
||||
[attr.id]="'#lang_' + language.value"
|
||||
(click)="language_to_apply = language.value"
|
||||
/>
|
||||
{{ 'LANGUAGES.' + language.value.toUpperCase() | translate }}
|
||||
</label>
|
||||
<label
|
||||
[attr.for]="'#lang_' + language"
|
||||
class="lang-element button is-action"
|
||||
[ngClass]="{
|
||||
'is-primary is-focused': language_to_apply === language.value,
|
||||
'is-current': language.value === currentLang
|
||||
}"
|
||||
>
|
||||
<input
|
||||
type="radio"
|
||||
value="{{ language.value }}"
|
||||
name="lang_to_apply"
|
||||
lang="{{ language.value }}"
|
||||
[(ngModel)]="language_to_apply"
|
||||
[attr.id]="'#lang_' + language.value"
|
||||
(click)="language_to_apply = language.value"
|
||||
/>
|
||||
{{ 'LANGUAGES.' + language.value.toUpperCase() | translate }}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ng-template>
|
||||
</ng-template>
|
||||
|
||||
<ng-template pTemplate="footer">
|
||||
<div class="buttons-bottom">
|
||||
<button class="button is-secondary" (click)="applyLangAndClosePopup()" lang="{{ currentLang }}">
|
||||
{{ 'SENTENCES.Cancel' | translate }}
|
||||
</button>
|
||||
<button class="button is-primary" (click)="applyLangAndClosePopup()" lang="{{ currentLang }}">
|
||||
{{ 'nav.save' | translate }}
|
||||
</button>
|
||||
</div>
|
||||
</ng-template>
|
||||
</p-dialog>
|
||||
<ng-template pTemplate="footer">
|
||||
<div class="buttons-bottom">
|
||||
<button class="button is-secondary" (click)="applyLangAndClosePopup()" lang="{{ currentLang }}">
|
||||
{{ 'SENTENCES.Cancel' | translate }}
|
||||
</button>
|
||||
<button class="button is-primary" (click)="applyLangAndClosePopup()" lang="{{ currentLang }}">
|
||||
{{ 'nav.save' | translate }}
|
||||
</button>
|
||||
</div>
|
||||
</ng-template>
|
||||
</p-dialog>
|
||||
</dialog>
|
||||
</form>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user