Skip to content

Commit

Permalink
Made checked_input an input-group
Browse files Browse the repository at this point in the history
  • Loading branch information
trollfot committed Nov 29, 2023
1 parent 77f1f95 commit 6b6af4a
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions deform/templates/checked_input.pt
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,28 @@
i18n:domain="deform"
tal:omit-tag="">
${field.start_mapping()}
<div class="mb-3 ${field.error and 'is-invalid' or None}">
<input type="text" name="${name}" value="${cstruct}"
i18n:attributes="placeholder"
<div class="input-group ${field.error and error_class or ''}">
<input type="text"
name="${name}"
value="${cstruct}"
tal:attributes="style style;
class string:form-control ${field.error and error_class or css_class};
placeholder subject;
class string:mb3 form-control ${field.error and error_class or css_class};
autofocus autofocus;
required field.required and 'required' or None;
attributes|field.widget.attributes|{};"
id="${oid}"/>
</div>
<div class="mb-3 ${field.error and 'is-invalid' or None}">
<input type="text" name="${name}-confirm" value="${confirm}"
id="${oid}"
i18n:attributes="placeholder"
placeholder="${subject}"/>
<input type="text"
name="${name}-confirm"
value="${confirm}"
tal:attributes="style style;
class string:form-control ${field.error and error_class or css_class};
required field.required and 'required' or None;
placeholder confirm_subject;
confirm_attributes|field.widget.confirm_attributes|{};"
id="${oid}-confirm"/>
id="${oid}-confirm"
i18n:attributes="placeholder"
placeholder="${confirm_subject}" />
</div>
<script tal:condition="field.widget.mask" type="text/javascript">
deform.addCallback(
Expand Down

0 comments on commit 6b6af4a

Please sign in to comment.