Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 64b7d3354f
Fetching contributors…

Cannot retrieve contributors at this time

169 lines (149 sloc) 5.472 kb
{% block genemu_captcha_widget %}
{% spaceless %}
<img src="{{ src }}" width="{{ width }}" height="{{ height }}" title="{{ name|trans }}" />
{{ block("field_widget") }}
{% endspaceless %}
{% endblock %}
{% block genemu_recaptcha_widget %}
{% spaceless %}
<div id="{{ id }}_div" style="display: none;"></div>
<noscript>
<iframe src="{{ server }}/noscript?k={{ public_key }}" width="500" height="300" frameborder="0"></iframe>
<br />
<textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea>
<input type="hidden" name="recaptcha_response_field" value="manual_challenge" />
</noscript>
{% endspaceless %}
{% endblock genemu_recaptcha_widget %}
{% block genemu_jquerydate_widget %}
{% spaceless %}
{% if widget == "single_text" %}
{{ block("field_widget") }}
{% else %}
<div {{ block("widget_container_attributes") }}>
{{ date_pattern|replace({
"{{ year }}": form_widget(form.year),
"{{ month }}": form_widget(form.month),
"{{ day }}": form_widget(form.day),
})|raw }}
{% set attr = {"size": 10}|merge(attr) %}
{% set id = "datepicker_" ~ id %}
{% set full_name = "datepicker_" ~ full_name %}
{{ block("hidden_widget") }}
</div>
{% endif %}
{% endspaceless %}
{% endblock genemu_jquerydate_widget %}
{% block genemu_jqueryslider_widget %}
{% spaceless %}
{{ block("hidden_widget") }}
<div id="{{ id }}_slider"></div>
{% endspaceless %}
{% endblock genemu_jqueryslider_widget %}
{% block genemu_jqueryautocompleter_widget %}
{% spaceless %}
{{ block("hidden_widget") }}
{% set id = "autocompleter_" ~ id %}
{% set full_name = "autocompleter_" ~ full_name %}
{% set value = autocompleter_value %}
{{ block("field_widget") }}
{% endspaceless %}
{% endblock genemu_jqueryautocompleter_widget %}
{% block genemu_jquerychosen_widget %}
{% spaceless %}
{% set attr = {
"data-placeholder": empty_value,
"class": "chzn-select"
}|merge(attr) %}
{{ block("choice_widget") }}
{% endspaceless %}
{% endblock genemu_jquerychosen_widget %}
{% block genemu_jquerygeolocation_widget %}
{% spaceless %}
{{ form_rest(form) }}
{% if map is sameas(true) %}
<div id="{{ id }}_map">&nbsp;</div>
{% endif %}
{% endspaceless %}
{% endblock genemu_jquerygeolocation_widget %}
{% block genemu_jqueryfile_widget %}
{% spaceless %}
{{ block("hidden_widget") }}
<div id="{{ id }}_upload"></div>
<div class="queue">
<div id="{{ id }}_queue"></div>
</div>
{% endspaceless %}
{% endblock genemu_jqueryfile_widget %}
{% block genemu_jquerycolor_widget %}
{% spaceless %}
{% if widget == "image" %}
<div id="{{ id }}_color" {{ block("widget_container_attributes") }}>
<div{% if value %} style="background-color: #{{ value }};"{% endif %}>&nbsp;</div>
{{ block("hidden_widget") }}
</div>
{% else %}
{{ block("field_widget") }}
{% endif %}
{% endspaceless %}
{% endblock genemu_jquerycolor_widget %}
{% block genemu_jqueryrating_widget %}
{% spaceless %}
<div {{ block("widget_container_attributes") }}>
{% for child in form %}
{{ form_widget(child) }}
{% endfor %}
</div>
{% endspaceless %}
{% endblock genemu_jqueryrating_widget %}
{% block genemu_jqueryimage_widget %}
{% spaceless %}
<div id="{{ id }}_container">
<div class="left">
<div id="{{ id }}_preview">
{% set type = "hidden" %}
{{ block("hidden_widget") }}
<a id="{{ id }}_overlay" href="#">&nbsp;</a>
{% if value %}
{% set widthMax = thumbnail is defined ? thumbnail.width : 500 %}
{% set ratio = width > widthMax ? width / widthMax : 1 %}
{% set asset = asset(thumbnail is defined ? thumbnail.file : value) %}
{% set width = width / ratio %}
{% set height = height / ratio %}
{% else %}
{% set asset = asset("bundles/genemuform/images/default.png") %}
{% set width = 96 %}
{% set height = 96 %}
{% endif %}
<img id="{{ id }}_img_preview" src="{{ asset }}" width="{{ width }}" height="{{ height }}" />
</div>
<ul id="{{ id }}_options" class="options">
{% for filter in filters %}
<li class="{{ filter }} change"></li>
{% endfor %}
</ul>
<div id="{{ id }}_upload"></div>
<div class="queue">
<div id="{{ id }}_queue"></div>
</div>
</div>
</div>
{% endspaceless %}
{% endblock genemu_jqueryimage_widget %}
{% block genemu_jquerytokeninput_widget %}
{% spaceless %}
{{ block("hidden_widget") }}
{% set id = "tokeninput_" ~ id %}
{% set full_name = "tokeninput_" ~ full_name %}
{% set value = tokeninput_value %}
{{ block("field_widget") }}
{% endspaceless %}
{% endblock genemu_jquerytokeninput_widget %}
{% block genemu_plain_widget %}
<div {{ block('container_attributes') }}>
<p {{ block('widget_attributes') }}>{{ value|escape }}</p>
</div>
{% endblock %}
{% block genemu_jqueryselect2_hidden_row %}
{{ block('form_row') }}
{% endblock %}
Jump to Line
Something went wrong with that request. Please try again.