638b841e26
* removal of space * margin-right addition * Update flags.jet.html * margin into padding * add "highlighted" class for possible future use * bigger rules-drop, fix wrong display, remove useless line * add alt for category img & alt with every language for flag * literally no point of an alt on a div * flag alt
5 lignes
630 o
HTML
5 lignes
630 o
HTML
{{ block flagList(languages=nil, selected="", inputname="languages", id="lang")}}
|
|
{{ if isset(languages) }}
|
|
{{ range _, language := languages }}<span class="input-group"><span name="{{id}}-languagename">{{LanguageName(language, T)}}</span><input type="checkbox" name="{{inputname}}" class="form-language-checkbox" id="{{id}}-{{ language.Code }}" value="{{language.Code}}"{{ range _, v := selected}}{{ if contains(v, language.Code) }} checked{{end}}{{end}}><label for="{{id}}-{{ language.Code }}" class="flag flag-{{ language.Flag(false) }}" title="{{LanguageName(language, T)}}"></label></span>{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|