2018-07-02 20:10:18 +02:00
|
|
|
<div class="form-group">
|
2018-07-02 20:22:16 +02:00
|
|
|
{[ if (o.type !== 'hidden') { ]}
|
|
|
|
<label for="{{{o.id}}}">{{{o.label}}}</label>
|
|
|
|
{[ } ]}
|
2019-04-24 11:03:27 +02:00
|
|
|
{[ if (o.type === 'password' && o.fixed_username) { ]}
|
|
|
|
<!-- This is a hack to prevent Chrome from auto-filling the username in
|
|
|
|
any of the other input fields in the MUC configuration form. -->
|
|
|
|
<input class="hidden-username" type="text" autocomplete="username" value="{{{o.fixed_username}}}"></input>
|
|
|
|
{[ } ]}
|
|
|
|
<input
|
|
|
|
class="form-control" name="{{{o.name}}}" type="{{{o.type}}}" id="{{{o.id}}}"
|
|
|
|
{[ if (o.autocomplete) { ]} autocomplete="{{{o.autocomplete}}}" {[ } ]}
|
2017-11-05 18:47:30 +01:00
|
|
|
{[ if (o.placeholder) { ]} placeholder="{{{o.placeholder}}}" {[ } ]}
|
|
|
|
{[ if (o.value) { ]} value="{{{o.value}}}" {[ } ]}
|
2019-03-26 14:51:52 +01:00
|
|
|
{[ if (o.required) { ]} required="required" {[ } ]} />
|
2018-07-02 20:10:18 +02:00
|
|
|
</div>
|