Вывод инфо о кампании в архиве

parent cd48936b
...@@ -157,10 +157,8 @@ if (!$error) { ...@@ -157,10 +157,8 @@ if (!$error) {
<div class="form-group active"> <div class="form-group active">
<input type="checkbox" id="campaign-active" name="campaign-active" <?php if ($campaign_active): ?>checked<?php endif; ?> <?php if($campaign_archive): ?>disabled<?php endif; ?>> <input type="checkbox" id="campaign-active" name="campaign-active" <?php if ($campaign_active): ?>checked<?php endif; ?> <?php if($campaign_archive): ?>disabled<?php endif; ?>>
<label class="title-field" for="campaign-active">Кампания активна</label> <label class="title-field" for="campaign-active">Кампания активна</label>
<?php if($campaign_archive): ?>
<?php if(!$campaign_date_end || $today <= $campaign_date_end): ?> <i style="color: #D33E3D">(кампания в архиве)</i>
<a class="btn btn-danger action-archive send <?php if($campaign_archive): ?>hidden<?php endif; ?>" href="<?= $form_link ?>"><?= _t('Отправить в архив')?></a>
<a class="btn btn-primary action-archive remove <?php if(!$campaign_archive): ?>hidden<?php endif; ?>" href="<?= $form_link ?>"><?= _t('Извлечь из архива')?></a>
<?php endif; ?> <?php endif; ?>
</div> </div>
......
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