mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 04:53:26 +00:00
adressed comment's
This commit is contained in:
@@ -6,16 +6,16 @@
|
|||||||
|
|
||||||
{% block stylesheet %}
|
{% block stylesheet %}
|
||||||
{{ parent() }}
|
{{ parent() }}
|
||||||
<link rel="stylesheet" type="text/css" href="{{ path('minifier', { 'f' : 'skins/geonames/geonames.css' }) }}">
|
{#<link rel="stylesheet" type="text/css" href="{{ path('minifier', { 'f' : 'skins/geonames/geonames.css' }) }}">#}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block javascript %}
|
{% block javascript %}
|
||||||
{{ parent() }}
|
{{ parent() }}
|
||||||
<script type="text/javascript" language="javascript" src="{{ path('minifier', { 'f' : '/skins/account/account.js,assets/geonames-server-jquery-plugin/jquery.geonames.js,skins/geonames/geonames.js' }) }}"></script>
|
<script type="text/javascript" language="javascript" src="{{ path('minifier', { 'f' : '/skins/account/account.js,assets/geonames-server-jquery-plugin/jquery.geonames.js,scripts/common/geonames.js' }) }}"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
var geocompleter = geonames.init($("#form_geonameid"), {
|
var geocompleter = geonames.init($("#form_geonameid"), {
|
||||||
"server": "{{ app['phraseanet.registry'].get('GV_i18n_service') }}",
|
"server": "{{ app['geonames.server-uri'] }}",
|
||||||
"limit": 40
|
"limit": 40
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -105,7 +105,7 @@
|
|||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="form_label control-label" for="form_city"><strong>{% trans "admin::compte-utilisateur ville" %}</strong></label>
|
<label class="form_label control-label" for="form_city"><strong>{% trans "admin::compte-utilisateur ville" %}</strong></label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<input class="input_element input-xlarge geoname_field" type="text" name="form_geonameid" id="form_geonameid" value="" />
|
<input class="input_element input-xlarge geoname_field" type="text" name="form_geonameid" id="form_geonameid" value="{{ app["authentication"].getUser().get_geonameid() }}" />
|
||||||
<p class="form_alert help-block"></p>
|
<p class="form_alert help-block"></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
{% set jquery_theme = 'dark-hive' %}
|
{% set jquery_theme = 'dark-hive' %}
|
||||||
|
{% set module = '' %}
|
||||||
|
|
||||||
{% extends "common/index_bootstrap.html.twig" %}
|
{% extends "common/index_bootstrap.html.twig" %}
|
||||||
|
|
||||||
|
@@ -563,20 +563,20 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script type="text/javascript" language="javascript" src="{{ path('minifier', { 'f' : 'assets/geonames-server-jquery-plugin/jquery.geonames.js,skins/geonames/geonames.js' }) }}"></script>
|
<script type="text/javascript" language="javascript" src="{{ path('minifier', { 'f' : 'assets/geonames-server-jquery-plugin/jquery.geonames.js,scripts/common/geonames.js' }) }}"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
ini_edit_usrs();
|
ini_edit_usrs();
|
||||||
|
|
||||||
geonames.init($('#user_infos_tab input.geoname_field'), {
|
geonames.init($('#user_infos_tab input.geoname_field'), {
|
||||||
"server": "{{ app['phraseanet.registry'].get('GV_i18n_service') }}",
|
"server": "{{ app['geonames.server-uri'] }}",
|
||||||
"limit": 40
|
"limit": 40
|
||||||
});
|
});
|
||||||
|
|
||||||
$('div.tabs').tabs();
|
$('div.tabs').tabs();
|
||||||
|
|
||||||
$('#users_rights_form button#reset_rights').bind('click', function(){
|
$('#users_rights_form button#reset_rights').bind('click', function(){
|
||||||
if(confirm("{% trans'are you sure you want reset rights ?' %}"))
|
if(confirm("{% trans'Are you sure you want to reset rights?' %}"))
|
||||||
{
|
{
|
||||||
var users = $('#users_rights_form input[name="users"]').val();
|
var users = $('#users_rights_form input[name="users"]').val();
|
||||||
|
|
||||||
|
@@ -63,7 +63,7 @@
|
|||||||
{% macro choose_title(id, choose_export_title, default_export_title)%}
|
{% macro choose_title(id, choose_export_title, default_export_title)%}
|
||||||
<div class="buttons_line" style="display:{% if choose_export_title %}{% else %}none{% endif %}; text-align: left;">
|
<div class="buttons_line" style="display:{% if choose_export_title %}{% else %}none{% endif %}; text-align: left;">
|
||||||
<p>{% trans 'Nom des fichiers a l\'export'%}</p>
|
<p>{% trans 'Nom des fichiers a l\'export'%}</p>
|
||||||
<div classe="well-small">
|
<div class="well-small">
|
||||||
<label for="type_{{id}}_original" class="radio">
|
<label for="type_{{id}}_original" class="radio">
|
||||||
<input type="radio" name="type" id="type_{{id}}_original" {% if default_export_title == "title" %}checked{% endif %} value="title" />
|
<input type="radio" name="type" id="type_{{id}}_original" {% if default_export_title == "title" %}checked{% endif %} value="title" />
|
||||||
{% trans 'export::titre: titre du documument' %}
|
{% trans 'export::titre: titre du documument' %}
|
||||||
@@ -498,7 +498,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script type="text/javascript" language="javascript" src="{{ path('minifier', { 'f' : 'assets/geonames-server-jquery-plugin/jquery.geonames.js,skins/geonames/geonames.js' }) }}"></script>
|
<script type="text/javascript" language="javascript" src="{{ path('minifier', { 'f' : 'assets/geonames-server-jquery-plugin/jquery.geonames.js,scripts/common/geonames.js' }) }}"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
function check_TOU(container)
|
function check_TOU(container)
|
||||||
@@ -615,7 +615,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
geonames.init($('#command_geoname_field'), {
|
geonames.init($('#command_geoname_field'), {
|
||||||
"server": "{{ app['phraseanet.registry'].get('GV_i18n_service') }}",
|
"server": "{{ app['geonames.server-uri'] }}",
|
||||||
"limit": 40
|
"limit": 40
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@@ -30,7 +30,7 @@
|
|||||||
name="registerForm"
|
name="registerForm"
|
||||||
method="POST"
|
method="POST"
|
||||||
action="{{ path("login_register_classic") }}"
|
action="{{ path("login_register_classic") }}"
|
||||||
data-geonames-server-adress="{{ app['phraseanet.registry'].get('GV_i18n_service') }}"
|
data-geonames-server-adress="{{ app['geonames.server-uri'] }}"
|
||||||
>
|
>
|
||||||
{% if form.vars.errors|length > 0 %}
|
{% if form.vars.errors|length > 0 %}
|
||||||
<div class="row-fluid">
|
<div class="row-fluid">
|
||||||
|
@@ -61,11 +61,11 @@
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script type="text/javascript" language="javascript" src="{{ path('minifier', { 'f' : 'assets/geonames-server-jquery-plugin/jquery.geonames.js,skins/geonames/geonames.js' }) }}"></script>
|
<script type="text/javascript" language="javascript" src="{{ path('minifier', { 'f' : 'assets/geonames-server-jquery-plugin/jquery.geonames.js,scripts/common/geonames.js' }) }}"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
geonames.init($('#QuickAddUser input.geoname_field'), {
|
geonames.init($('#QuickAddUser input.geoname_field'), {
|
||||||
"server": "{{ app['phraseanet.registry'].get('GV_i18n_service') }}",
|
"server": "{{ app['geonames.server-uri'] }}",
|
||||||
"limit": 40
|
"limit": 40
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@@ -79,7 +79,7 @@
|
|||||||
.ui-tabs-vertical .ui-tabs-panel { padding: 1em; float: right;}
|
.ui-tabs-vertical .ui-tabs-panel { padding: 1em; float: right;}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<link type="text/css" rel="stylesheet" href="{{ path('minifier', { 'f' : 'include/jslibs/jquery.contextmenu.css,include/jslibs/colorpicker/css/colorpicker.css,include/jslibs/jquery-treeview/jquery.treeview.css,skins/common/main.css,skins/geonames/geonames.css,include/jquery.image_enhancer.css' }) }}" >
|
<link type="text/css" rel="stylesheet" href="{{ path('minifier', { 'f' : 'include/jslibs/jquery.contextmenu.css,include/jslibs/colorpicker/css/colorpicker.css,include/jslibs/jquery-treeview/jquery.treeview.css,skins/common/main.css,include/jquery.image_enhancer.css' }) }}" >
|
||||||
<link id="skinCss" type="text/css" rel="stylesheet" href="{{ path('minifier', { 'f' : 'skins/prod/' ~ cssfile ~ '/prodcolor.css' }) }}" >
|
<link id="skinCss" type="text/css" rel="stylesheet" href="{{ path('minifier', { 'f' : 'skins/prod/' ~ cssfile ~ '/prodcolor.css' }) }}" >
|
||||||
<link type="text/css" rel="stylesheet" href="{{ path('minifier', { 'f' : 'assets/humane-js/themes/libnotify.css,skins/prod/Prod.css,skins/prod/Basket.css,skins/prod/Push.css' }) }}" >
|
<link type="text/css" rel="stylesheet" href="{{ path('minifier', { 'f' : 'assets/humane-js/themes/libnotify.css,skins/prod/Prod.css,skins/prod/Basket.css,skins/prod/Push.css' }) }}" >
|
||||||
|
|
||||||
|
@@ -18,8 +18,7 @@ require.config({
|
|||||||
i18n: "../assets/i18next/release/i18next.amd-1.6.2.min",
|
i18n: "../assets/i18next/release/i18next.amd-1.6.2.min",
|
||||||
bootstrap: "../skins/build/bootstrap/js/bootstrap.min",
|
bootstrap: "../skins/build/bootstrap/js/bootstrap.min",
|
||||||
multiselect: "../assets/bootstrap-multiselect/js/bootstrap-multiselect",
|
multiselect: "../assets/bootstrap-multiselect/js/bootstrap-multiselect",
|
||||||
"jquery.geonames": "../assets/geonames-server-jquery-plugin/jquery.geonames",
|
"jquery.geonames": "../assets/geonames-server-jquery-plugin/jquery.geonames"
|
||||||
geonames: "../skins/geonames/geonames"
|
|
||||||
},
|
},
|
||||||
shim: {
|
shim: {
|
||||||
bootstrap : ["jquery"],
|
bootstrap : ["jquery"],
|
||||||
|
@@ -13,7 +13,7 @@ require([
|
|||||||
"i18n",
|
"i18n",
|
||||||
"apps/login/home/common",
|
"apps/login/home/common",
|
||||||
"common/forms/views/formType/passwordSetter",
|
"common/forms/views/formType/passwordSetter",
|
||||||
"geonames"
|
"common/geonames"
|
||||||
], function($, i18n, Common, RegisterForm, geonames) {
|
], function($, i18n, Common, RegisterForm, geonames) {
|
||||||
var fieldsConfiguration = [];
|
var fieldsConfiguration = [];
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
(function (root, factory) {
|
;(function (root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
define([''], factory);
|
define([''], factory);
|
||||||
} else {
|
} else {
|
||||||
@@ -9,6 +9,8 @@
|
|||||||
init: function($field, options) {
|
init: function($field, options) {
|
||||||
var geocompleter = $field.geocompleter(options);
|
var geocompleter = $field.geocompleter(options);
|
||||||
|
|
||||||
|
var geonameId = $field.val();
|
||||||
|
|
||||||
|
|
||||||
// On focus add select-state
|
// On focus add select-state
|
||||||
geocompleter.geocompleter("autocompleter", "on", "autocompletefocus", function(event, ui) {
|
geocompleter.geocompleter("autocompleter", "on", "autocompletefocus", function(event, ui) {
|
@@ -1,52 +0,0 @@
|
|||||||
|
|
||||||
.geocompleter-menu {
|
|
||||||
max-height: 180px;
|
|
||||||
overflow: auto;
|
|
||||||
background: #666;
|
|
||||||
box-shadow: 0 0 15px rgba(0, 0, 0, 1);
|
|
||||||
-webkit-box-shadow: 0 0 15px rgba(0, 0, 0, 1);
|
|
||||||
-moz-box-shadow: 0 0 15px rgba(0, 0, 0, 1);
|
|
||||||
list-style-type: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.geocompleter-menu li.ui-menu-item.selected {
|
|
||||||
border: 2px solid #46a546;
|
|
||||||
}
|
|
||||||
|
|
||||||
.geocompleter-menu .ui-menu-item a {
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.geocompleter-menu .ui-menu-item a.ui-state-focus,
|
|
||||||
.geocompleter-menu .ui-menu-item a.ui-state-hover,
|
|
||||||
.geocompleter-menu .ui-menu-item a.ui-state-active {
|
|
||||||
text-decoration: none;
|
|
||||||
background: none;
|
|
||||||
border:none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.geocompleter-menu .ui-menu-item {
|
|
||||||
padding: 5px 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.geocompleter-menu .ui-menu-item:nth-child(odd) {
|
|
||||||
background: #444444;
|
|
||||||
}
|
|
||||||
|
|
||||||
.geocompleter-menu .region {
|
|
||||||
font-size: 11px;
|
|
||||||
font-style: italic;
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.geocompleter-menu .highlight {
|
|
||||||
background: #46a546;
|
|
||||||
}
|
|
||||||
|
|
||||||
.geocompleter-input.input-loading {
|
|
||||||
background: url('/skins/icons/loaderFFF.gif') center right no-repeat;
|
|
||||||
}
|
|
||||||
|
|
||||||
.geocompleter-input.input-error {
|
|
||||||
color: red !important;
|
|
||||||
}
|
|
Reference in New Issue
Block a user