-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sorted out attachements and some style sheet issues
- Loading branch information
Showing
10 changed files
with
306 additions
and
364 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,40 @@ | ||
<?php | ||
|
||
echo $this->Html->css('Mail.style'); | ||
echo $this->Html->css('MakvilleMailer.style'); | ||
?> | ||
<div class="row"> | ||
|
||
<div class="large-12 columns"> | ||
<div class="box"> | ||
<div class="box-header bg-transparent"> | ||
<h3 class="box-title"><i class="fa fa-window-maximize"></i> | ||
<span style="font-size: 14px; font-weight: bold;"> | ||
New mailing list | ||
<div class="col-lg-12"> | ||
<div class="panel panel-info"> | ||
<div class="panel-heading"> | ||
<h3 class="panel-title"> | ||
<i class="fa fa-plus"></i> | ||
<span> | ||
New Mailing List | ||
</span> | ||
</h3> | ||
</div> | ||
<!-- /.box-header --> | ||
<div class="box-body" style="display: block;"> | ||
|
||
|
||
<div class="row"> | ||
<div class="col-md-12"> | ||
<div class="hpanel email-compose"> | ||
<div class="panel-body"> | ||
<div> | ||
<?= $this->Form->create($mailingList) ?> | ||
<?php | ||
echo $this->Form->input('name'); | ||
echo $this->Form->input('description'); | ||
?> | ||
<div class="user-emails"> | ||
<?php foreach ($users as $user) : ?> | ||
<?php | ||
if ( in_array($user->email, ['ayomakanjuola@gmail.com', 'makville@gmail.com']) ) { continue; } | ||
?> | ||
<div class="user-email"> | ||
<?= $this->Form->input('emails[]', ['type' => 'checkbox', 'label' => false, 'value' => $user->email]) . " " . $user->email;?> | ||
</div> | ||
<?php endforeach; ?> | ||
</div> | ||
<p> </p> | ||
<?= $this->Form->button(__('Save')) ?> | ||
<?= $this->Form->end() ?> | ||
</div> | ||
</div> | ||
<div class="panel-body"> | ||
<?= $this->Form->create($mailingList) ?> | ||
<?php | ||
echo $this->Form->input('name', ['class' => 'form-control']); | ||
echo $this->Form->input('description', ['class' => 'form-control']); | ||
?> | ||
<p> </p> | ||
<div class="user-emails"> | ||
<?php foreach ($users as $user) : ?> | ||
<?php | ||
if (in_array($user->email, ['ayomakanjuola@gmail.com', 'makville@gmail.com'])) { | ||
continue; | ||
} | ||
?> | ||
<div class="form-check"> | ||
<?= $this->Form->input('emails[]', ['id' => 'email', 'type' => 'checkbox', 'label' => ' ' . $user->email, 'div' => false, 'value' => $user->email]); ?> | ||
</div> | ||
</div> | ||
<?php endforeach; ?> | ||
</div> | ||
<p> </p> | ||
<?= $this->Form->button(__('Save'), ['class' => 'btn btn-sm btn-success']) ?> | ||
<?= $this->Form->end() ?> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,46 @@ | ||
<?php | ||
|
||
echo $this->Html->css('Mail.style'); | ||
echo $this->Html->css('MakvilleMailer.style'); | ||
?> | ||
<div class="row"> | ||
|
||
<div class="large-12 columns"> | ||
<div class="box"> | ||
<div class="box-header bg-transparent"> | ||
<h3 class="box-title"><i class="fa fa-window-maximize"></i> | ||
<span style="font-size: 14px; font-weight: bold;"> | ||
New mailing list | ||
<div class="col-lg-12"> | ||
<div class="panel panel-info"> | ||
<div class="panel-heading"> | ||
<h3 class="panel-title"> | ||
<i class="fa fa-plus"></i> | ||
<span> | ||
Edit Mailing List | ||
</span> | ||
</h3> | ||
</div> | ||
<!-- /.box-header --> | ||
<div class="box-body" style="display: block;"> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<div class="hpanel email-compose"> | ||
<div class="panel-body"> | ||
<div> | ||
<?= $this->Form->create($mailingList) ?> | ||
<?php | ||
echo $this->Form->input('name'); | ||
echo $this->Form->input('description'); | ||
?> | ||
<div class="user-emails"> | ||
<?php | ||
$existing = []; | ||
foreach($mailingList->mailing_list_addresses as $email) { | ||
$existing[] = $email->email; | ||
} | ||
?> | ||
<?php foreach ($users as $user) : ?> | ||
<?php if (in_array($user->email, ['ayomakanjuola@gmail.com', 'makville@gmail.com'])) {continue;} ?> | ||
<div class="user-email"> | ||
<?= $this->Form->input('emails[]', ['type' => 'checkbox', 'label' => false, 'value' => $user->email, 'checked' => (in_array($user->email, $existing)) ? 'checked' : '']) . " " . $user->email;?> | ||
</div> | ||
<?php endforeach; ?> | ||
</div> | ||
<p> </p> | ||
<?= $this->Form->button(__('Submit')) ?> | ||
<?= $this->Form->end() ?> | ||
</div> | ||
</div> | ||
<div class="panel-body"> | ||
<?= $this->Form->create($mailingList) ?> | ||
<?php | ||
echo $this->Form->input('name', ['class' => 'form-control']); | ||
echo $this->Form->input('description', ['class' => 'form-control']); | ||
?> | ||
<p> </p> | ||
<div class="user-emails"> | ||
<?php | ||
$existing = []; | ||
foreach ($mailingList->mailing_list_addresses as $email) { | ||
$existing[] = $email->email; | ||
} | ||
?> | ||
<?php foreach ($users as $user) : ?> | ||
<?php | ||
if (in_array($user->email, ['ayomakanjuola@gmail.com', 'makville@gmail.com'])) { | ||
continue; | ||
} | ||
?> | ||
<div class="user-email"> | ||
<?= $this->Form->input('emails[]', ['type' => 'checkbox', 'label' => ' '. $user->email, 'value' => $user->email, 'checked' => (in_array($user->email, $existing)) ? 'checked' : '']); ?> | ||
</div> | ||
</div> | ||
<?php endforeach; ?> | ||
</div> | ||
<p> </p> | ||
<?= $this->Form->button(__('Save'), ['class' => 'btn btn-sm btn-success']) ?> | ||
<?= $this->Form->end() ?> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.