Commit 8f6b1be6 by Julien Jorry

Fix compte error if > 50000 + fix infos + fix ckeditor

parent b54d24e1
......@@ -11,7 +11,7 @@ trait HasCompteEntity
/**
* @var int
*
* @ORM\Column(name="compte", type="decimal", precision=7, scale=2)
* @ORM\Column(name="compte", type="decimal", precision=12, scale=2)
*/
private $compte = 0;
......
<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20190313131910 extends AbstractMigration
{
public function getDescription() : string
{
return '';
}
public function up(Schema $schema) : void
{
// this up() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE siege CHANGE compte compte NUMERIC(12, 2) NOT NULL');
$this->addSql('ALTER TABLE comptoir CHANGE compte compte NUMERIC(12, 2) NOT NULL');
$this->addSql('ALTER TABLE prestataire CHANGE compte compte NUMERIC(12, 2) NOT NULL');
$this->addSql('ALTER TABLE groupe CHANGE compte compte NUMERIC(12, 2) NOT NULL');
}
public function down(Schema $schema) : void
{
// this down() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE comptoir CHANGE compte compte NUMERIC(7, 2) NOT NULL');
$this->addSql('ALTER TABLE groupe CHANGE compte compte NUMERIC(7, 2) NOT NULL');
$this->addSql('ALTER TABLE prestataire CHANGE compte compte NUMERIC(7, 2) NOT NULL');
$this->addSql('ALTER TABLE siege CHANGE compte compte NUMERIC(7, 2) NOT NULL');
}
}
......@@ -7,8 +7,8 @@
{{ 'RETOUR SUPER ADMIN'|trans }}
</a>
</div>
{% else %}
<div class='mb-2 group'>
{% elseif is_granted('ROLE_SUPER_ADMIN') %}
<div class='mb-2 group text-center'>
<a class='btn btn-xs m-1 btn-primary' href='{{path('index', [], true)}}?_switch_user=user_prestataire'>
{{ 'PRESTATAIRE'|trans }}
</a>
......
......@@ -11,6 +11,6 @@
{{ form_row(form.email) }}
{{ form_row(form.firstname) }}
{{ form_row(form.lastname) }}
<input type="submit" id="_submit" name="_submit" value="{{ 'Valider'|trans }}" />
<input type="submit" id="_submituserinfos" name="_submituserinfos" value="{{ 'Valider'|trans }}" />
{{form_end(form)}}
{% endblock blockcontent %}
\ No newline at end of file
......@@ -10,6 +10,6 @@
{{form_start(form)}}
{{ form_row(form.current_password) }}
{{ form_row(form.plainPassword) }}
<input type="submit" id="_submit" name="_submit" value="{{ 'Valider'|trans }}" />
<input type="submit" id="_submituserpassword" name="_submituserpassword" value="{{ 'Valider'|trans }}" />
{{form_end(form)}}
{% endblock blockcontent %}
\ No newline at end of file
......@@ -32,7 +32,7 @@
</div>
<div class='row'>
<div class='col-12 mx-auto text-center'>
<input type="submit" id="_submit" name="_submit" value="{{ 'security.login.submit'|trans }}" />
<input type="submit" id="_submitlogin" name="_submitlogin" value="{{ 'security.login.submit'|trans }}" />
</div>
</div>
</form>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment