--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+ <component name="CsvFileAttributes">
+ <option name="attributeMap">
+ <map>
+ <entry key="\vendor\umpirsky\country-list\data\en_NZ\country.csv">
+ <value>
+ <Attribute>
+ <option name="separator" value="," />
+ </Attribute>
+ </value>
+ </entry>
+ <entry key="\vendor\umpirsky\country-list\data\ms\country.csv">
+ <value>
+ <Attribute>
+ <option name="separator" value="," />
+ </Attribute>
+ </value>
+ </entry>
+ <entry key="\vendor\umpirsky\locale-list\data\ar_KW\locales.csv">
+ <value>
+ <Attribute>
+ <option name="separator" value="," />
+ </Attribute>
+ </value>
+ </entry>
+ <entry key="\vendor\umpirsky\locale-list\data\az_AZ\locales.csv">
+ <value>
+ <Attribute>
+ <option name="separator" value="," />
+ </Attribute>
+ </value>
+ </entry>
+ <entry key="\vendor\umpirsky\locale-list\data\de_AT\locales.csv">
+ <value>
+ <Attribute>
+ <option name="separator" value="," />
+ </Attribute>
+ </value>
+ </entry>
+ <entry key="\vendor\umpirsky\locale-list\data\en_NZ\locales.csv">
+ <value>
+ <Attribute>
+ <option name="separator" value="," />
+ </Attribute>
+ </value>
+ </entry>
+ <entry key="\vendor\umpirsky\locale-list\data\en_PH\locales.csv">
+ <value>
+ <Attribute>
+ <option name="separator" value="," />
+ </Attribute>
+ </value>
+ </entry>
+ </map>
+ </option>
+ </component>
+</project>
\ No newline at end of file
{
$actions = [
//'Backup current database' => 'backup',
- //'Import Quotes' => 'importQuotes',
+ 'Import Quotes' => 'importQuotes',
'Migrate magic models' => 'migrate',
- 'Import publications' => 'importPublications',
-
+ //'Import publications' => 'importPublications',
'Clean caches' => 'cleanCache'
];
protected function migrate()
{
- $this->executeProcessQuiet('php artisan cubist:magic:generate');
- $this->executeProcessQuiet('php artisan cubist:magic:migrate');
+ $this->executeProcessQuiet('/usr/bin/php8.0 artisan cubist:magic:generate');
+ $this->executeProcessQuiet('/usr/bin/php8.0 artisan cubist:magic:migrate');
}
protected function backup()
{
- $this->executeProcessQuiet('php artisan backup:run');
+ $this->executeProcessQuiet('/usr/bin/php8.0 artisan backup:run');
}
protected function cleanCache()
{
- $this->executeProcessQuiet('php artisan optimize:clear');
+ $this->executeProcessQuiet('/usr/bin/php8.0 artisan optimize:clear');
}
foreach ($map as $old => $new) {
$c->setAttribute($new, $e->$old);
}
+ $c->created_ok = 1;
$c->save();
}
}
- protected function importPublications(){
+ protected function importPublications()
+ {
}
}
$resselerLocale = $reseller->locale;
$user = User::where('id', $quote->user)->first();
//$this->to($reseller->email);
- $this->to('vincent+' . $quote->reseller . '@fluidbook.com');
+ $this->to($reseller->email);
$this->bcc('tech@fluidbook.com');
$this->subject('[Fluidbook Workshop] ' . __('Demande de devis', [], $resselerLocale));
['optionsmodel' => User::class, 'allows_null' => true, 'attribute' => 'nameWithCompany', 'column_attribute' => 'companyName', 'column' => true, 'can' => 'fluidbook-quote:admin',]);
$this->addField('status', 'SelectFromArray', __('Status'), ['options' => [
- 0 => __('Non traitée'),
+ 0 => __('A confier'),
1 => __('En attente'),
2 => __('Traitée'),
], 'column' => true, 'filter' => true, 'can_write' => 'fluidbook-quote:admin']);
'type' => 'alert',
'class' => 'alert alert-dark mb-2',
'heading' => __('Des demandes de devis n\'ont pas été traitées'),
- 'content' => __(':awaiting demandes de devis doivent être traitées', ['awaiting' => $nottreated]) . '. <p><a class="btn btn-primary" href="' . backpack_url('fluidbook-quote?status=0') . '">' . __('Voir toutes les demandes en attente') . '</a></p>',
+ 'content' => __(':awaiting demandes de devis doivent être confiées à un revendeur ou un chef de projet', ['awaiting' => $nottreated]) . '. <p><a class="btn btn-primary" href="' . backpack_url('fluidbook-quote?status=0') . '">' . __('Voir toutes les demandes à traiter') . '</a></p>',
'close_button' => false, // show close button or not
]);
}
$awaiting = FluidbookQuote::where('status', '1')->count();
if ($awaiting > 0 && request()->get('status', null) == null) {
+ if (can('fluidbook-quote:admin')) {
+ $heading = __('Des demandes de devis sont en attente');
+ $content = __(':awaiting demandes de devis n\'ont pas été prises en compte par le revendeur ou le chef de projet', ['awaiting' => $awaiting]);
+ } else {
+ $heading = __('Des demandes de devis sont en attente');
+ $content = __(':awaiting demandes de devis sont actuellement en attente', ['awaiting' => $awaiting]);
+ }
Widget::add([
'type' => 'alert',
'class' => 'alert alert-danger mb-2',
- 'heading' => __('Des demandes de devis sont en attente'),
- 'content' => __(':awaiting demandes de devis sont actuellement en attente', ['awaiting' => $awaiting]) . '. <p><a class="btn btn-warning" href="' . backpack_url('fluidbook-quote?status=1') . '">' . __('Voir toutes les demandes en attente') . '</a></p>',
+ 'heading' => $heading,
+ 'content' => $content . '. <p><a class="btn btn-warning" href="' . backpack_url('fluidbook-quote?status=1') . '">' . __('Voir toutes les demandes en attente') . '</a></p>',
'close_button' => false, // show close button or not
]);
}
background-color: @text-color;
}
-[data-fluidbook-quote-status="1"] {
+[data-fluidbook-quote-status="0"] {
color: #a00;
}
+[data-fluidbook-quote-status="1"] {
+ color: #d33000;
+}
+
+[data-fluidbook-quote-status="2"] {
+ color: #156700;
+}
+
.btn-link {
.la {
position: relative;
<select class="assign" data-id="{{$entry->getKey()}}">
<option value="null">-</option>
<option value="{{backpack_user()->id}}">{{__('Je vais traiter la demander')}}</option>
+ <option value="5256">{{__('Confier à :reseller',['reseller'=>'Mallaury'])}}</option>
<option value="94">{{__('Confier à :reseller',['reseller'=>'Kadreo'])}}</option>
</select>
</a>