mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Merge branch 'PHRAS-1745_PORT_custom_links' into PHRAS-1735_add_git_log
# Conflicts: # .bowerrc
This commit is contained in:
2
.bowerrc
2
.bowerrc
@@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"directory": "www/bower_components"
|
"directory": "www/bower_components"
|
||||||
}
|
}
|
||||||
|
@@ -38,12 +38,10 @@ class SetupController extends Controller
|
|||||||
|
|
||||||
public function submitGlobalsAction(Request $request)
|
public function submitGlobalsAction(Request $request)
|
||||||
{
|
{
|
||||||
if (null !== $this->configuration->get('registry'))
|
if (null !== $this->configuration->get('registry')) {
|
||||||
{
|
|
||||||
$form = $this->registryFormManipulator->createForm($this->configuration);
|
$form = $this->registryFormManipulator->createForm($this->configuration);
|
||||||
}
|
}
|
||||||
else
|
else {
|
||||||
{
|
|
||||||
$form = $this->registryFormManipulator->createForm();
|
$form = $this->registryFormManipulator->createForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -376,7 +376,7 @@ class V1Controller extends Controller
|
|||||||
'password' => $conf->get(['registry', 'email', 'smtp-password']),
|
'password' => $conf->get(['registry', 'email', 'smtp-password']),
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'custom-links' => $conf->get(['registry', 'custom-links']),
|
'custom-links' => $conf->get(['registry', 'custom-links']),
|
||||||
'ftp' => [
|
'ftp' => [
|
||||||
'active' => $conf->get(['registry', 'ftp', 'ftp-enabled']),
|
'active' => $conf->get(['registry', 'ftp', 'ftp-enabled']),
|
||||||
'activeForUser' => $conf->get(['registry', 'ftp', 'ftp-user-access']),
|
'activeForUser' => $conf->get(['registry', 'ftp', 'ftp-user-access']),
|
||||||
|
@@ -147,7 +147,7 @@ class RegistryFormManipulator
|
|||||||
'recaptcha-public-key' => '',
|
'recaptcha-public-key' => '',
|
||||||
'recaptcha-private-key' => '',
|
'recaptcha-private-key' => '',
|
||||||
],
|
],
|
||||||
'executables' => [
|
'executables' => [
|
||||||
'h264-streaming-enabled' => false,
|
'h264-streaming-enabled' => false,
|
||||||
'auth-token-directory' => null,
|
'auth-token-directory' => null,
|
||||||
'auth-token-directory-path' => null,
|
'auth-token-directory-path' => null,
|
||||||
@@ -162,7 +162,7 @@ class RegistryFormManipulator
|
|||||||
'default-query' => '',
|
'default-query' => '',
|
||||||
'default-query-type' => 0,
|
'default-query-type' => 0,
|
||||||
],
|
],
|
||||||
'email' => [
|
'email' => [
|
||||||
'emitter-email' => 'phraseanet@example.com',
|
'emitter-email' => 'phraseanet@example.com',
|
||||||
'prefix' => null,
|
'prefix' => null,
|
||||||
'smtp-enabled' => false,
|
'smtp-enabled' => false,
|
||||||
@@ -173,7 +173,7 @@ class RegistryFormManipulator
|
|||||||
'smtp-user' => null,
|
'smtp-user' => null,
|
||||||
'smtp-password' => isset($config['email']['smtp-password']) ? $config['email']['smtp-password'] : null,
|
'smtp-password' => isset($config['email']['smtp-password']) ? $config['email']['smtp-password'] : null,
|
||||||
],
|
],
|
||||||
'custom-links' => [
|
'custom-links' => [
|
||||||
[
|
[
|
||||||
'linkName' => 'Phraseanet store',
|
'linkName' => 'Phraseanet store',
|
||||||
'linkLanguage' => 'fr',
|
'linkLanguage' => 'fr',
|
||||||
|
@@ -7,9 +7,12 @@
|
|||||||
* For the full copyright and license information, please view the LICENSE
|
* For the full copyright and license information, please view the LICENSE
|
||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Alchemy\Phrasea\Form\Configuration;
|
namespace Alchemy\Phrasea\Form\Configuration;
|
||||||
|
|
||||||
use Symfony\Component\Form\AbstractType;
|
use Symfony\Component\Form\AbstractType;
|
||||||
use Symfony\Component\Form\FormBuilderInterface;
|
use Symfony\Component\Form\FormBuilderInterface;
|
||||||
|
|
||||||
class CustomLinkFormType extends AbstractType
|
class CustomLinkFormType extends AbstractType
|
||||||
{
|
{
|
||||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||||
@@ -83,6 +86,7 @@ class CustomLinkFormType extends AbstractType
|
|||||||
]
|
]
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getName()
|
public function getName()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
|
@@ -74,7 +74,7 @@ class MainConfigurationFormType extends AbstractType
|
|||||||
public function setDefaultOptions(OptionsResolverInterface $resolver)
|
public function setDefaultOptions(OptionsResolverInterface $resolver)
|
||||||
{
|
{
|
||||||
$resolver->setDefaults([
|
$resolver->setDefaults([
|
||||||
'required' => false,
|
'required' => false,
|
||||||
'allow_extra_fields' => true
|
'allow_extra_fields' => true
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
@@ -50,4 +50,5 @@ gulp.task('build-vendors', [
|
|||||||
'build-jquery-lazyload',
|
'build-jquery-lazyload',
|
||||||
'build-jquery-test-paths',
|
'build-jquery-test-paths',
|
||||||
'build-simple-colorpicker'
|
'build-simple-colorpicker'
|
||||||
], function() {});
|
], function () {
|
||||||
|
});
|
||||||
|
@@ -37,16 +37,16 @@
|
|||||||
{% if daform.vars['label'] != null %}
|
{% if daform.vars['label'] != null %}
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>{{ daform.vars['label'] }}</legend>
|
<legend>{{ daform.vars['label'] }}</legend>
|
||||||
{% for formdata in daform %}
|
{% for formdata in daform %}
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
{{ form_errors(formdata) }}
|
{{ form_errors(formdata) }}
|
||||||
{{ form_label(formdata, null, { 'label_attr': {'class' : 'control-label'} } ) }}
|
{{ form_label(formdata, null, { 'label_attr': {'class' : 'control-label'} } ) }}
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
{{ form_widget(formdata, {'attr': {'class': 'input-xxlarge'}}) }}
|
{{ form_widget(formdata, {'attr': {'class': 'input-xxlarge'}}) }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>{{ formdata.vars['help_message'] }}</div>
|
<div>{{ formdata.vars['help_message'] }}</div>
|
||||||
{{ form_rest(formdata) }}
|
{{ form_rest(formdata) }}
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{{ form_rest(daform) }}
|
{{ form_rest(daform) }}
|
||||||
@@ -157,6 +157,7 @@
|
|||||||
updateInputNameColor($(element).parent().siblings(':first').find("input"), $(element).val());
|
updateInputNameColor($(element).parent().siblings(':first').find("input"), $(element).val());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
$("#custom-link-table").on('click', '.close-row', function () {
|
$("#custom-link-table").on('click', '.close-row', function () {
|
||||||
$(this).closest('tr').remove();
|
$(this).closest('tr').remove();
|
||||||
var rowCount = $('#custom-link-table tr').length;
|
var rowCount = $('#custom-link-table tr').length;
|
||||||
@@ -179,6 +180,7 @@
|
|||||||
element.css("background", color);
|
element.css("background", color);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateInputNameColor(element, color) {
|
function updateInputNameColor(element, color) {
|
||||||
element.css("background-color", color);
|
element.css("background-color", color);
|
||||||
if (color === "") {
|
if (color === "") {
|
||||||
|
@@ -25,7 +25,8 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
google.charts.load('42', {packages: ['corechart']});
|
google.charts.load('42', {packages: ['corechart']});
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="/assets/vendors/underscore/underscore{% if not app.debug %}.min{% endif %}.js"></script>
|
<script type="text/javascript"
|
||||||
|
src="/assets/vendors/underscore/underscore{% if not app.debug %}.min{% endif %}.js"></script>
|
||||||
{% block rss %}{% endblock %}
|
{% block rss %}{% endblock %}
|
||||||
{% block javascript %}{% endblock %}
|
{% block javascript %}{% endblock %}
|
||||||
</head>
|
</head>
|
||||||
|
Reference in New Issue
Block a user