mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-14 05:23:21 +00:00
61 lines
2.5 KiB
Twig
61 lines
2.5 KiB
Twig
<h1>{% trans'Terms Of Use' %}</h1>
|
|
|
|
<form target="_self" method="post" action="{{ path('admin_database_submit_cgus', {'databox_id': app['request'].attributes.get('databox_id')}) }}">
|
|
<div class='well'>
|
|
<input class='btn btn-primary' type="submit" value="{% trans'Mettre a jour' %}" id="valid"/>
|
|
<label for="valid" class='checkbox'>
|
|
{% trans'admin::CGU Les utilisateurs doivent imperativement revalider ces conditions' %}
|
|
<input type="checkbox" value="1" name="valid"/>
|
|
</label>
|
|
</div>
|
|
<div id="tabs">
|
|
<ul>
|
|
{% for code, lang in languages %}
|
|
{% if code in cgus| keys %}
|
|
<li {{ code == current_locale ? 'class="current"' : ''}}>
|
|
<a href="#terms-{{ code }}">{{ lang }}</a>
|
|
</li>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</ul>
|
|
{% for code, lang in languages %}
|
|
{% if code in cgus| keys %}
|
|
<div id="terms-{{ code }}">
|
|
{% spaceless %}
|
|
<textarea name="TOU[{{ code }}]" style="width:100%;height:600px;margin:0 auto;">{% set cgu = attribute(cgus, code) %}{{ cgu['value']|trim }}</textarea>
|
|
{% endspaceless %}
|
|
</div>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</div>
|
|
</form>
|
|
|
|
<script type="text/javascript" src="/include/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function(){
|
|
|
|
$('#tabs').tabs({
|
|
selected:$("#tabs ul li").index($('#tabs ul li.current'))
|
|
});
|
|
|
|
{#tinyMCE.init({
|
|
mode : "textareas",
|
|
theme : "advanced",
|
|
plugins : "paste,searchreplace",
|
|
paste_auto_cleanup_on_paste : true,
|
|
paste_remove_styles: true,
|
|
paste_strip_class_attributes:'all',
|
|
paste_use_dialog : false,
|
|
paste_convert_headers_to_strong : false,
|
|
paste_remove_spans : true,
|
|
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,formatselect,|,cut,copy,paste,|,search,replace,|,bullist,numlist,undo,redo,|,link,unlink",
|
|
theme_advanced_buttons2 : "",
|
|
theme_advanced_buttons3 : "",
|
|
theme_advanced_buttons4 : "",
|
|
theme_advanced_toolbar_location : "top",
|
|
theme_advanced_toolbar_align : "left",
|
|
theme_advanced_statusbar_location : "bottom"
|
|
});#}
|
|
});
|
|
</script>
|