~deadlight/canonical-identity-provider/misc-account

« back to all changes in this revision

Viewing changes to src/webui/templates/account/edit.html

  • Committer: Karl Williams
  • Date: 2019-09-04 16:27:41 UTC
  • Revision ID: karl@deadlight.net-20190904162741-nli4p6r411k2k7bs
Convert remaining accont templates and template fragments to vanilla

Show diffs side-by-side

added added

removed removed

Lines of Context:
107
107
    <div class="p-strip is-shallow">
108
108
      <hr>
109
109
    </div>
110
 
    <h4 class="legend" data-qa-id="authentication_devices">{% trans "Authentication devices" %}</h4>
 
110
 
111
111
    <div class="p-form-validation{% if form.twofactor_required.errors %} is-errors{% endif %}">
112
 
      {{ form.twofactor_required }}
 
112
      <h4 class="legend" data-qa-id="authentication_devices">{% trans "Authentication devices" %}</h4>
 
113
      <input type="radio" name="twofactor_required" value="True" {% if form.twofactor_required.value == True %}checked{% endif %} id="id_twofactor_required_0"><label for="id_twofactor_required_0">Always require an authentication device</label>
 
114
      <input type="radio" name="twofactor_required" value="False" id="id_twofactor_required_1" {% if form.twofactor_required.value == False %}checked{% endif %}><label for="id_twofactor_required_1">Require only when logging in to sites that request it</label>
113
115
      {% if form.twofactor_required.errors %}
114
116
      <p class="p-form-validation__message">
115
117
        <strong>Error:</strong> {{ form.twofactor_required.errors|first }}