6bbb2e9801
Fix issue with hidden checkbox and remake one on chrome. Refactor flag list on edit/upload form. Now a helper function in flags helper.
8 lignes
Pas d'EOL
462 o
HTML
8 lignes
Pas d'EOL
462 o
HTML
{{ block flagList(languages=nil, selected="")}}
|
|
{{ range _, language := languages }}
|
|
<span class="input-group">
|
|
<input type="checkbox" name="languages" id="lang-{{ language.Code }}" value="{{language.Code}}"{{if contains(selected, language.Code) }} checked{{end}}>
|
|
<label for="lang-{{ language.Code }}" class="flag flag-{{ language.Flag(false) }}" title="{{LanguageName(language, T)}}"></label>
|
|
</span>
|
|
{{ end }}
|
|
{{ end }} |