shortcut-post.html 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {template 'common/header'}
  2. <div id="js-module-shortcut-post" ng-controller="userModuleShortcutPostCtrl">
  3. <ol class="breadcrumb we7-breadcrumb">
  4. <a href="./index.php?c=module&a=shortcut&do=display&m={$module_name}&uniacid={$uniacid}"><i class="wi wi-back-circle"></i> </a>
  5. <li><a href="./index.php?c=module&a=shortcut&do=display&m={$module_name}&uniacid={$uniacid}">快捷入口列表</a></li>
  6. <li>添加快捷入口</li>
  7. </ol>
  8. <form action="{php echo url('module/shortcut/post', array('uniacid' => $uniacid, 'm' => $module_name, 'id' => $id))}" method="post" class="form we7-form">
  9. <div class="form-group">
  10. <label class="col-sm-2 control-label">快捷入口名称</label>
  11. <div class="form-controls col-sm-8">
  12. <input type="text" name="title" ng-model="info.title" class="form-control" placeholder="快捷入口名称">
  13. <span class="help-block"></span>
  14. </div>
  15. </div>
  16. <div class="form-group">
  17. <label class="col-sm-2 control-label">快捷入口链接</label>
  18. <div class="form-controls col-sm-8">
  19. <input type="text" name="url" ng-model="info.url" class="form-control" placeholder="快捷入口链接">
  20. <span class="help-block"></span>
  21. </div>
  22. </div>
  23. <div class="form-group">
  24. <label class="col-sm-2 control-label">快捷入口图标</label>
  25. <div class="form-controls col-sm-8">
  26. <div class="we7-input-img input-more" ng-class="{'active': shorcutImage.attachment}" >
  27. <img ng-src="{{shorcutImage.url}}" ng-if="shorcutImage.attachment" >
  28. <a href="javascript:;" class="input-addon" ng-click="changeImage()" ng-hide="shorcutImage.attachment"><span>+</span></a>
  29. <input type="text" name="icon" ng-model="shorcutImage.attachment" style="display: none;">
  30. <div class="cover-dark">
  31. <a href="javascript:;" class="cut" ng-click="changeImage()">更换</a>
  32. <a href="javascript:;" class="del" ng-click="delImage()"><i class="fa fa-times text-danger"></i></a>
  33. </div>
  34. </div>
  35. </div>
  36. </div>
  37. <button class="btn btn-primary we7-padding-horizontal col-sm-offset-2">提交</button>
  38. </form>
  39. </div>
  40. <script>
  41. angular.module('moduleApp').value('config', {
  42. 'info' : {php echo !empty($shortcut_info) ? json_encode($shortcut_info) : 'null'},
  43. 'attachurl' : "{$_W['attachurl']}",
  44. });
  45. angular.bootstrap($('#js-module-shortcut-post'), ['moduleApp']);
  46. </script>
  47. {template 'common/footer'}