images.html 1.2 KB

123456789101112131415161718192021222324
  1. <div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12" id="form_group_{$form.name}">
  2. <div class="col-xs-12 label-title" for="{$form.name}">{$form.title|htmlspecialchars}</div>
  3. <div class="col-xs-12 js-upload-images">
  4. <div id="file_list_{$form.name}" class="uploader-list pull-left">
  5. {notempty name="form.value"}
  6. {volist name="form['value']|explode=',',###" id="vo"}
  7. <div class="file-item thumbnail">
  8. <a class="img-link" data-magnify="gallery" href="{$vo|get_file_url}">
  9. <img src="{$vo|get_thumb}" width="100">
  10. <i class="fa fa-fw fa-arrows move-picture"></i>
  11. </a>
  12. <i class="fa fa-times-circle remove-picture" data-id="{$vo}"></i>
  13. </div>
  14. {/volist}
  15. {/notempty}
  16. </div>
  17. <input type="hidden" name="{$form.name}" data-multiple="true" data-size="{$form['size']|default=0}" data-ext='{$form["ext"]|default=""}' id="{$form.name}" value="{$form.value|default=''}">
  18. <div id="picker_{$form.name}" class="pull-left">载入中...</div>
  19. <div class="clearfix"></div>
  20. {notempty name="form.tips"}
  21. <div class="help-block">{$form.tips}</div>
  22. {/notempty}
  23. </div>
  24. </div>