Editing templates, strictly typing metadata for datatables (for unions)
This commit is contained in:
parent
b33f33964a
commit
a5a99da21e
9 changed files with 386 additions and 246 deletions
|
@ -1,14 +1,3 @@
|
|||
<div id="configure_item_template" class="ui-widget ui-widget-content block-shadow alpha-block padded">
|
||||
|
||||
<div>
|
||||
<select id="template_list">
|
||||
<option value="">New</option>
|
||||
<?php foreach ($this->template_list as $id=>$name): ?>
|
||||
<option value="<?php echo $id; ?>"><?php echo $name; ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<?php echo $this->render('playouthistory/item-template.phtml'); ?>
|
||||
|
||||
</div>
|
|
@ -1,5 +1,7 @@
|
|||
<div>
|
||||
<?php if (!in_array($this->template_id, $this->configured)): ?>
|
||||
<button id="template_set_default" data-template="<?php echo $this->template_id; ?>">Set Default Template</button>
|
||||
<?php endif; ?>
|
||||
<button id="template_item_save" data-template="<?php echo $this->template_id; ?>">Save</button>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -1,3 +1,21 @@
|
|||
<div id="history_template" class="ui-widget ui-widget-content block-shadow alpha-block padded">
|
||||
<a href="<?php echo $this->baseUrl("Playouthistory/configure-item-template"); ?>">Configure Item Template</a>
|
||||
|
||||
<div>
|
||||
<div>Edit Existing</div>
|
||||
<ul id="template_list">
|
||||
<?php foreach ($this->template_list as $id=>$name): ?>
|
||||
<?php if (in_array($id, $this->configured)): ?>
|
||||
<li data-template="<?php echo $id; ?>" data-name="<?php echo $name; ?>" class="template_configured">
|
||||
<a class="template_name" href="<?php echo $this->baseUrl("Playouthistory/configure-item-template/id/{$id}"); ?>"><?php echo $name; ?></a>
|
||||
<?php else: ?>
|
||||
<li data-template="<?php echo $id; ?>" data-name="<?php echo $name; ?>">
|
||||
<a class="template_name" href="<?php echo $this->baseUrl("Playouthistory/configure-item-template/id/{$id}"); ?>"><?php echo $name; ?></a>
|
||||
<a class="template_default" href="<?php echo $this->baseUrl("Playouthistory/set-item-template-default/id/{$id}"); ?>">Set Default</a>
|
||||
<a class="template_remove" href="<?php echo $this->baseUrl("Playouthistory/delete-template/id/{$id}"); ?>">Remove</a>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<button id="new_item_template" class="btn">New Item Template</button>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue