forked from ezsystems/ezplatform-ee-demo
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
EZS-1354 Some form fields templates are missing.
- Loading branch information
Kamil Musiał
committed
Feb 6, 2017
1 parent
0ef711b
commit fee7872
Showing
4 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
app/Resources/EzSystemsFormBuilderBundle/views/fields/captcha/basic.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{% extends 'EzSystemsFormBuilderBundle:fields:field.html.twig' %} | ||
{% trans_default_domain "formcaptcha" %} | ||
|
||
{% set normalizedId = field.id|replace('-', '_') %} | ||
{% set imageId = 'captcha__' ~ normalizedId %} | ||
{% set captchaImage = ez_form_captcha_path(field) %} | ||
|
||
{% block input %} | ||
<div class="row"> | ||
<div class="col-sm-4 col-xs-12"> | ||
<img class="ezform-captcha-image" id="{{ imageId }}" src="{{ captchaImage }}" alt="" /> | ||
<p><a class="ezform-captcha-reload btn btn-default btn-sm" href="#">{{ 'formcaptcha.reload_image'|trans }}</a></p> | ||
</div> | ||
<div class="col-sm-8 col-xs-12"> | ||
<input type="text" class="ezform-field ezform-captcha form-control" id="{{ field.id }}" placeholder="{{ field.placeholderText }}"> | ||
</div> | ||
</div> | ||
{% endblock %} | ||
|
6 changes: 6 additions & 0 deletions
6
app/Resources/EzSystemsFormBuilderBundle/views/fields/date/basic.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{% extends 'EzSystemsFormBuilderBundle:fields:field.html.twig' %} | ||
|
||
{% block input %} | ||
<input type="text" class="ezform-field ezform-date form-control" id="{{ field.id }}" placeholder="{{ field.validators[0].value.alias }}"> | ||
{% endblock %} | ||
|
5 changes: 5 additions & 0 deletions
5
app/Resources/EzSystemsFormBuilderBundle/views/fields/file/basic.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{% extends 'EzSystemsFormBuilderBundle:fields:field.html.twig' %} | ||
|
||
{% block input %} | ||
<input type="file" class="ezform-field ezform-file" id="{{ field.id }}" placeholder="{{ field.placeholderText }}"> | ||
{% endblock %} |
5 changes: 5 additions & 0 deletions
5
app/Resources/EzSystemsFormBuilderBundle/views/fields/url/basic.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{% extends 'EzSystemsFormBuilderBundle:fields:field.html.twig' %} | ||
|
||
{% block input %} | ||
<input type="url" class="ezform-field ezform-url form-control" id="{{ field.id }}" placeholder="{{ field.placeholderText }}" value="http://"> | ||
{% endblock %} |