working on configuring an item template UI.
modified db to have fields concept for templates.
This commit is contained in:
parent
c0206ff8f4
commit
16581088d9
24 changed files with 509 additions and 1652 deletions
|
@ -1,7 +1,38 @@
|
|||
<div id="configure_item_template" class="ui-widget ui-widget-content block-shadow alpha-block padded">
|
||||
<button id="template_item_save" data-template="<?php echo $this->template_id; ?>">Save</button>
|
||||
|
||||
<?php foreach ($this->required as $field): ?>
|
||||
<div><?php echo $field["name"]?></div>
|
||||
<?php endforeach; ?>
|
||||
<?php $i = 0; ?>
|
||||
|
||||
<ul class="template_item_list">
|
||||
<?php foreach ($this->required as $field): ?>
|
||||
|
||||
<li id="<?php echo "field_".$i?>" data-name="<?php echo $field["name"]?>" data-type="<?php echo $field["type"]?>" data-filemd="<?php echo var_export($field["isFileMd"], true)?>">
|
||||
<span><?php echo $field["name"]?></span>
|
||||
<span><?php echo $field["type"]?></span>
|
||||
</li>
|
||||
<?php $i++; ?>
|
||||
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
|
||||
<ul class="template_file_md">
|
||||
<?php foreach ($this->fileMD as $md): ?>
|
||||
|
||||
<li id="<?php echo "md_".$md["name"]?>" data-name="<?php echo $md["name"]?>" data-type="<?php echo $md["type"]?>"><?php echo $md["name"] ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
|
||||
<div class="template_item_add">
|
||||
<div>Add New Field</div>
|
||||
<div>
|
||||
<input type="text">
|
||||
<select>
|
||||
<?php foreach ($this->fields as $field): ?>
|
||||
<option value="<?php echo $field; ?>"><?php echo $field; ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<button>Add</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue