-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b39a1aa
commit 81e74ee
Showing
7 changed files
with
219 additions
and
91 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
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,38 +1,80 @@ | ||
<?php | ||
/** | ||
* @var \App\View\AppView $this | ||
* @var \App\Model\Entity\Message $message | ||
*/ | ||
$this->assign('Content', 'active'); | ||
echo $this->Html->script('ckeditor/ckeditor', array('inline' => false)); | ||
echo $this->Html->script('ckeditor/adapters/jquery', array('inline' => false)); | ||
?> | ||
<div class="row"> | ||
<aside class="column"> | ||
<div class="side-nav"> | ||
<h4 class="heading"><?= __('Actions') ?></h4> | ||
<?= $this->Form->postLink( | ||
__('Delete'), | ||
['action' => 'delete', $message->id], | ||
['confirm' => __('Are you sure you want to delete # {0}?', $message->id), 'class' => 'side-nav-item'] | ||
) ?> | ||
<?= $this->Html->link(__('List Messages'), ['action' => 'index'], ['class' => 'side-nav-item']) ?> | ||
</div> | ||
</aside> | ||
<div class="column-responsive column-80"> | ||
<div class="messages form content"> | ||
<?= $this->Form->create($message) ?> | ||
<fieldset> | ||
<legend><?= __('Edit Message') ?></legend> | ||
<?php | ||
echo $this->Form->control('name'); | ||
echo $this->Form->control('subject'); | ||
echo $this->Form->control('content'); | ||
echo $this->Form->control('sms'); | ||
echo $this->Form->control('type'); | ||
echo $this->Form->control('style'); | ||
echo $this->Form->control('description'); | ||
?> | ||
</fieldset> | ||
<?= $this->Form->button(__('Submit')) ?> | ||
<?= $this->Form->end() ?> | ||
</div> | ||
</div> | ||
|
||
<div class="row-fluid" style="margin-bottom: 9px;"> | ||
<div class="span2 columns"> | ||
<div class="row-fluid"> | ||
<div class="span12"> | ||
<?php echo $this->element('admin/contentmenu') ?> | ||
</div><!--/span--> | ||
</div><!--/row--> | ||
</div> <!-- /span5 --> | ||
|
||
<div class="span10 columns"> | ||
<div class="row-fluid"> | ||
<?php echo $this->Form->create( | ||
$message, array( | ||
'type' => 'file', | ||
// 'class' => 'form-horizontal', | ||
|
||
)); | ||
echo $this->Form->control('id'); ?> | ||
<fieldset> | ||
<legend>Edit <strong><?php echo $this->Form->value('Messages.name'); ?></strong></legend> | ||
<?php | ||
echo $this->Form->control('id'); | ||
echo $this->Form->control('subject'); | ||
echo $this->Form->control( | ||
'style', | ||
array( | ||
'type' => 'select', | ||
'empty' => true, | ||
'options' => array('info' => 'Blue', 'success' => 'Green', 'error' => 'Red', 'warning' => 'Orange'), | ||
'label' => array('class' => 'control-label', 'text' => 'Notification Style') | ||
) | ||
); | ||
echo $this->Form->control('content', array( | ||
'id'=>'message', | ||
'label' => array( | ||
'class' => 'control-label required message', | ||
'text' => 'Content <span class="sterix">*</span>', | ||
'escape' => false | ||
), | ||
'between' => '<div class="controls">', 'placeholder' => 'content', 'class' => 'control-large', | ||
)); | ||
echo $this->Form->control('sms', array( | ||
'type' => 'textarea', | ||
'rows' => 3, | ||
'label' => array('class' => 'control-label required', 'text' => 'SMS <span class="sterix">*</span>','escape'=>false), | ||
'between' => '<div class="controls">', | ||
'placeholder' => 'sms', | ||
'class' => 'control-xxlarge', | ||
)); | ||
echo $this->Form->control('type'); | ||
echo $this->Form->control('description', array('class' => 'control-xlarge')); | ||
?> | ||
</fieldset> | ||
<?php | ||
|
||
echo $this->Html->div( | ||
'form-actions', | ||
$this->Form->button('<i class="icon-search icon-white"></i> Submit', [ | ||
'escapeTitle' => false, | ||
'type' => 'Submit', | ||
'class' => 'btn btn-primary', | ||
'id' => 'SadrSaveChanges' | ||
]) | ||
); | ||
|
||
// Close the form | ||
echo $this->Form->end(); | ||
?> | ||
|
||
<script type="text/javascript"> | ||
CKEDITOR.replace('message'); | ||
</script> | ||
</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.